package
0.0.0-20241221063703-a3ae2fda5b63
Repository: https://github.com/lrstanley/ent-bug-edge-schema.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

# 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.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewLikeClient returns a client for the Like from the given config.
NewTweetClient returns a client for the Tweet from the given config.
NewTxContext returns a new context with the given Tx attached.
NewUserClient returns a client for the User from the given config.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
OpenTxFromContext open transactions from client stored in context.
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.
WithFixedNodeType sets the Type of the node to a fixed value.
WithNodeType sets the node Type resolver function (i.e.
WithTweetFilter configures pagination filter.
WithTweetOrder configures pagination ordering.
WithUserFilter configures pagination filter.
WithUserOrder configures pagination ordering.

# 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

# Variables

DefaultTweetOrder is the default ordering of Tweet.
DefaultUserOrder is the default ordering of User.
ErrEmptyTweetWhereInput is returned in case the TweetWhereInput is empty.
ErrEmptyUserWhereInput is returned in case the UserWhereInput is empty.
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
UserOrderFieldAge orders User by age.
UserOrderFieldName orders User by name.

# Structs

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.
CreateLikeInput represents a mutation input for creating likes.
Like is the model entity for the Like schema.
LikeClient is a client for the Like schema.
LikeCreate is the builder for creating a Like entity.
LikeCreateBulk is the builder for creating many Like entities in bulk.
LikeDelete is the builder for deleting a Like entity.
LikeDeleteOne is the builder for deleting a single Like entity.
LikeEdges holds the relations/edges for other nodes in the graph.
LikeFilter provides a generic filtering capability at runtime for LikeQuery.
LikeGroupBy is the group-by builder for Like entities.
LikeMutation represents an operation that mutates the Like nodes in the graph.
LikeQuery is the builder for querying Like entities.
LikeSelect is the builder for selecting fields of Like entities.
LikeUpdate is the builder for updating Like entities.
LikeUpdateOne is the builder for updating a single Like entity.
No description provided by the author
LikeUpsertBulk is the builder for "upsert"-ing a bulk of Like nodes.
No description provided by the author
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.
Tweet is the model entity for the Tweet schema.
TweetClient is a client for the Tweet schema.
TweetConnection is the connection containing edges to Tweet.
TweetCreate is the builder for creating a Tweet entity.
TweetCreateBulk is the builder for creating many Tweet entities in bulk.
TweetDelete is the builder for deleting a Tweet entity.
TweetDeleteOne is the builder for deleting a single Tweet entity.
TweetEdge is the edge representation of Tweet.
TweetEdges holds the relations/edges for other nodes in the graph.
TweetFilter provides a generic filtering capability at runtime for TweetQuery.
TweetGroupBy is the group-by builder for Tweet entities.
TweetMutation represents an operation that mutates the Tweet nodes in the graph.
TweetOrder defines the ordering of Tweet.
TweetOrderField defines the ordering field of Tweet.
TweetQuery is the builder for querying Tweet entities.
TweetSelect is the builder for selecting fields of Tweet entities.
TweetUpdate is the builder for updating Tweet entities.
TweetUpdateOne is the builder for updating a single Tweet entity.
No description provided by the author
TweetUpsertBulk is the builder for "upsert"-ing a bulk of Tweet nodes.
No description provided by the author
TweetWhereInput represents a where input for filtering Tweet queries.
Tx is a transactional client that is created by calling Client.Tx().
User is the model entity for the User schema.
UserClient is a client for the User schema.
UserConnection is the connection containing edges to User.
UserCreate is the builder for creating a User entity.
UserCreateBulk is the builder for creating many User entities in bulk.
UserDelete is the builder for deleting a User entity.
UserDeleteOne is the builder for deleting a single User entity.
UserEdge is the edge representation of User.
UserEdges holds the relations/edges for other nodes in the graph.
UserFilter provides a generic filtering capability at runtime for UserQuery.
UserGroupBy is the group-by builder for User entities.
UserMutation represents an operation that mutates the User nodes in the graph.
UserOrder defines the ordering of User.
UserOrderField defines the ordering field of User.
UserQuery is the builder for querying User entities.
UserSelect is the builder for selecting fields of User entities.
UserUpdate is the builder for updating User entities.
UserUpdateOne is the builder for updating a single User entity.
No description provided by the author
UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.
No description provided by the author
UserWhereInput represents a where input for filtering User queries.
ValidationError returns when validating a field or edge fails.

# Interfaces

No description provided by the author
Noder wraps the basic Node method.
No description provided by the author

# Type aliases

AggregateFunc applies an aggregation step on the group-by traversal/selector.
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.
Likes is a parsable slice of Like.
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.
NodeOption allows configuring the Noder execution using functional options.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
Common entgql types.
OrderFunc applies an ordering on the sql selector.
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
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.
TweetPaginateOption enables pagination customization.
Tweets is a parsable slice of Tweet.
UserPaginateOption enables pagination customization.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.