Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Issuer) predicate.Issuer
- func HasBalance() predicate.Issuer
- func HasBalanceWith(preds ...predicate.Balance) predicate.Issuer
- func HasInvoices() predicate.Issuer
- func HasInvoicesWith(preds ...predicate.Invoice) predicate.Issuer
- func ID(id uuid.UUID) predicate.Issuer
- func IDEQ(id uuid.UUID) predicate.Issuer
- func IDGT(id uuid.UUID) predicate.Issuer
- func IDGTE(id uuid.UUID) predicate.Issuer
- func IDIn(ids ...uuid.UUID) predicate.Issuer
- func IDLT(id uuid.UUID) predicate.Issuer
- func IDLTE(id uuid.UUID) predicate.Issuer
- func IDNEQ(id uuid.UUID) predicate.Issuer
- func IDNotIn(ids ...uuid.UUID) predicate.Issuer
- func JoinedAt(v time.Time) predicate.Issuer
- func JoinedAtEQ(v time.Time) predicate.Issuer
- func JoinedAtGT(v time.Time) predicate.Issuer
- func JoinedAtGTE(v time.Time) predicate.Issuer
- func JoinedAtIn(vs ...time.Time) predicate.Issuer
- func JoinedAtLT(v time.Time) predicate.Issuer
- func JoinedAtLTE(v time.Time) predicate.Issuer
- func JoinedAtNEQ(v time.Time) predicate.Issuer
- func JoinedAtNotIn(vs ...time.Time) predicate.Issuer
- func Name(v string) predicate.Issuer
- func NameContains(v string) predicate.Issuer
- func NameContainsFold(v string) predicate.Issuer
- func NameEQ(v string) predicate.Issuer
- func NameEqualFold(v string) predicate.Issuer
- func NameGT(v string) predicate.Issuer
- func NameGTE(v string) predicate.Issuer
- func NameHasPrefix(v string) predicate.Issuer
- func NameHasSuffix(v string) predicate.Issuer
- func NameIn(vs ...string) predicate.Issuer
- func NameLT(v string) predicate.Issuer
- func NameLTE(v string) predicate.Issuer
- func NameNEQ(v string) predicate.Issuer
- func NameNotIn(vs ...string) predicate.Issuer
- func Not(p predicate.Issuer) predicate.Issuer
- func Or(predicates ...predicate.Issuer) predicate.Issuer
- func ValidColumn(column string) bool
- type OrderOption
- func ByBalanceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvoices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInvoicesCount(opts ...sql.OrderTermOption) OrderOption
- func ByJoinedAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the issuer type in the database. Label = "issuer" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldJoinedAt holds the string denoting the joined_at field in the database. FieldJoinedAt = "joined_at" // EdgeInvoices holds the string denoting the invoices edge name in mutations. EdgeInvoices = "invoices" // EdgeBalance holds the string denoting the balance edge name in mutations. EdgeBalance = "balance" // Table holds the table name of the issuer in the database. Table = "issuers" // InvoicesTable is the table that holds the invoices relation/edge. InvoicesTable = "invoices" // InvoicesInverseTable is the table name for the Invoice entity. // It exists in this package in order to avoid circular dependency with the "invoice" package. InvoicesInverseTable = "invoices" // InvoicesColumn is the table column denoting the invoices relation/edge. InvoicesColumn = "issuer_invoices" // BalanceTable is the table that holds the balance relation/edge. BalanceTable = "issuers" // BalanceInverseTable is the table name for the Balance entity. // It exists in this package in order to avoid circular dependency with the "balance" package. BalanceInverseTable = "balances" // BalanceColumn is the table column denoting the balance relation/edge. BalanceColumn = "issuer_balance" )
Variables ¶
var ( // DefaultJoinedAt holds the default value on creation for the "joined_at" field. DefaultJoinedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldJoinedAt, }
Columns holds all SQL columns for issuer fields.
var ForeignKeys = []string{
"issuer_balance",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "issuers" table and are not defined as standalone fields in the schema.
Functions ¶
func HasBalance ¶
HasBalance applies the HasEdge predicate on the "balance" edge.
func HasBalanceWith ¶
HasBalanceWith applies the HasEdge predicate on the "balance" edge with a given conditions (other predicates).
func HasInvoices ¶
HasInvoices applies the HasEdge predicate on the "invoices" edge.
func HasInvoicesWith ¶
HasInvoicesWith applies the HasEdge predicate on the "invoices" edge with a given conditions (other predicates).
func JoinedAt ¶
JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.
func JoinedAtEQ ¶
JoinedAtEQ applies the EQ predicate on the "joined_at" field.
func JoinedAtGT ¶
JoinedAtGT applies the GT predicate on the "joined_at" field.
func JoinedAtGTE ¶
JoinedAtGTE applies the GTE predicate on the "joined_at" field.
func JoinedAtIn ¶
JoinedAtIn applies the In predicate on the "joined_at" field.
func JoinedAtLT ¶
JoinedAtLT applies the LT predicate on the "joined_at" field.
func JoinedAtLTE ¶
JoinedAtLTE applies the LTE predicate on the "joined_at" field.
func JoinedAtNEQ ¶
JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.
func JoinedAtNotIn ¶
JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Issuer queries.
func ByBalanceField ¶
func ByBalanceField(field string, opts ...sql.OrderTermOption) OrderOption
ByBalanceField orders the results by balance field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInvoices ¶
func ByInvoices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInvoices orders the results by invoices terms.
func ByInvoicesCount ¶
func ByInvoicesCount(opts ...sql.OrderTermOption) OrderOption
ByInvoicesCount orders the results by invoices count.
func ByJoinedAt ¶
func ByJoinedAt(opts ...sql.OrderTermOption) OrderOption
ByJoinedAt orders the results by the joined_at field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.