Documentation ¶
Index ¶
- Constants
- Variables
- func Amount(v float64) predicate.Ledger
- func AmountEQ(v float64) predicate.Ledger
- func AmountGT(v float64) predicate.Ledger
- func AmountGTE(v float64) predicate.Ledger
- func AmountIn(vs ...float64) predicate.Ledger
- func AmountLT(v float64) predicate.Ledger
- func AmountLTE(v float64) predicate.Ledger
- func AmountNEQ(v float64) predicate.Ledger
- func AmountNotIn(vs ...float64) predicate.Ledger
- func And(predicates ...predicate.Ledger) predicate.Ledger
- func CreatedAt(v time.Time) predicate.Ledger
- func CreatedAtEQ(v time.Time) predicate.Ledger
- func CreatedAtGT(v time.Time) predicate.Ledger
- func CreatedAtGTE(v time.Time) predicate.Ledger
- func CreatedAtIn(vs ...time.Time) predicate.Ledger
- func CreatedAtLT(v time.Time) predicate.Ledger
- func CreatedAtLTE(v time.Time) predicate.Ledger
- func CreatedAtNEQ(v time.Time) predicate.Ledger
- func CreatedAtNotIn(vs ...time.Time) predicate.Ledger
- func EntityEQ(v Entity) predicate.Ledger
- func EntityID(v uuid.UUID) predicate.Ledger
- func EntityIDEQ(v uuid.UUID) predicate.Ledger
- func EntityIDGT(v uuid.UUID) predicate.Ledger
- func EntityIDGTE(v uuid.UUID) predicate.Ledger
- func EntityIDIn(vs ...uuid.UUID) predicate.Ledger
- func EntityIDLT(v uuid.UUID) predicate.Ledger
- func EntityIDLTE(v uuid.UUID) predicate.Ledger
- func EntityIDNEQ(v uuid.UUID) predicate.Ledger
- func EntityIDNotIn(vs ...uuid.UUID) predicate.Ledger
- func EntityIn(vs ...Entity) predicate.Ledger
- func EntityNEQ(v Entity) predicate.Ledger
- func EntityNotIn(vs ...Entity) predicate.Ledger
- func EntityValidator(e Entity) error
- func ID(id uuid.UUID) predicate.Ledger
- func IDEQ(id uuid.UUID) predicate.Ledger
- func IDGT(id uuid.UUID) predicate.Ledger
- func IDGTE(id uuid.UUID) predicate.Ledger
- func IDIn(ids ...uuid.UUID) predicate.Ledger
- func IDLT(id uuid.UUID) predicate.Ledger
- func IDLTE(id uuid.UUID) predicate.Ledger
- func IDNEQ(id uuid.UUID) predicate.Ledger
- func IDNotIn(ids ...uuid.UUID) predicate.Ledger
- func InvoiceID(v uuid.UUID) predicate.Ledger
- func InvoiceIDEQ(v uuid.UUID) predicate.Ledger
- func InvoiceIDGT(v uuid.UUID) predicate.Ledger
- func InvoiceIDGTE(v uuid.UUID) predicate.Ledger
- func InvoiceIDIn(vs ...uuid.UUID) predicate.Ledger
- func InvoiceIDLT(v uuid.UUID) predicate.Ledger
- func InvoiceIDLTE(v uuid.UUID) predicate.Ledger
- func InvoiceIDNEQ(v uuid.UUID) predicate.Ledger
- func InvoiceIDNotIn(vs ...uuid.UUID) predicate.Ledger
- func Not(p predicate.Ledger) predicate.Ledger
- func Or(predicates ...predicate.Ledger) predicate.Ledger
- func StatusEQ(v Status) predicate.Ledger
- func StatusIn(vs ...Status) predicate.Ledger
- func StatusNEQ(v Status) predicate.Ledger
- func StatusNotIn(vs ...Status) predicate.Ledger
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Ledger
- func UpdatedAtEQ(v time.Time) predicate.Ledger
- func UpdatedAtGT(v time.Time) predicate.Ledger
- func UpdatedAtGTE(v time.Time) predicate.Ledger
- func UpdatedAtIn(vs ...time.Time) predicate.Ledger
- func UpdatedAtLT(v time.Time) predicate.Ledger
- func UpdatedAtLTE(v time.Time) predicate.Ledger
- func UpdatedAtNEQ(v time.Time) predicate.Ledger
- func UpdatedAtNotIn(vs ...time.Time) predicate.Ledger
- func ValidColumn(column string) bool
- type Entity
- type OrderOption
- func ByAmount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEntity(opts ...sql.OrderTermOption) OrderOption
- func ByEntityID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the ledger type in the database. Label = "ledger" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldInvoiceID holds the string denoting the invoice_id field in the database. FieldInvoiceID = "invoice_id" // FieldEntity holds the string denoting the entity field in the database. FieldEntity = "entity" // FieldEntityID holds the string denoting the entity_id field in the database. FieldEntityID = "entity_id" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // Table holds the table name of the ledger in the database. Table = "ledgers" )
const DefaultStatus = StatusPending
StatusPending is the default value of the Status enum.
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldStatus, FieldInvoiceID, FieldEntity, FieldEntityID, FieldAmount, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for ledger fields.
Functions ¶
func Amount ¶
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountNotIn ¶
AmountNotIn applies the NotIn predicate on the "amount" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func EntityID ¶
EntityID applies equality check predicate on the "entity_id" field. It's identical to EntityIDEQ.
func EntityIDEQ ¶
EntityIDEQ applies the EQ predicate on the "entity_id" field.
func EntityIDGT ¶
EntityIDGT applies the GT predicate on the "entity_id" field.
func EntityIDGTE ¶
EntityIDGTE applies the GTE predicate on the "entity_id" field.
func EntityIDIn ¶
EntityIDIn applies the In predicate on the "entity_id" field.
func EntityIDLT ¶
EntityIDLT applies the LT predicate on the "entity_id" field.
func EntityIDLTE ¶
EntityIDLTE applies the LTE predicate on the "entity_id" field.
func EntityIDNEQ ¶
EntityIDNEQ applies the NEQ predicate on the "entity_id" field.
func EntityIDNotIn ¶
EntityIDNotIn applies the NotIn predicate on the "entity_id" field.
func EntityNotIn ¶
EntityNotIn applies the NotIn predicate on the "entity" field.
func EntityValidator ¶
EntityValidator is a validator for the "entity" field enum values. It is called by the builders before save.
func InvoiceID ¶
InvoiceID applies equality check predicate on the "invoice_id" field. It's identical to InvoiceIDEQ.
func InvoiceIDEQ ¶
InvoiceIDEQ applies the EQ predicate on the "invoice_id" field.
func InvoiceIDGT ¶
InvoiceIDGT applies the GT predicate on the "invoice_id" field.
func InvoiceIDGTE ¶
InvoiceIDGTE applies the GTE predicate on the "invoice_id" field.
func InvoiceIDIn ¶
InvoiceIDIn applies the In predicate on the "invoice_id" field.
func InvoiceIDLT ¶
InvoiceIDLT applies the LT predicate on the "invoice_id" field.
func InvoiceIDLTE ¶
InvoiceIDLTE applies the LTE predicate on the "invoice_id" field.
func InvoiceIDNEQ ¶
InvoiceIDNEQ applies the NEQ predicate on the "invoice_id" field.
func InvoiceIDNotIn ¶
InvoiceIDNotIn applies the NotIn predicate on the "invoice_id" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Ledger queries.
func ByAmount ¶
func ByAmount(opts ...sql.OrderTermOption) OrderOption
ByAmount orders the results by the amount field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEntity ¶
func ByEntity(opts ...sql.OrderTermOption) OrderOption
ByEntity orders the results by the entity field.
func ByEntityID ¶
func ByEntityID(opts ...sql.OrderTermOption) OrderOption
ByEntityID orders the results by the entity_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInvoiceID ¶
func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
ByInvoiceID orders the results by the invoice_id field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.