ledger

package
v1.0.0-beta.72 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// 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"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldSubject holds the string denoting the subject field in the database.
	FieldSubject = "subject"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldHighwatermark holds the string denoting the highwatermark field in the database.
	FieldHighwatermark = "highwatermark"
	// Table holds the table name of the ledger in the database.
	Table = "ledgers"
)

Variables

View Source
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
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// SubjectValidator is a validator for the "subject" field. It is called by the builders before save.
	SubjectValidator func(string) error
	// DefaultHighwatermark holds the default value on creation for the "highwatermark" field.
	DefaultHighwatermark func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() pgulid.ULID
)

Columns holds all SQL columns for ledger fields.

Functions

func And

func And(predicates ...predicate.Ledger) predicate.Ledger

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Ledger

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Ledger

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Ledger

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Ledger

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Ledger

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Ledger

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Ledger

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Ledger

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Ledger

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Highwatermark

func Highwatermark(v time.Time) predicate.Ledger

Highwatermark applies equality check predicate on the "highwatermark" field. It's identical to HighwatermarkEQ.

func HighwatermarkEQ

func HighwatermarkEQ(v time.Time) predicate.Ledger

HighwatermarkEQ applies the EQ predicate on the "highwatermark" field.

func HighwatermarkGT

func HighwatermarkGT(v time.Time) predicate.Ledger

HighwatermarkGT applies the GT predicate on the "highwatermark" field.

func HighwatermarkGTE

func HighwatermarkGTE(v time.Time) predicate.Ledger

HighwatermarkGTE applies the GTE predicate on the "highwatermark" field.

func HighwatermarkIn

func HighwatermarkIn(vs ...time.Time) predicate.Ledger

HighwatermarkIn applies the In predicate on the "highwatermark" field.

func HighwatermarkLT

func HighwatermarkLT(v time.Time) predicate.Ledger

HighwatermarkLT applies the LT predicate on the "highwatermark" field.

func HighwatermarkLTE

func HighwatermarkLTE(v time.Time) predicate.Ledger

HighwatermarkLTE applies the LTE predicate on the "highwatermark" field.

func HighwatermarkNEQ

func HighwatermarkNEQ(v time.Time) predicate.Ledger

HighwatermarkNEQ applies the NEQ predicate on the "highwatermark" field.

func HighwatermarkNotIn

func HighwatermarkNotIn(vs ...time.Time) predicate.Ledger

HighwatermarkNotIn applies the NotIn predicate on the "highwatermark" field.

func ID

func ID(id pgulid.ULID) predicate.Ledger

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id pgulid.ULID) predicate.Ledger

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id pgulid.ULID) predicate.Ledger

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id pgulid.ULID) predicate.Ledger

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...pgulid.ULID) predicate.Ledger

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id pgulid.ULID) predicate.Ledger

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id pgulid.ULID) predicate.Ledger

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id pgulid.ULID) predicate.Ledger

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...pgulid.ULID) predicate.Ledger

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.Ledger

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Ledger

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Namespace

func Namespace(v string) predicate.Ledger

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.Ledger

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Ledger

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.Ledger

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Ledger

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.Ledger

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.Ledger

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Ledger

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Ledger

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.Ledger

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.Ledger

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.Ledger

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Ledger

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.Ledger

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Ledger) predicate.Ledger

Or groups predicates with the OR operator between them.

func Subject

func Subject(v string) predicate.Ledger

Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.

func SubjectContains

func SubjectContains(v string) predicate.Ledger

SubjectContains applies the Contains predicate on the "subject" field.

func SubjectContainsFold

func SubjectContainsFold(v string) predicate.Ledger

SubjectContainsFold applies the ContainsFold predicate on the "subject" field.

func SubjectEQ

func SubjectEQ(v string) predicate.Ledger

SubjectEQ applies the EQ predicate on the "subject" field.

func SubjectEqualFold

func SubjectEqualFold(v string) predicate.Ledger

SubjectEqualFold applies the EqualFold predicate on the "subject" field.

func SubjectGT

func SubjectGT(v string) predicate.Ledger

SubjectGT applies the GT predicate on the "subject" field.

func SubjectGTE

func SubjectGTE(v string) predicate.Ledger

SubjectGTE applies the GTE predicate on the "subject" field.

func SubjectHasPrefix

func SubjectHasPrefix(v string) predicate.Ledger

SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.

func SubjectHasSuffix

func SubjectHasSuffix(v string) predicate.Ledger

SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.

func SubjectIn

func SubjectIn(vs ...string) predicate.Ledger

SubjectIn applies the In predicate on the "subject" field.

func SubjectLT

func SubjectLT(v string) predicate.Ledger

SubjectLT applies the LT predicate on the "subject" field.

func SubjectLTE

func SubjectLTE(v string) predicate.Ledger

SubjectLTE applies the LTE predicate on the "subject" field.

func SubjectNEQ

func SubjectNEQ(v string) predicate.Ledger

SubjectNEQ applies the NEQ predicate on the "subject" field.

func SubjectNotIn

func SubjectNotIn(vs ...string) predicate.Ledger

SubjectNotIn applies the NotIn predicate on the "subject" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Ledger

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Ledger

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Ledger

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Ledger

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Ledger

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Ledger

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Ledger

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Ledger

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Ledger

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

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 Ledger queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByHighwatermark

func ByHighwatermark(opts ...sql.OrderTermOption) OrderOption

ByHighwatermark orders the results by the highwatermark field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByNamespace

func ByNamespace(opts ...sql.OrderTermOption) OrderOption

ByNamespace orders the results by the namespace field.

func BySubject

func BySubject(opts ...sql.OrderTermOption) OrderOption

BySubject orders the results by the subject field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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