package
0.0.0-20240808151852-3363955b67b3
Repository: https://github.com/sethcurry/stax.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Count applies the "count" aggregation function on each group.
Debug enables debug logging on the ent.Driver.
Desc applies the given fields in DESC order.
Driver configures the client driver.
FromContext returns a Client stored inside a context, or nil if there isn't one.
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
IsNotSingular returns a boolean indicating whether the error is a not singular error.
IsValidationError returns a boolean indicating whether the error is a validation error.
Log sets the logging function for debug mode.
MaskNotFound masks not found error.
Max applies the "max" aggregation function on the given field of each group.
Mean applies the "mean" aggregation function on the given field of each group.
Min applies the "min" aggregation function on the given field of each group.
NewArtistClient returns a client for the Artist from the given config.
NewCardClient returns a client for the Card from the given config.
NewCardFaceClient returns a client for the CardFace from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewPrintingClient returns a client for the Printing from the given config.
NewPrintingImageClient returns a client for the PrintingImage from the given config.
NewRulingClient returns a client for the Ruling from the given config.
NewSetClient returns a client for the Set from the given config.
NewTxContext returns a new context with the given Tx attached.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

# Constants

Operation types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Node types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrTxStarted is returned when trying to start a new transaction from a transactional client.

# Structs

Artist is the model entity for the Artist schema.
ArtistClient is a client for the Artist schema.
ArtistCreate is the builder for creating a Artist entity.
ArtistCreateBulk is the builder for creating many Artist entities in bulk.
ArtistDelete is the builder for deleting a Artist entity.
ArtistDeleteOne is the builder for deleting a single Artist entity.
ArtistEdges holds the relations/edges for other nodes in the graph.
ArtistGroupBy is the group-by builder for Artist entities.
ArtistMutation represents an operation that mutates the Artist nodes in the graph.
ArtistQuery is the builder for querying Artist entities.
ArtistSelect is the builder for selecting fields of Artist entities.
ArtistUpdate is the builder for updating Artist entities.
ArtistUpdateOne is the builder for updating a single Artist entity.
Card is the model entity for the Card schema.
CardClient is a client for the Card schema.
CardCreate is the builder for creating a Card entity.
CardCreateBulk is the builder for creating many Card entities in bulk.
CardDelete is the builder for deleting a Card entity.
CardDeleteOne is the builder for deleting a single Card entity.
CardEdges holds the relations/edges for other nodes in the graph.
CardFace is the model entity for the CardFace schema.
CardFaceClient is a client for the CardFace schema.
CardFaceCreate is the builder for creating a CardFace entity.
CardFaceCreateBulk is the builder for creating many CardFace entities in bulk.
CardFaceDelete is the builder for deleting a CardFace entity.
CardFaceDeleteOne is the builder for deleting a single CardFace entity.
CardFaceEdges holds the relations/edges for other nodes in the graph.
CardFaceGroupBy is the group-by builder for CardFace entities.
CardFaceMutation represents an operation that mutates the CardFace nodes in the graph.
CardFaceQuery is the builder for querying CardFace entities.
CardFaceSelect is the builder for selecting fields of CardFace entities.
CardFaceUpdate is the builder for updating CardFace entities.
CardFaceUpdateOne is the builder for updating a single CardFace entity.
CardGroupBy is the group-by builder for Card entities.
CardMutation represents an operation that mutates the Card nodes in the graph.
CardQuery is the builder for querying Card entities.
CardSelect is the builder for selecting fields of Card entities.
CardUpdate is the builder for updating Card entities.
CardUpdateOne is the builder for updating a single Card entity.
Client is the client that holds all ent builders.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
NotLoadedError returns when trying to get a node that was not loaded by the query.
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
Printing is the model entity for the Printing schema.
PrintingClient is a client for the Printing schema.
PrintingCreate is the builder for creating a Printing entity.
PrintingCreateBulk is the builder for creating many Printing entities in bulk.
PrintingDelete is the builder for deleting a Printing entity.
PrintingDeleteOne is the builder for deleting a single Printing entity.
PrintingEdges holds the relations/edges for other nodes in the graph.
PrintingGroupBy is the group-by builder for Printing entities.
PrintingImage is the model entity for the PrintingImage schema.
PrintingImageClient is a client for the PrintingImage schema.
PrintingImageCreate is the builder for creating a PrintingImage entity.
PrintingImageCreateBulk is the builder for creating many PrintingImage entities in bulk.
PrintingImageDelete is the builder for deleting a PrintingImage entity.
PrintingImageDeleteOne is the builder for deleting a single PrintingImage entity.
PrintingImageEdges holds the relations/edges for other nodes in the graph.
PrintingImageGroupBy is the group-by builder for PrintingImage entities.
PrintingImageMutation represents an operation that mutates the PrintingImage nodes in the graph.
PrintingImageQuery is the builder for querying PrintingImage entities.
PrintingImageSelect is the builder for selecting fields of PrintingImage entities.
PrintingImageUpdate is the builder for updating PrintingImage entities.
PrintingImageUpdateOne is the builder for updating a single PrintingImage entity.
PrintingMutation represents an operation that mutates the Printing nodes in the graph.
PrintingQuery is the builder for querying Printing entities.
PrintingSelect is the builder for selecting fields of Printing entities.
PrintingUpdate is the builder for updating Printing entities.
PrintingUpdateOne is the builder for updating a single Printing entity.
Ruling is the model entity for the Ruling schema.
RulingClient is a client for the Ruling schema.
RulingCreate is the builder for creating a Ruling entity.
RulingCreateBulk is the builder for creating many Ruling entities in bulk.
RulingDelete is the builder for deleting a Ruling entity.
RulingDeleteOne is the builder for deleting a single Ruling entity.
RulingEdges holds the relations/edges for other nodes in the graph.
RulingGroupBy is the group-by builder for Ruling entities.
RulingMutation represents an operation that mutates the Ruling nodes in the graph.
RulingQuery is the builder for querying Ruling entities.
RulingSelect is the builder for selecting fields of Ruling entities.
RulingUpdate is the builder for updating Ruling entities.
RulingUpdateOne is the builder for updating a single Ruling entity.
Set is the model entity for the Set schema.
SetClient is a client for the Set schema.
SetCreate is the builder for creating a Set entity.
SetCreateBulk is the builder for creating many Set entities in bulk.
SetDelete is the builder for deleting a Set entity.
SetDeleteOne is the builder for deleting a single Set entity.
SetEdges holds the relations/edges for other nodes in the graph.
SetGroupBy is the group-by builder for Set entities.
SetMutation represents an operation that mutates the Set nodes in the graph.
SetQuery is the builder for querying Set entities.
SetSelect is the builder for selecting fields of Set entities.
SetUpdate is the builder for updating Set entities.
SetUpdateOne is the builder for updating a single Set entity.
Tx is a transactional client that is created by calling Client.Tx().
ValidationError returns when validating a field or edge fails.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

AggregateFunc applies an aggregation step on the group-by traversal/selector.
Artists is a parsable slice of Artist.
CardFaces is a parsable slice of CardFace.
Cards is a parsable slice of Card.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
OrderFunc applies an ordering on the sql selector.
ent aliases to avoid import conflicts in user's code.
PrintingImages is a parsable slice of PrintingImage.
Printings is a parsable slice of Printing.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
No description provided by the author
Rulings is a parsable slice of Ruling.
Sets is a parsable slice of Set.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.