package
0.0.0-20240513023348-5feaf8d2ad78
Repository: https://github.com/go-faster/bot.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
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.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewGitCommitClient returns a client for the GitCommit from the given config.
NewGPTDialogClient returns a client for the GPTDialog from the given config.
NewLastChannelMessageClient returns a client for the LastChannelMessage from the given config.
NewOrganizationClient returns a client for the Organization from the given config.
NewPRNotificationClient returns a client for the PRNotification from the given config.
NewRepositoryClient returns a client for the Repository from the given config.
NewTelegramChannelStateClient returns a client for the TelegramChannelState from the given config.
NewTelegramSessionClient returns a client for the TelegramSession from the given config.
NewTelegramUserStateClient returns a client for the TelegramUserState 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
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.
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.
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.
No description provided by the author
CheckUpsertBulk is the builder for "upsert"-ing a bulk of Check nodes.
No description provided by the author
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.
GitCommit is the model entity for the GitCommit schema.
GitCommitClient is a client for the GitCommit schema.
GitCommitCreate is the builder for creating a GitCommit entity.
GitCommitCreateBulk is the builder for creating many GitCommit entities in bulk.
GitCommitDelete is the builder for deleting a GitCommit entity.
GitCommitDeleteOne is the builder for deleting a single GitCommit entity.
GitCommitEdges holds the relations/edges for other nodes in the graph.
GitCommitGroupBy is the group-by builder for GitCommit entities.
GitCommitMutation represents an operation that mutates the GitCommit nodes in the graph.
GitCommitQuery is the builder for querying GitCommit entities.
GitCommitSelect is the builder for selecting fields of GitCommit entities.
GitCommitUpdate is the builder for updating GitCommit entities.
GitCommitUpdateOne is the builder for updating a single GitCommit entity.
No description provided by the author
GitCommitUpsertBulk is the builder for "upsert"-ing a bulk of GitCommit nodes.
No description provided by the author
GPTDialog is the model entity for the GPTDialog schema.
GPTDialogClient is a client for the GPTDialog schema.
GPTDialogCreate is the builder for creating a GPTDialog entity.
GPTDialogCreateBulk is the builder for creating many GPTDialog entities in bulk.
GPTDialogDelete is the builder for deleting a GPTDialog entity.
GPTDialogDeleteOne is the builder for deleting a single GPTDialog entity.
GPTDialogGroupBy is the group-by builder for GPTDialog entities.
GPTDialogMutation represents an operation that mutates the GPTDialog nodes in the graph.
GPTDialogQuery is the builder for querying GPTDialog entities.
GPTDialogSelect is the builder for selecting fields of GPTDialog entities.
GPTDialogUpdate is the builder for updating GPTDialog entities.
GPTDialogUpdateOne is the builder for updating a single GPTDialog entity.
No description provided by the author
GPTDialogUpsertBulk is the builder for "upsert"-ing a bulk of GPTDialog nodes.
No description provided by the author
LastChannelMessage is the model entity for the LastChannelMessage schema.
LastChannelMessageClient is a client for the LastChannelMessage schema.
LastChannelMessageCreate is the builder for creating a LastChannelMessage entity.
LastChannelMessageCreateBulk is the builder for creating many LastChannelMessage entities in bulk.
LastChannelMessageDelete is the builder for deleting a LastChannelMessage entity.
LastChannelMessageDeleteOne is the builder for deleting a single LastChannelMessage entity.
LastChannelMessageGroupBy is the group-by builder for LastChannelMessage entities.
LastChannelMessageMutation represents an operation that mutates the LastChannelMessage nodes in the graph.
LastChannelMessageQuery is the builder for querying LastChannelMessage entities.
LastChannelMessageSelect is the builder for selecting fields of LastChannelMessage entities.
LastChannelMessageUpdate is the builder for updating LastChannelMessage entities.
LastChannelMessageUpdateOne is the builder for updating a single LastChannelMessage entity.
No description provided by the author
LastChannelMessageUpsertBulk is the builder for "upsert"-ing a bulk of LastChannelMessage 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.
Organization is the model entity for the Organization schema.
OrganizationClient is a client for the Organization schema.
OrganizationCreate is the builder for creating a Organization entity.
OrganizationCreateBulk is the builder for creating many Organization entities in bulk.
OrganizationDelete is the builder for deleting a Organization entity.
OrganizationDeleteOne is the builder for deleting a single Organization entity.
OrganizationEdges holds the relations/edges for other nodes in the graph.
OrganizationGroupBy is the group-by builder for Organization entities.
OrganizationMutation represents an operation that mutates the Organization nodes in the graph.
OrganizationQuery is the builder for querying Organization entities.
OrganizationSelect is the builder for selecting fields of Organization entities.
OrganizationUpdate is the builder for updating Organization entities.
OrganizationUpdateOne is the builder for updating a single Organization entity.
No description provided by the author
OrganizationUpsertBulk is the builder for "upsert"-ing a bulk of Organization nodes.
No description provided by the author
PRNotification is the model entity for the PRNotification schema.
PRNotificationClient is a client for the PRNotification schema.
PRNotificationCreate is the builder for creating a PRNotification entity.
PRNotificationCreateBulk is the builder for creating many PRNotification entities in bulk.
PRNotificationDelete is the builder for deleting a PRNotification entity.
PRNotificationDeleteOne is the builder for deleting a single PRNotification entity.
PRNotificationGroupBy is the group-by builder for PRNotification entities.
PRNotificationMutation represents an operation that mutates the PRNotification nodes in the graph.
PRNotificationQuery is the builder for querying PRNotification entities.
PRNotificationSelect is the builder for selecting fields of PRNotification entities.
PRNotificationUpdate is the builder for updating PRNotification entities.
PRNotificationUpdateOne is the builder for updating a single PRNotification entity.
No description provided by the author
PRNotificationUpsertBulk is the builder for "upsert"-ing a bulk of PRNotification nodes.
No description provided by the author
Repository is the model entity for the Repository schema.
RepositoryClient is a client for the Repository schema.
RepositoryCreate is the builder for creating a Repository entity.
RepositoryCreateBulk is the builder for creating many Repository entities in bulk.
RepositoryDelete is the builder for deleting a Repository entity.
RepositoryDeleteOne is the builder for deleting a single Repository entity.
RepositoryEdges holds the relations/edges for other nodes in the graph.
RepositoryGroupBy is the group-by builder for Repository entities.
RepositoryMutation represents an operation that mutates the Repository nodes in the graph.
RepositoryQuery is the builder for querying Repository entities.
RepositorySelect is the builder for selecting fields of Repository entities.
RepositoryUpdate is the builder for updating Repository entities.
RepositoryUpdateOne is the builder for updating a single Repository entity.
No description provided by the author
RepositoryUpsertBulk is the builder for "upsert"-ing a bulk of Repository nodes.
No description provided by the author
TelegramChannelState is the model entity for the TelegramChannelState schema.
TelegramChannelStateClient is a client for the TelegramChannelState schema.
TelegramChannelStateCreate is the builder for creating a TelegramChannelState entity.
TelegramChannelStateCreateBulk is the builder for creating many TelegramChannelState entities in bulk.
TelegramChannelStateDelete is the builder for deleting a TelegramChannelState entity.
TelegramChannelStateDeleteOne is the builder for deleting a single TelegramChannelState entity.
TelegramChannelStateEdges holds the relations/edges for other nodes in the graph.
TelegramChannelStateGroupBy is the group-by builder for TelegramChannelState entities.
TelegramChannelStateMutation represents an operation that mutates the TelegramChannelState nodes in the graph.
TelegramChannelStateQuery is the builder for querying TelegramChannelState entities.
TelegramChannelStateSelect is the builder for selecting fields of TelegramChannelState entities.
TelegramChannelStateUpdate is the builder for updating TelegramChannelState entities.
TelegramChannelStateUpdateOne is the builder for updating a single TelegramChannelState entity.
No description provided by the author
TelegramChannelStateUpsertBulk is the builder for "upsert"-ing a bulk of TelegramChannelState nodes.
No description provided by the author
TelegramSession is the model entity for the TelegramSession schema.
TelegramSessionClient is a client for the TelegramSession schema.
TelegramSessionCreate is the builder for creating a TelegramSession entity.
TelegramSessionCreateBulk is the builder for creating many TelegramSession entities in bulk.
TelegramSessionDelete is the builder for deleting a TelegramSession entity.
TelegramSessionDeleteOne is the builder for deleting a single TelegramSession entity.
TelegramSessionGroupBy is the group-by builder for TelegramSession entities.
TelegramSessionMutation represents an operation that mutates the TelegramSession nodes in the graph.
TelegramSessionQuery is the builder for querying TelegramSession entities.
TelegramSessionSelect is the builder for selecting fields of TelegramSession entities.
TelegramSessionUpdate is the builder for updating TelegramSession entities.
TelegramSessionUpdateOne is the builder for updating a single TelegramSession entity.
No description provided by the author
TelegramSessionUpsertBulk is the builder for "upsert"-ing a bulk of TelegramSession nodes.
No description provided by the author
TelegramUserState is the model entity for the TelegramUserState schema.
TelegramUserStateClient is a client for the TelegramUserState schema.
TelegramUserStateCreate is the builder for creating a TelegramUserState entity.
TelegramUserStateCreateBulk is the builder for creating many TelegramUserState entities in bulk.
TelegramUserStateDelete is the builder for deleting a TelegramUserState entity.
TelegramUserStateDeleteOne is the builder for deleting a single TelegramUserState entity.
TelegramUserStateEdges holds the relations/edges for other nodes in the graph.
TelegramUserStateGroupBy is the group-by builder for TelegramUserState entities.
TelegramUserStateMutation represents an operation that mutates the TelegramUserState nodes in the graph.
TelegramUserStateQuery is the builder for querying TelegramUserState entities.
TelegramUserStateSelect is the builder for selecting fields of TelegramUserState entities.
TelegramUserStateUpdate is the builder for updating TelegramUserState entities.
TelegramUserStateUpdateOne is the builder for updating a single TelegramUserState entity.
No description provided by the author
TelegramUserStateUpsertBulk is the builder for "upsert"-ing a bulk of TelegramUserState nodes.
No description provided by the author
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.
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.
No description provided by the author
UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.
No description provided by the author
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.
Checks is a parsable slice of Check.
No description provided by the author
No description provided by the author
GitCommits is a parsable slice of GitCommit.
GPTDialogs is a parsable slice of GPTDialog.
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.
LastChannelMessages is a parsable slice of LastChannelMessage.
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.
Organizations is a parsable slice of Organization.
ent aliases to avoid import conflicts in user's code.
PRNotifications is a parsable slice of PRNotification.
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.
Repositories is a parsable slice of Repository.
No description provided by the author
No description provided by the author
TelegramChannelStates is a parsable slice of TelegramChannelState.
TelegramSessions is a parsable slice of TelegramSession.
TelegramUserStates is a parsable slice of TelegramUserState.
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.