package
0.0.0-20250101162340-1f1ff196bc29
Repository: https://github.com/koo-arch/adjusta-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

# 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.
NewCalendarClient returns a client for the Calendar from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewEventClient returns a client for the Event from the given config.
NewGoogleCalendarInfoClient returns a client for the GoogleCalendarInfo from the given config.
NewJWTKeyClient returns a client for the JWTKey from the given config.
NewOAuthTokenClient returns a client for the OAuthToken from the given config.
NewProposedDateClient returns a client for the ProposedDate 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

# Variables

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

# Structs

Calendar is the model entity for the Calendar schema.
CalendarClient is a client for the Calendar schema.
CalendarCreate is the builder for creating a Calendar entity.
CalendarCreateBulk is the builder for creating many Calendar entities in bulk.
CalendarDelete is the builder for deleting a Calendar entity.
CalendarDeleteOne is the builder for deleting a single Calendar entity.
CalendarEdges holds the relations/edges for other nodes in the graph.
CalendarGroupBy is the group-by builder for Calendar entities.
CalendarMutation represents an operation that mutates the Calendar nodes in the graph.
CalendarQuery is the builder for querying Calendar entities.
CalendarSelect is the builder for selecting fields of Calendar entities.
CalendarUpdate is the builder for updating Calendar entities.
CalendarUpdateOne is the builder for updating a single Calendar 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.
Event is the model entity for the Event schema.
EventClient is a client for the Event schema.
EventCreate is the builder for creating a Event entity.
EventCreateBulk is the builder for creating many Event entities in bulk.
EventDelete is the builder for deleting a Event entity.
EventDeleteOne is the builder for deleting a single Event entity.
EventEdges holds the relations/edges for other nodes in the graph.
EventGroupBy is the group-by builder for Event entities.
EventMutation represents an operation that mutates the Event nodes in the graph.
EventQuery is the builder for querying Event entities.
EventSelect is the builder for selecting fields of Event entities.
EventUpdate is the builder for updating Event entities.
EventUpdateOne is the builder for updating a single Event entity.
GoogleCalendarInfo is the model entity for the GoogleCalendarInfo schema.
GoogleCalendarInfoClient is a client for the GoogleCalendarInfo schema.
GoogleCalendarInfoCreate is the builder for creating a GoogleCalendarInfo entity.
GoogleCalendarInfoCreateBulk is the builder for creating many GoogleCalendarInfo entities in bulk.
GoogleCalendarInfoDelete is the builder for deleting a GoogleCalendarInfo entity.
GoogleCalendarInfoDeleteOne is the builder for deleting a single GoogleCalendarInfo entity.
GoogleCalendarInfoEdges holds the relations/edges for other nodes in the graph.
GoogleCalendarInfoGroupBy is the group-by builder for GoogleCalendarInfo entities.
GoogleCalendarInfoMutation represents an operation that mutates the GoogleCalendarInfo nodes in the graph.
GoogleCalendarInfoQuery is the builder for querying GoogleCalendarInfo entities.
GoogleCalendarInfoSelect is the builder for selecting fields of GoogleCalendarInfo entities.
GoogleCalendarInfoUpdate is the builder for updating GoogleCalendarInfo entities.
GoogleCalendarInfoUpdateOne is the builder for updating a single GoogleCalendarInfo entity.
JWTKey is the model entity for the JWTKey schema.
JWTKeyClient is a client for the JWTKey schema.
JWTKeyCreate is the builder for creating a JWTKey entity.
JWTKeyCreateBulk is the builder for creating many JWTKey entities in bulk.
JWTKeyDelete is the builder for deleting a JWTKey entity.
JWTKeyDeleteOne is the builder for deleting a single JWTKey entity.
JWTKeyGroupBy is the group-by builder for JWTKey entities.
JWTKeyMutation represents an operation that mutates the JWTKey nodes in the graph.
JWTKeyQuery is the builder for querying JWTKey entities.
JWTKeySelect is the builder for selecting fields of JWTKey entities.
JWTKeyUpdate is the builder for updating JWTKey entities.
JWTKeyUpdateOne is the builder for updating a single JWTKey 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.
OAuthToken is the model entity for the OAuthToken schema.
OAuthTokenClient is a client for the OAuthToken schema.
OAuthTokenCreate is the builder for creating a OAuthToken entity.
OAuthTokenCreateBulk is the builder for creating many OAuthToken entities in bulk.
OAuthTokenDelete is the builder for deleting a OAuthToken entity.
OAuthTokenDeleteOne is the builder for deleting a single OAuthToken entity.
OAuthTokenEdges holds the relations/edges for other nodes in the graph.
OAuthTokenGroupBy is the group-by builder for OAuthToken entities.
OAuthTokenMutation represents an operation that mutates the OAuthToken nodes in the graph.
OAuthTokenQuery is the builder for querying OAuthToken entities.
OAuthTokenSelect is the builder for selecting fields of OAuthToken entities.
OAuthTokenUpdate is the builder for updating OAuthToken entities.
OAuthTokenUpdateOne is the builder for updating a single OAuthToken entity.
ProposedDate is the model entity for the ProposedDate schema.
ProposedDateClient is a client for the ProposedDate schema.
ProposedDateCreate is the builder for creating a ProposedDate entity.
ProposedDateCreateBulk is the builder for creating many ProposedDate entities in bulk.
ProposedDateDelete is the builder for deleting a ProposedDate entity.
ProposedDateDeleteOne is the builder for deleting a single ProposedDate entity.
ProposedDateEdges holds the relations/edges for other nodes in the graph.
ProposedDateGroupBy is the group-by builder for ProposedDate entities.
ProposedDateMutation represents an operation that mutates the ProposedDate nodes in the graph.
ProposedDateQuery is the builder for querying ProposedDate entities.
ProposedDateSelect is the builder for selecting fields of ProposedDate entities.
ProposedDateUpdate is the builder for updating ProposedDate entities.
ProposedDateUpdateOne is the builder for updating a single ProposedDate 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.
Calendars is a parsable slice of Calendar.
No description provided by the author
No description provided by the author
Events is a parsable slice of Event.
GoogleCalendarInfos is a parsable slice of GoogleCalendarInfo.
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.
JWTKeys is a parsable slice of JWTKey.
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.
OAuthTokens is a parsable slice of OAuthToken.
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.
ProposedDates is a parsable slice of ProposedDate.
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.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.