package
0.0.0-20241221063656-87887cf51946
Repository: https://github.com/lrstanley/spectrograph.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

# 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.
NewGuildAdminConfigClient returns a client for the GuildAdminConfig from the given config.
NewGuildClient returns a client for the Guild from the given config.
NewGuildConfigClient returns a client for the GuildConfig from the given config.
NewGuildEventClient returns a client for the GuildEvent 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.
WithGuildAdminConfigFilter configures pagination filter.
WithGuildAdminConfigOrder configures pagination ordering.
WithGuildConfigFilter configures pagination filter.
WithGuildConfigOrder configures pagination ordering.
WithGuildEventFilter configures pagination filter.
WithGuildEventOrder configures pagination ordering.
WithGuildFilter configures pagination filter.
WithGuildOrder configures pagination ordering.
WithNodeType sets the node Type resolver function (i.e.
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
No description provided by the author
No description provided by the author

# Variables

DefaultGuildAdminConfigOrder is the default ordering of GuildAdminConfig.
DefaultGuildConfigOrder is the default ordering of GuildConfig.
DefaultGuildEventOrder is the default ordering of GuildEvent.
DefaultGuildOrder is the default ordering of Guild.
DefaultUserOrder is the default ordering of User.
ErrEmptyGuildAdminConfigWhereInput is returned in case the GuildAdminConfigWhereInput is empty.
ErrEmptyGuildConfigWhereInput is returned in case the GuildConfigWhereInput is empty.
ErrEmptyGuildEventWhereInput is returned in case the GuildEventWhereInput is empty.
ErrEmptyGuildWhereInput is returned in case the GuildWhereInput is empty.
ErrEmptyUserWhereInput is returned in case the UserWhereInput is empty.
GuildEventOrderFieldCreateTime orders GuildEvent by create_time.
GuildEventOrderFieldUpdateTime orders GuildEvent by update_time.
GuildOrderFieldJoinedAt orders Guild by joined_at.
GuildOrderFieldName orders Guild by name.
UserOrderFieldDiscriminator orders User by discriminator.
UserOrderFieldEmail orders User by email.
UserOrderFieldUsername orders User by username.

# 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.
Guild is the model entity for the Guild schema.
GuildAdminConfig is the model entity for the GuildAdminConfig schema.
GuildAdminConfigClient is a client for the GuildAdminConfig schema.
GuildAdminConfigConnection is the connection containing edges to GuildAdminConfig.
GuildAdminConfigCreate is the builder for creating a GuildAdminConfig entity.
GuildAdminConfigCreateBulk is the builder for creating many GuildAdminConfig entities in bulk.
GuildAdminConfigDelete is the builder for deleting a GuildAdminConfig entity.
GuildAdminConfigDeleteOne is the builder for deleting a single GuildAdminConfig entity.
GuildAdminConfigEdge is the edge representation of GuildAdminConfig.
GuildAdminConfigEdges holds the relations/edges for other nodes in the graph.
GuildAdminConfigFilter provides a generic filtering capability at runtime for GuildAdminConfigQuery.
GuildAdminConfigGroupBy is the group-by builder for GuildAdminConfig entities.
GuildAdminConfigMutation represents an operation that mutates the GuildAdminConfig nodes in the graph.
GuildAdminConfigOrder defines the ordering of GuildAdminConfig.
GuildAdminConfigOrderField defines the ordering field of GuildAdminConfig.
GuildAdminConfigQuery is the builder for querying GuildAdminConfig entities.
GuildAdminConfigSelect is the builder for selecting fields of GuildAdminConfig entities.
GuildAdminConfigUpdate is the builder for updating GuildAdminConfig entities.
GuildAdminConfigUpdateOne is the builder for updating a single GuildAdminConfig entity.
No description provided by the author
GuildAdminConfigUpsertBulk is the builder for "upsert"-ing a bulk of GuildAdminConfig nodes.
No description provided by the author
GuildAdminConfigWhereInput represents a where input for filtering GuildAdminConfig queries.
GuildClient is a client for the Guild schema.
GuildConfig is the model entity for the GuildConfig schema.
GuildConfigClient is a client for the GuildConfig schema.
GuildConfigConnection is the connection containing edges to GuildConfig.
GuildConfigCreate is the builder for creating a GuildConfig entity.
GuildConfigCreateBulk is the builder for creating many GuildConfig entities in bulk.
GuildConfigDelete is the builder for deleting a GuildConfig entity.
GuildConfigDeleteOne is the builder for deleting a single GuildConfig entity.
GuildConfigEdge is the edge representation of GuildConfig.
GuildConfigEdges holds the relations/edges for other nodes in the graph.
GuildConfigFilter provides a generic filtering capability at runtime for GuildConfigQuery.
GuildConfigGroupBy is the group-by builder for GuildConfig entities.
GuildConfigMutation represents an operation that mutates the GuildConfig nodes in the graph.
GuildConfigOrder defines the ordering of GuildConfig.
GuildConfigOrderField defines the ordering field of GuildConfig.
GuildConfigQuery is the builder for querying GuildConfig entities.
GuildConfigSelect is the builder for selecting fields of GuildConfig entities.
GuildConfigUpdate is the builder for updating GuildConfig entities.
GuildConfigUpdateOne is the builder for updating a single GuildConfig entity.
No description provided by the author
GuildConfigUpsertBulk is the builder for "upsert"-ing a bulk of GuildConfig nodes.
No description provided by the author
GuildConfigWhereInput represents a where input for filtering GuildConfig queries.
GuildConnection is the connection containing edges to Guild.
GuildCreate is the builder for creating a Guild entity.
GuildCreateBulk is the builder for creating many Guild entities in bulk.
GuildDelete is the builder for deleting a Guild entity.
GuildDeleteOne is the builder for deleting a single Guild entity.
GuildEdge is the edge representation of Guild.
GuildEdges holds the relations/edges for other nodes in the graph.
GuildEvent is the model entity for the GuildEvent schema.
GuildEventClient is a client for the GuildEvent schema.
GuildEventConnection is the connection containing edges to GuildEvent.
GuildEventCreate is the builder for creating a GuildEvent entity.
GuildEventCreateBulk is the builder for creating many GuildEvent entities in bulk.
GuildEventDelete is the builder for deleting a GuildEvent entity.
GuildEventDeleteOne is the builder for deleting a single GuildEvent entity.
GuildEventEdge is the edge representation of GuildEvent.
GuildEventEdges holds the relations/edges for other nodes in the graph.
GuildEventFilter provides a generic filtering capability at runtime for GuildEventQuery.
GuildEventGroupBy is the group-by builder for GuildEvent entities.
GuildEventMutation represents an operation that mutates the GuildEvent nodes in the graph.
GuildEventOrder defines the ordering of GuildEvent.
GuildEventOrderField defines the ordering field of GuildEvent.
GuildEventQuery is the builder for querying GuildEvent entities.
GuildEventSelect is the builder for selecting fields of GuildEvent entities.
GuildEventUpdate is the builder for updating GuildEvent entities.
GuildEventUpdateOne is the builder for updating a single GuildEvent entity.
No description provided by the author
GuildEventUpsertBulk is the builder for "upsert"-ing a bulk of GuildEvent nodes.
No description provided by the author
GuildEventWhereInput represents a where input for filtering GuildEvent queries.
GuildFilter provides a generic filtering capability at runtime for GuildQuery.
GuildGroupBy is the group-by builder for Guild entities.
GuildMutation represents an operation that mutates the Guild nodes in the graph.
GuildOrder defines the ordering of Guild.
GuildOrderField defines the ordering field of Guild.
GuildQuery is the builder for querying Guild entities.
GuildSelect is the builder for selecting fields of Guild entities.
GuildUpdate is the builder for updating Guild entities.
GuildUpdateOne is the builder for updating a single Guild entity.
No description provided by the author
GuildUpsertBulk is the builder for "upsert"-ing a bulk of Guild nodes.
No description provided by the author
GuildWhereInput represents a where input for filtering Guild queries.
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.
Tx is a transactional client that is created by calling Client.Tx().
UpdateGuildAdminConfigInput represents a mutation input for updating guildadminconfigs.
UpdateGuildConfigInput represents a mutation input for updating guildconfigs.
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
GuildAdminConfigPaginateOption enables pagination customization.
GuildAdminConfigs is a parsable slice of GuildAdminConfig.
GuildConfigPaginateOption enables pagination customization.
GuildConfigs is a parsable slice of GuildConfig.
GuildEventPaginateOption enables pagination customization.
GuildEvents is a parsable slice of GuildEvent.
GuildPaginateOption enables pagination customization.
Guilds is a parsable slice of Guild.
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.
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.
UserPaginateOption enables pagination customization.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.