# 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
nolint:nolintlint,dupl.
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.
NewContext returns a new context with the given Client attached.
NewCouponWithdrawClient returns a client for the CouponWithdraw from the given config.
NewGoodLedgerClient returns a client for the GoodLedger from the given config.
NewGoodStatementClient returns a client for the GoodStatement from the given config.
NewLedgerClient returns a client for the Ledger from the given config.
NewLedgerLockClient returns a client for the LedgerLock from the given config.
NewProfitClient returns a client for the Profit from the given config.
NewSimulateLedgerClient returns a client for the SimulateLedger from the given config.
NewSimulateProfitClient returns a client for the SimulateProfit from the given config.
NewSimulateStatementClient returns a client for the SimulateStatement from the given config.
NewStatementClient returns a client for the Statement from the given config.
NewTxContext returns a new context with the given Tx attached.
NewUnsoldStatementClient returns a client for the UnsoldStatement from the given config.
NewWithdrawClient returns a client for the Withdraw 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
No description provided by the author
# 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.
CouponWithdraw is the model entity for the CouponWithdraw schema.
CouponWithdrawClient is a client for the CouponWithdraw schema.
CouponWithdrawCreate is the builder for creating a CouponWithdraw entity.
CouponWithdrawCreateBulk is the builder for creating many CouponWithdraw entities in bulk.
CouponWithdrawDelete is the builder for deleting a CouponWithdraw entity.
CouponWithdrawDeleteOne is the builder for deleting a single CouponWithdraw entity.
CouponWithdrawFilter provides a generic filtering capability at runtime for CouponWithdrawQuery.
CouponWithdrawGroupBy is the group-by builder for CouponWithdraw entities.
CouponWithdrawMutation represents an operation that mutates the CouponWithdraw nodes in the graph.
CouponWithdrawQuery is the builder for querying CouponWithdraw entities.
CouponWithdrawSelect is the builder for selecting fields of CouponWithdraw entities.
CouponWithdrawUpdate is the builder for updating CouponWithdraw entities.
CouponWithdrawUpdateOne is the builder for updating a single CouponWithdraw entity.
No description provided by the author
CouponWithdrawUpsertBulk is the builder for "upsert"-ing a bulk of CouponWithdraw nodes.
No description provided by the author
GoodLedger is the model entity for the GoodLedger schema.
GoodLedgerClient is a client for the GoodLedger schema.
GoodLedgerCreate is the builder for creating a GoodLedger entity.
GoodLedgerCreateBulk is the builder for creating many GoodLedger entities in bulk.
GoodLedgerDelete is the builder for deleting a GoodLedger entity.
GoodLedgerDeleteOne is the builder for deleting a single GoodLedger entity.
GoodLedgerFilter provides a generic filtering capability at runtime for GoodLedgerQuery.
GoodLedgerGroupBy is the group-by builder for GoodLedger entities.
GoodLedgerMutation represents an operation that mutates the GoodLedger nodes in the graph.
GoodLedgerQuery is the builder for querying GoodLedger entities.
GoodLedgerSelect is the builder for selecting fields of GoodLedger entities.
GoodLedgerUpdate is the builder for updating GoodLedger entities.
GoodLedgerUpdateOne is the builder for updating a single GoodLedger entity.
No description provided by the author
GoodLedgerUpsertBulk is the builder for "upsert"-ing a bulk of GoodLedger nodes.
No description provided by the author
GoodStatement is the model entity for the GoodStatement schema.
GoodStatementClient is a client for the GoodStatement schema.
GoodStatementCreate is the builder for creating a GoodStatement entity.
GoodStatementCreateBulk is the builder for creating many GoodStatement entities in bulk.
GoodStatementDelete is the builder for deleting a GoodStatement entity.
GoodStatementDeleteOne is the builder for deleting a single GoodStatement entity.
GoodStatementFilter provides a generic filtering capability at runtime for GoodStatementQuery.
GoodStatementGroupBy is the group-by builder for GoodStatement entities.
GoodStatementMutation represents an operation that mutates the GoodStatement nodes in the graph.
GoodStatementQuery is the builder for querying GoodStatement entities.
GoodStatementSelect is the builder for selecting fields of GoodStatement entities.
GoodStatementUpdate is the builder for updating GoodStatement entities.
GoodStatementUpdateOne is the builder for updating a single GoodStatement entity.
No description provided by the author
GoodStatementUpsertBulk is the builder for "upsert"-ing a bulk of GoodStatement nodes.
No description provided by the author
Ledger is the model entity for the Ledger schema.
LedgerClient is a client for the Ledger schema.
LedgerCreate is the builder for creating a Ledger entity.
LedgerCreateBulk is the builder for creating many Ledger entities in bulk.
LedgerDelete is the builder for deleting a Ledger entity.
LedgerDeleteOne is the builder for deleting a single Ledger entity.
LedgerFilter provides a generic filtering capability at runtime for LedgerQuery.
LedgerGroupBy is the group-by builder for Ledger entities.
LedgerLock is the model entity for the LedgerLock schema.
LedgerLockClient is a client for the LedgerLock schema.
LedgerLockCreate is the builder for creating a LedgerLock entity.
LedgerLockCreateBulk is the builder for creating many LedgerLock entities in bulk.
LedgerLockDelete is the builder for deleting a LedgerLock entity.
LedgerLockDeleteOne is the builder for deleting a single LedgerLock entity.
LedgerLockFilter provides a generic filtering capability at runtime for LedgerLockQuery.
LedgerLockGroupBy is the group-by builder for LedgerLock entities.
LedgerLockMutation represents an operation that mutates the LedgerLock nodes in the graph.
LedgerLockQuery is the builder for querying LedgerLock entities.
LedgerLockSelect is the builder for selecting fields of LedgerLock entities.
LedgerLockUpdate is the builder for updating LedgerLock entities.
LedgerLockUpdateOne is the builder for updating a single LedgerLock entity.
No description provided by the author
LedgerLockUpsertBulk is the builder for "upsert"-ing a bulk of LedgerLock nodes.
No description provided by the author
LedgerMutation represents an operation that mutates the Ledger nodes in the graph.
LedgerQuery is the builder for querying Ledger entities.
LedgerSelect is the builder for selecting fields of Ledger entities.
LedgerUpdate is the builder for updating Ledger entities.
LedgerUpdateOne is the builder for updating a single Ledger entity.
No description provided by the author
LedgerUpsertBulk is the builder for "upsert"-ing a bulk of Ledger 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.
Profit is the model entity for the Profit schema.
ProfitClient is a client for the Profit schema.
ProfitCreate is the builder for creating a Profit entity.
ProfitCreateBulk is the builder for creating many Profit entities in bulk.
ProfitDelete is the builder for deleting a Profit entity.
ProfitDeleteOne is the builder for deleting a single Profit entity.
ProfitFilter provides a generic filtering capability at runtime for ProfitQuery.
ProfitGroupBy is the group-by builder for Profit entities.
ProfitMutation represents an operation that mutates the Profit nodes in the graph.
ProfitQuery is the builder for querying Profit entities.
ProfitSelect is the builder for selecting fields of Profit entities.
ProfitUpdate is the builder for updating Profit entities.
ProfitUpdateOne is the builder for updating a single Profit entity.
No description provided by the author
ProfitUpsertBulk is the builder for "upsert"-ing a bulk of Profit nodes.
No description provided by the author
SimulateLedger is the model entity for the SimulateLedger schema.
SimulateLedgerClient is a client for the SimulateLedger schema.
SimulateLedgerCreate is the builder for creating a SimulateLedger entity.
SimulateLedgerCreateBulk is the builder for creating many SimulateLedger entities in bulk.
SimulateLedgerDelete is the builder for deleting a SimulateLedger entity.
SimulateLedgerDeleteOne is the builder for deleting a single SimulateLedger entity.
SimulateLedgerFilter provides a generic filtering capability at runtime for SimulateLedgerQuery.
SimulateLedgerGroupBy is the group-by builder for SimulateLedger entities.
SimulateLedgerMutation represents an operation that mutates the SimulateLedger nodes in the graph.
SimulateLedgerQuery is the builder for querying SimulateLedger entities.
SimulateLedgerSelect is the builder for selecting fields of SimulateLedger entities.
SimulateLedgerUpdate is the builder for updating SimulateLedger entities.
SimulateLedgerUpdateOne is the builder for updating a single SimulateLedger entity.
No description provided by the author
SimulateLedgerUpsertBulk is the builder for "upsert"-ing a bulk of SimulateLedger nodes.
No description provided by the author
SimulateProfit is the model entity for the SimulateProfit schema.
SimulateProfitClient is a client for the SimulateProfit schema.
SimulateProfitCreate is the builder for creating a SimulateProfit entity.
SimulateProfitCreateBulk is the builder for creating many SimulateProfit entities in bulk.
SimulateProfitDelete is the builder for deleting a SimulateProfit entity.
SimulateProfitDeleteOne is the builder for deleting a single SimulateProfit entity.
SimulateProfitFilter provides a generic filtering capability at runtime for SimulateProfitQuery.
SimulateProfitGroupBy is the group-by builder for SimulateProfit entities.
SimulateProfitMutation represents an operation that mutates the SimulateProfit nodes in the graph.
SimulateProfitQuery is the builder for querying SimulateProfit entities.
SimulateProfitSelect is the builder for selecting fields of SimulateProfit entities.
SimulateProfitUpdate is the builder for updating SimulateProfit entities.
SimulateProfitUpdateOne is the builder for updating a single SimulateProfit entity.
No description provided by the author
SimulateProfitUpsertBulk is the builder for "upsert"-ing a bulk of SimulateProfit nodes.
No description provided by the author
SimulateStatement is the model entity for the SimulateStatement schema.
SimulateStatementClient is a client for the SimulateStatement schema.
SimulateStatementCreate is the builder for creating a SimulateStatement entity.
SimulateStatementCreateBulk is the builder for creating many SimulateStatement entities in bulk.
SimulateStatementDelete is the builder for deleting a SimulateStatement entity.
SimulateStatementDeleteOne is the builder for deleting a single SimulateStatement entity.
SimulateStatementFilter provides a generic filtering capability at runtime for SimulateStatementQuery.
SimulateStatementGroupBy is the group-by builder for SimulateStatement entities.
SimulateStatementMutation represents an operation that mutates the SimulateStatement nodes in the graph.
SimulateStatementQuery is the builder for querying SimulateStatement entities.
SimulateStatementSelect is the builder for selecting fields of SimulateStatement entities.
SimulateStatementUpdate is the builder for updating SimulateStatement entities.
SimulateStatementUpdateOne is the builder for updating a single SimulateStatement entity.
No description provided by the author
SimulateStatementUpsertBulk is the builder for "upsert"-ing a bulk of SimulateStatement nodes.
No description provided by the author
Statement is the model entity for the Statement schema.
StatementClient is a client for the Statement schema.
StatementCreate is the builder for creating a Statement entity.
StatementCreateBulk is the builder for creating many Statement entities in bulk.
StatementDelete is the builder for deleting a Statement entity.
StatementDeleteOne is the builder for deleting a single Statement entity.
StatementFilter provides a generic filtering capability at runtime for StatementQuery.
StatementGroupBy is the group-by builder for Statement entities.
StatementMutation represents an operation that mutates the Statement nodes in the graph.
StatementQuery is the builder for querying Statement entities.
StatementSelect is the builder for selecting fields of Statement entities.
StatementUpdate is the builder for updating Statement entities.
StatementUpdateOne is the builder for updating a single Statement entity.
No description provided by the author
StatementUpsertBulk is the builder for "upsert"-ing a bulk of Statement nodes.
No description provided by the author
Tx is a transactional client that is created by calling Client.Tx().
UnsoldStatement is the model entity for the UnsoldStatement schema.
UnsoldStatementClient is a client for the UnsoldStatement schema.
UnsoldStatementCreate is the builder for creating a UnsoldStatement entity.
UnsoldStatementCreateBulk is the builder for creating many UnsoldStatement entities in bulk.
UnsoldStatementDelete is the builder for deleting a UnsoldStatement entity.
UnsoldStatementDeleteOne is the builder for deleting a single UnsoldStatement entity.
UnsoldStatementFilter provides a generic filtering capability at runtime for UnsoldStatementQuery.
UnsoldStatementGroupBy is the group-by builder for UnsoldStatement entities.
UnsoldStatementMutation represents an operation that mutates the UnsoldStatement nodes in the graph.
UnsoldStatementQuery is the builder for querying UnsoldStatement entities.
UnsoldStatementSelect is the builder for selecting fields of UnsoldStatement entities.
UnsoldStatementUpdate is the builder for updating UnsoldStatement entities.
UnsoldStatementUpdateOne is the builder for updating a single UnsoldStatement entity.
No description provided by the author
UnsoldStatementUpsertBulk is the builder for "upsert"-ing a bulk of UnsoldStatement nodes.
No description provided by the author
ValidationError returns when validating a field or edge fails.
Withdraw is the model entity for the Withdraw schema.
WithdrawClient is a client for the Withdraw schema.
WithdrawCreate is the builder for creating a Withdraw entity.
WithdrawCreateBulk is the builder for creating many Withdraw entities in bulk.
WithdrawDelete is the builder for deleting a Withdraw entity.
WithdrawDeleteOne is the builder for deleting a single Withdraw entity.
WithdrawFilter provides a generic filtering capability at runtime for WithdrawQuery.
WithdrawGroupBy is the group-by builder for Withdraw entities.
WithdrawMutation represents an operation that mutates the Withdraw nodes in the graph.
WithdrawQuery is the builder for querying Withdraw entities.
WithdrawSelect is the builder for selecting fields of Withdraw entities.
WithdrawUpdate is the builder for updating Withdraw entities.
WithdrawUpdateOne is the builder for updating a single Withdraw entity.
No description provided by the author
WithdrawUpsertBulk is the builder for "upsert"-ing a bulk of Withdraw nodes.
No description provided by the author
# 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
CouponWithdraws is a parsable slice of CouponWithdraw.
GoodLedgers is a parsable slice of GoodLedger.
GoodStatements is a parsable slice of GoodStatement.
ent aliases to avoid import conflicts in user's code.
LedgerLocks is a parsable slice of LedgerLock.
Ledgers is a parsable slice of Ledger.
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.
Option function to configure the client.
OrderFunc applies an ordering on the sql selector.
ent aliases to avoid import conflicts in user's code.
Profits is a parsable slice of Profit.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
No description provided by the author
SimulateLedgers is a parsable slice of SimulateLedger.
SimulateProfits is a parsable slice of SimulateProfit.
SimulateStatements is a parsable slice of SimulateStatement.
Statements is a parsable slice of Statement.
UnsoldStatements is a parsable slice of UnsoldStatement.
ent aliases to avoid import conflicts in user's code.
Withdraws is a parsable slice of Withdraw.