package
0.0.0-20241002142855-55a730e5ed36
Repository: https://github.com/traptitech/jomon.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
# 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.
NewCommentClient returns a client for the Comment from the given config.
NewContext returns a new context with the given Client attached.
NewFileClient returns a client for the File from the given config.
NewGroupBudgetClient returns a client for the GroupBudget from the given config.
NewGroupClient returns a client for the Group from the given config.
NewRequestClient returns a client for the Request from the given config.
NewRequestStatusClient returns a client for the RequestStatus from the given config.
NewRequestTargetClient returns a client for the RequestTarget from the given config.
NewTagClient returns a client for the Tag from the given config.
NewTransactionClient returns a client for the Transaction from the given config.
NewTransactionDetailClient returns a client for the TransactionDetail 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
Client is the client that holds all ent builders.
Comment is the model entity for the Comment schema.
CommentClient is a client for the Comment schema.
CommentCreate is the builder for creating a Comment entity.
CommentCreateBulk is the builder for creating many Comment entities in bulk.
CommentDelete is the builder for deleting a Comment entity.
CommentDeleteOne is the builder for deleting a single Comment entity.
CommentEdges holds the relations/edges for other nodes in the graph.
CommentGroupBy is the group-by builder for Comment entities.
CommentMutation represents an operation that mutates the Comment nodes in the graph.
CommentQuery is the builder for querying Comment entities.
CommentSelect is the builder for selecting fields of Comment entities.
CommentUpdate is the builder for updating Comment entities.
CommentUpdateOne is the builder for updating a single Comment entity.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
File is the model entity for the File schema.
FileClient is a client for the File schema.
FileCreate is the builder for creating a File entity.
FileCreateBulk is the builder for creating many File entities in bulk.
FileDelete is the builder for deleting a File entity.
FileDeleteOne is the builder for deleting a single File entity.
FileEdges holds the relations/edges for other nodes in the graph.
FileGroupBy is the group-by builder for File entities.
FileMutation represents an operation that mutates the File nodes in the graph.
FileQuery is the builder for querying File entities.
FileSelect is the builder for selecting fields of File entities.
FileUpdate is the builder for updating File entities.
FileUpdateOne is the builder for updating a single File entity.
Group is the model entity for the Group schema.
GroupBudget is the model entity for the GroupBudget schema.
GroupBudgetClient is a client for the GroupBudget schema.
GroupBudgetCreate is the builder for creating a GroupBudget entity.
GroupBudgetCreateBulk is the builder for creating many GroupBudget entities in bulk.
GroupBudgetDelete is the builder for deleting a GroupBudget entity.
GroupBudgetDeleteOne is the builder for deleting a single GroupBudget entity.
GroupBudgetEdges holds the relations/edges for other nodes in the graph.
GroupBudgetGroupBy is the group-by builder for GroupBudget entities.
GroupBudgetMutation represents an operation that mutates the GroupBudget nodes in the graph.
GroupBudgetQuery is the builder for querying GroupBudget entities.
GroupBudgetSelect is the builder for selecting fields of GroupBudget entities.
GroupBudgetUpdate is the builder for updating GroupBudget entities.
GroupBudgetUpdateOne is the builder for updating a single GroupBudget entity.
GroupClient is a client for the Group schema.
GroupCreate is the builder for creating a Group entity.
GroupCreateBulk is the builder for creating many Group entities in bulk.
GroupDelete is the builder for deleting a Group entity.
GroupDeleteOne is the builder for deleting a single Group entity.
GroupEdges holds the relations/edges for other nodes in the graph.
GroupGroupBy is the group-by builder for Group entities.
GroupMutation represents an operation that mutates the Group nodes in the graph.
GroupQuery is the builder for querying Group entities.
GroupSelect is the builder for selecting fields of Group entities.
GroupUpdate is the builder for updating Group entities.
GroupUpdateOne is the builder for updating a single Group 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.
Request is the model entity for the Request schema.
RequestClient is a client for the Request schema.
RequestCreate is the builder for creating a Request entity.
RequestCreateBulk is the builder for creating many Request entities in bulk.
RequestDelete is the builder for deleting a Request entity.
RequestDeleteOne is the builder for deleting a single Request entity.
RequestEdges holds the relations/edges for other nodes in the graph.
RequestGroupBy is the group-by builder for Request entities.
RequestMutation represents an operation that mutates the Request nodes in the graph.
RequestQuery is the builder for querying Request entities.
RequestSelect is the builder for selecting fields of Request entities.
RequestStatus is the model entity for the RequestStatus schema.
RequestStatusClient is a client for the RequestStatus schema.
RequestStatusCreate is the builder for creating a RequestStatus entity.
RequestStatusCreateBulk is the builder for creating many RequestStatus entities in bulk.
RequestStatusDelete is the builder for deleting a RequestStatus entity.
RequestStatusDeleteOne is the builder for deleting a single RequestStatus entity.
RequestStatusEdges holds the relations/edges for other nodes in the graph.
RequestStatusGroupBy is the group-by builder for RequestStatus entities.
RequestStatusMutation represents an operation that mutates the RequestStatus nodes in the graph.
RequestStatusQuery is the builder for querying RequestStatus entities.
RequestStatusSelect is the builder for selecting fields of RequestStatus entities.
RequestStatusUpdate is the builder for updating RequestStatus entities.
RequestStatusUpdateOne is the builder for updating a single RequestStatus entity.
RequestTarget is the model entity for the RequestTarget schema.
RequestTargetClient is a client for the RequestTarget schema.
RequestTargetCreate is the builder for creating a RequestTarget entity.
RequestTargetCreateBulk is the builder for creating many RequestTarget entities in bulk.
RequestTargetDelete is the builder for deleting a RequestTarget entity.
RequestTargetDeleteOne is the builder for deleting a single RequestTarget entity.
RequestTargetEdges holds the relations/edges for other nodes in the graph.
RequestTargetGroupBy is the group-by builder for RequestTarget entities.
RequestTargetMutation represents an operation that mutates the RequestTarget nodes in the graph.
RequestTargetQuery is the builder for querying RequestTarget entities.
RequestTargetSelect is the builder for selecting fields of RequestTarget entities.
RequestTargetUpdate is the builder for updating RequestTarget entities.
RequestTargetUpdateOne is the builder for updating a single RequestTarget entity.
RequestUpdate is the builder for updating Request entities.
RequestUpdateOne is the builder for updating a single Request entity.
Tag is the model entity for the Tag schema.
TagClient is a client for the Tag schema.
TagCreate is the builder for creating a Tag entity.
TagCreateBulk is the builder for creating many Tag entities in bulk.
TagDelete is the builder for deleting a Tag entity.
TagDeleteOne is the builder for deleting a single Tag entity.
TagEdges holds the relations/edges for other nodes in the graph.
TagGroupBy is the group-by builder for Tag entities.
TagMutation represents an operation that mutates the Tag nodes in the graph.
TagQuery is the builder for querying Tag entities.
TagSelect is the builder for selecting fields of Tag entities.
TagUpdate is the builder for updating Tag entities.
TagUpdateOne is the builder for updating a single Tag entity.
Transaction is the model entity for the Transaction schema.
TransactionClient is a client for the Transaction schema.
TransactionCreate is the builder for creating a Transaction entity.
TransactionCreateBulk is the builder for creating many Transaction entities in bulk.
TransactionDelete is the builder for deleting a Transaction entity.
TransactionDeleteOne is the builder for deleting a single Transaction entity.
TransactionDetail is the model entity for the TransactionDetail schema.
TransactionDetailClient is a client for the TransactionDetail schema.
TransactionDetailCreate is the builder for creating a TransactionDetail entity.
TransactionDetailCreateBulk is the builder for creating many TransactionDetail entities in bulk.
TransactionDetailDelete is the builder for deleting a TransactionDetail entity.
TransactionDetailDeleteOne is the builder for deleting a single TransactionDetail entity.
TransactionDetailEdges holds the relations/edges for other nodes in the graph.
TransactionDetailGroupBy is the group-by builder for TransactionDetail entities.
TransactionDetailMutation represents an operation that mutates the TransactionDetail nodes in the graph.
TransactionDetailQuery is the builder for querying TransactionDetail entities.
TransactionDetailSelect is the builder for selecting fields of TransactionDetail entities.
TransactionDetailUpdate is the builder for updating TransactionDetail entities.
TransactionDetailUpdateOne is the builder for updating a single TransactionDetail entity.
TransactionEdges holds the relations/edges for other nodes in the graph.
TransactionGroupBy is the group-by builder for Transaction entities.
TransactionMutation represents an operation that mutates the Transaction nodes in the graph.
TransactionQuery is the builder for querying Transaction entities.
TransactionSelect is the builder for selecting fields of Transaction entities.
TransactionUpdate is the builder for updating Transaction entities.
TransactionUpdateOne is the builder for updating a single Transaction 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.
# Type aliases
AggregateFunc applies an aggregation step on the group-by traversal/selector.
Comments is a parsable slice of Comment.
No description provided by the author
No description provided by the author
Files is a parsable slice of File.
GroupBudgets is a parsable slice of GroupBudget.
Groups is a parsable slice of Group.
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.
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.
Requests is a parsable slice of Request.
RequestStatusSlice is a parsable slice of RequestStatus.
RequestTargets is a parsable slice of RequestTarget.
No description provided by the author
No description provided by the author
Tags is a parsable slice of Tag.
TransactionDetails is a parsable slice of TransactionDetail.
Transactions is a parsable slice of Transaction.
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.