package
0.0.0-20240707031454-d5824db75683
Repository: https://github.com/scorify/backend.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
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.
NewCheckClient returns a client for the Check from the given config.
NewCheckConfigClient returns a client for the CheckConfig from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewInjectClient returns a client for the Inject from the given config.
NewInjectSubmissionClient returns a client for the InjectSubmission from the given config.
NewRoundClient returns a client for the Round from the given config.
NewScoreCacheClient returns a client for the ScoreCache from the given config.
NewStatusClient returns a client for the Status 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.
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
No description provided by the author

# Variables

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

# Structs

Check is the model entity for the Check schema.
CheckClient is a client for the Check schema.
CheckConfig is the model entity for the CheckConfig schema.
CheckConfigClient is a client for the CheckConfig schema.
CheckConfigCreate is the builder for creating a CheckConfig entity.
CheckConfigCreateBulk is the builder for creating many CheckConfig entities in bulk.
CheckConfigDelete is the builder for deleting a CheckConfig entity.
CheckConfigDeleteOne is the builder for deleting a single CheckConfig entity.
CheckConfigEdges holds the relations/edges for other nodes in the graph.
CheckConfigGroupBy is the group-by builder for CheckConfig entities.
CheckConfigMutation represents an operation that mutates the CheckConfig nodes in the graph.
CheckConfigQuery is the builder for querying CheckConfig entities.
CheckConfigSelect is the builder for selecting fields of CheckConfig entities.
CheckConfigUpdate is the builder for updating CheckConfig entities.
CheckConfigUpdateOne is the builder for updating a single CheckConfig entity.
CheckCreate is the builder for creating a Check entity.
CheckCreateBulk is the builder for creating many Check entities in bulk.
CheckDelete is the builder for deleting a Check entity.
CheckDeleteOne is the builder for deleting a single Check entity.
CheckEdges holds the relations/edges for other nodes in the graph.
CheckGroupBy is the group-by builder for Check entities.
CheckMutation represents an operation that mutates the Check nodes in the graph.
CheckQuery is the builder for querying Check entities.
CheckSelect is the builder for selecting fields of Check entities.
CheckUpdate is the builder for updating Check entities.
CheckUpdateOne is the builder for updating a single Check 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.
Inject is the model entity for the Inject schema.
InjectClient is a client for the Inject schema.
InjectCreate is the builder for creating a Inject entity.
InjectCreateBulk is the builder for creating many Inject entities in bulk.
InjectDelete is the builder for deleting a Inject entity.
InjectDeleteOne is the builder for deleting a single Inject entity.
InjectEdges holds the relations/edges for other nodes in the graph.
InjectGroupBy is the group-by builder for Inject entities.
InjectMutation represents an operation that mutates the Inject nodes in the graph.
InjectQuery is the builder for querying Inject entities.
InjectSelect is the builder for selecting fields of Inject entities.
InjectSubmission is the model entity for the InjectSubmission schema.
InjectSubmissionClient is a client for the InjectSubmission schema.
InjectSubmissionCreate is the builder for creating a InjectSubmission entity.
InjectSubmissionCreateBulk is the builder for creating many InjectSubmission entities in bulk.
InjectSubmissionDelete is the builder for deleting a InjectSubmission entity.
InjectSubmissionDeleteOne is the builder for deleting a single InjectSubmission entity.
InjectSubmissionEdges holds the relations/edges for other nodes in the graph.
InjectSubmissionGroupBy is the group-by builder for InjectSubmission entities.
InjectSubmissionMutation represents an operation that mutates the InjectSubmission nodes in the graph.
InjectSubmissionQuery is the builder for querying InjectSubmission entities.
InjectSubmissionSelect is the builder for selecting fields of InjectSubmission entities.
InjectSubmissionUpdate is the builder for updating InjectSubmission entities.
InjectSubmissionUpdateOne is the builder for updating a single InjectSubmission entity.
InjectUpdate is the builder for updating Inject entities.
InjectUpdateOne is the builder for updating a single Inject entity.
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.
Round is the model entity for the Round schema.
RoundClient is a client for the Round schema.
RoundCreate is the builder for creating a Round entity.
RoundCreateBulk is the builder for creating many Round entities in bulk.
RoundDelete is the builder for deleting a Round entity.
RoundDeleteOne is the builder for deleting a single Round entity.
RoundEdges holds the relations/edges for other nodes in the graph.
RoundGroupBy is the group-by builder for Round entities.
RoundMutation represents an operation that mutates the Round nodes in the graph.
RoundQuery is the builder for querying Round entities.
RoundSelect is the builder for selecting fields of Round entities.
RoundUpdate is the builder for updating Round entities.
RoundUpdateOne is the builder for updating a single Round entity.
ScoreCache is the model entity for the ScoreCache schema.
ScoreCacheClient is a client for the ScoreCache schema.
ScoreCacheCreate is the builder for creating a ScoreCache entity.
ScoreCacheCreateBulk is the builder for creating many ScoreCache entities in bulk.
ScoreCacheDelete is the builder for deleting a ScoreCache entity.
ScoreCacheDeleteOne is the builder for deleting a single ScoreCache entity.
ScoreCacheEdges holds the relations/edges for other nodes in the graph.
ScoreCacheGroupBy is the group-by builder for ScoreCache entities.
ScoreCacheMutation represents an operation that mutates the ScoreCache nodes in the graph.
ScoreCacheQuery is the builder for querying ScoreCache entities.
ScoreCacheSelect is the builder for selecting fields of ScoreCache entities.
ScoreCacheUpdate is the builder for updating ScoreCache entities.
ScoreCacheUpdateOne is the builder for updating a single ScoreCache entity.
Status is the model entity for the Status schema.
StatusClient is a client for the Status schema.
StatusCreate is the builder for creating a Status entity.
StatusCreateBulk is the builder for creating many Status entities in bulk.
StatusDelete is the builder for deleting a Status entity.
StatusDeleteOne is the builder for deleting a single Status entity.
StatusEdges holds the relations/edges for other nodes in the graph.
StatusGroupBy is the group-by builder for Status entities.
StatusMutation represents an operation that mutates the Status nodes in the graph.
StatusQuery is the builder for querying Status entities.
StatusSelect is the builder for selecting fields of Status entities.
StatusUpdate is the builder for updating Status entities.
StatusUpdateOne is the builder for updating a single Status entity.
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.
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.
UserEdges holds the relations/edges for other nodes in the graph.
UserGroupBy is the group-by builder for User entities.
UserMutation represents an operation that mutates the User nodes in the graph.
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.
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.
CheckConfigs is a parsable slice of CheckConfig.
Checks is a parsable slice of Check.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflicts in user's code.
Injects is a parsable slice of Inject.
InjectSubmissions is a parsable slice of InjectSubmission.
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.
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
Rounds is a parsable slice of Round.
ScoreCaches is a parsable slice of ScoreCache.
StatusSlice is a parsable slice of Status.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.