issuer

package
v0.0.0-...-fa32389 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for issuer fields.

View Source
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 And

func And(predicates ...predicate.Issuer) predicate.Issuer

And groups predicates with the AND operator between them.

func HasBalance

func HasBalance() predicate.Issuer

HasBalance applies the HasEdge predicate on the "balance" edge.

func HasBalanceWith

func HasBalanceWith(preds ...predicate.Balance) predicate.Issuer

HasBalanceWith applies the HasEdge predicate on the "balance" edge with a given conditions (other predicates).

func HasInvoices

func HasInvoices() predicate.Issuer

HasInvoices applies the HasEdge predicate on the "invoices" edge.

func HasInvoicesWith

func HasInvoicesWith(preds ...predicate.Invoice) predicate.Issuer

HasInvoicesWith applies the HasEdge predicate on the "invoices" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Issuer

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Issuer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Issuer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Issuer

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Issuer

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Issuer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Issuer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Issuer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Issuer

IDNotIn applies the NotIn predicate on the ID field.

func JoinedAt

func JoinedAt(v time.Time) predicate.Issuer

JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.

func JoinedAtEQ

func JoinedAtEQ(v time.Time) predicate.Issuer

JoinedAtEQ applies the EQ predicate on the "joined_at" field.

func JoinedAtGT

func JoinedAtGT(v time.Time) predicate.Issuer

JoinedAtGT applies the GT predicate on the "joined_at" field.

func JoinedAtGTE

func JoinedAtGTE(v time.Time) predicate.Issuer

JoinedAtGTE applies the GTE predicate on the "joined_at" field.

func JoinedAtIn

func JoinedAtIn(vs ...time.Time) predicate.Issuer

JoinedAtIn applies the In predicate on the "joined_at" field.

func JoinedAtLT

func JoinedAtLT(v time.Time) predicate.Issuer

JoinedAtLT applies the LT predicate on the "joined_at" field.

func JoinedAtLTE

func JoinedAtLTE(v time.Time) predicate.Issuer

JoinedAtLTE applies the LTE predicate on the "joined_at" field.

func JoinedAtNEQ

func JoinedAtNEQ(v time.Time) predicate.Issuer

JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.

func JoinedAtNotIn

func JoinedAtNotIn(vs ...time.Time) predicate.Issuer

JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.

func Name

func Name(v string) predicate.Issuer

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Issuer

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Issuer

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Issuer

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Issuer

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Issuer

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Issuer

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Issuer

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Issuer

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Issuer

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Issuer

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Issuer

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Issuer

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Issuer

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Issuer) predicate.Issuer

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL