package
0.0.0-20240904141453-296f4a64edd3
Repository: https://github.com/gnolang/gh-sql.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
Package schema specifies the ent schema types for gh-sql's database.
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.
NewIssueClient returns a client for the Issue from the given config.
NewIssueCommentClient returns a client for the IssueComment from the given config.
NewRepositoryClient returns a client for the Repository from the given config.
NewTimelineEventClient returns a client for the TimelineEvent 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
# Variables
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
# 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.
Issue is the model entity for the Issue schema.
IssueClient is a client for the Issue schema.
IssueComment is the model entity for the IssueComment schema.
IssueCommentClient is a client for the IssueComment schema.
IssueCommentCreate is the builder for creating a IssueComment entity.
IssueCommentCreateBulk is the builder for creating many IssueComment entities in bulk.
IssueCommentDelete is the builder for deleting a IssueComment entity.
IssueCommentDeleteOne is the builder for deleting a single IssueComment entity.
IssueCommentEdges holds the relations/edges for other nodes in the graph.
IssueCommentGroupBy is the group-by builder for IssueComment entities.
IssueCommentMutation represents an operation that mutates the IssueComment nodes in the graph.
IssueCommentQuery is the builder for querying IssueComment entities.
IssueCommentSelect is the builder for selecting fields of IssueComment entities.
IssueCommentUpdate is the builder for updating IssueComment entities.
IssueCommentUpdateOne is the builder for updating a single IssueComment entity.
No description provided by the author
IssueCommentUpsertBulk is the builder for "upsert"-ing a bulk of IssueComment nodes.
No description provided by the author
IssueCreate is the builder for creating a Issue entity.
IssueCreateBulk is the builder for creating many Issue entities in bulk.
IssueDelete is the builder for deleting a Issue entity.
IssueDeleteOne is the builder for deleting a single Issue entity.
IssueEdges holds the relations/edges for other nodes in the graph.
IssueGroupBy is the group-by builder for Issue entities.
IssueMutation represents an operation that mutates the Issue nodes in the graph.
IssueQuery is the builder for querying Issue entities.
IssueSelect is the builder for selecting fields of Issue entities.
IssueUpdate is the builder for updating Issue entities.
IssueUpdateOne is the builder for updating a single Issue entity.
No description provided by the author
IssueUpsertBulk is the builder for "upsert"-ing a bulk of Issue 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.
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
TimelineEvent is the model entity for the TimelineEvent schema.
TimelineEventClient is a client for the TimelineEvent schema.
TimelineEventCreate is the builder for creating a TimelineEvent entity.
TimelineEventCreateBulk is the builder for creating many TimelineEvent entities in bulk.
TimelineEventDelete is the builder for deleting a TimelineEvent entity.
TimelineEventDeleteOne is the builder for deleting a single TimelineEvent entity.
TimelineEventEdges holds the relations/edges for other nodes in the graph.
TimelineEventGroupBy is the group-by builder for TimelineEvent entities.
TimelineEventMutation represents an operation that mutates the TimelineEvent nodes in the graph.
TimelineEventQuery is the builder for querying TimelineEvent entities.
TimelineEventSelect is the builder for selecting fields of TimelineEvent entities.
TimelineEventUpdate is the builder for updating TimelineEvent entities.
TimelineEventUpdateOne is the builder for updating a single TimelineEvent entity.
No description provided by the author
TimelineEventUpsertBulk is the builder for "upsert"-ing a bulk of TimelineEvent 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.
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.
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.
# 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.
IssueComments is a parsable slice of IssueComment.
Issues is a parsable slice of Issue.
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.
Repositories is a parsable slice of Repository.
No description provided by the author
No description provided by the author
TimelineEvents is a parsable slice of TimelineEvent.
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.