Documentation
¶
Index ¶
- Constants
- Variables
- 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 Highwatermark(v time.Time) predicate.Ledger
- func HighwatermarkEQ(v time.Time) predicate.Ledger
- func HighwatermarkGT(v time.Time) predicate.Ledger
- func HighwatermarkGTE(v time.Time) predicate.Ledger
- func HighwatermarkIn(vs ...time.Time) predicate.Ledger
- func HighwatermarkLT(v time.Time) predicate.Ledger
- func HighwatermarkLTE(v time.Time) predicate.Ledger
- func HighwatermarkNEQ(v time.Time) predicate.Ledger
- func HighwatermarkNotIn(vs ...time.Time) predicate.Ledger
- func ID(id pgulid.ULID) predicate.Ledger
- func IDEQ(id pgulid.ULID) predicate.Ledger
- func IDGT(id pgulid.ULID) predicate.Ledger
- func IDGTE(id pgulid.ULID) predicate.Ledger
- func IDIn(ids ...pgulid.ULID) predicate.Ledger
- func IDLT(id pgulid.ULID) predicate.Ledger
- func IDLTE(id pgulid.ULID) predicate.Ledger
- func IDNEQ(id pgulid.ULID) predicate.Ledger
- func IDNotIn(ids ...pgulid.ULID) predicate.Ledger
- func MetadataIsNil() predicate.Ledger
- func MetadataNotNil() predicate.Ledger
- func Namespace(v string) predicate.Ledger
- func NamespaceContains(v string) predicate.Ledger
- func NamespaceContainsFold(v string) predicate.Ledger
- func NamespaceEQ(v string) predicate.Ledger
- func NamespaceEqualFold(v string) predicate.Ledger
- func NamespaceGT(v string) predicate.Ledger
- func NamespaceGTE(v string) predicate.Ledger
- func NamespaceHasPrefix(v string) predicate.Ledger
- func NamespaceHasSuffix(v string) predicate.Ledger
- func NamespaceIn(vs ...string) predicate.Ledger
- func NamespaceLT(v string) predicate.Ledger
- func NamespaceLTE(v string) predicate.Ledger
- func NamespaceNEQ(v string) predicate.Ledger
- func NamespaceNotIn(vs ...string) predicate.Ledger
- func Not(p predicate.Ledger) predicate.Ledger
- func Or(predicates ...predicate.Ledger) predicate.Ledger
- func Subject(v string) predicate.Ledger
- func SubjectContains(v string) predicate.Ledger
- func SubjectContainsFold(v string) predicate.Ledger
- func SubjectEQ(v string) predicate.Ledger
- func SubjectEqualFold(v string) predicate.Ledger
- func SubjectGT(v string) predicate.Ledger
- func SubjectGTE(v string) predicate.Ledger
- func SubjectHasPrefix(v string) predicate.Ledger
- func SubjectHasSuffix(v string) predicate.Ledger
- func SubjectIn(vs ...string) predicate.Ledger
- func SubjectLT(v string) predicate.Ledger
- func SubjectLTE(v string) predicate.Ledger
- func SubjectNEQ(v string) predicate.Ledger
- func SubjectNotIn(vs ...string) predicate.Ledger
- 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 OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHighwatermark(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func BySubject(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldNamespace, FieldSubject, FieldMetadata, FieldHighwatermark, }
Columns holds all SQL columns for ledger fields.
Functions ¶
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 Highwatermark ¶
Highwatermark applies equality check predicate on the "highwatermark" field. It's identical to HighwatermarkEQ.
func HighwatermarkEQ ¶
HighwatermarkEQ applies the EQ predicate on the "highwatermark" field.
func HighwatermarkGT ¶
HighwatermarkGT applies the GT predicate on the "highwatermark" field.
func HighwatermarkGTE ¶
HighwatermarkGTE applies the GTE predicate on the "highwatermark" field.
func HighwatermarkIn ¶
HighwatermarkIn applies the In predicate on the "highwatermark" field.
func HighwatermarkLT ¶
HighwatermarkLT applies the LT predicate on the "highwatermark" field.
func HighwatermarkLTE ¶
HighwatermarkLTE applies the LTE predicate on the "highwatermark" field.
func HighwatermarkNEQ ¶
HighwatermarkNEQ applies the NEQ predicate on the "highwatermark" field.
func HighwatermarkNotIn ¶
HighwatermarkNotIn applies the NotIn predicate on the "highwatermark" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Namespace ¶
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Subject ¶
Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.
func SubjectContains ¶
SubjectContains applies the Contains predicate on the "subject" field.
func SubjectContainsFold ¶
SubjectContainsFold applies the ContainsFold predicate on the "subject" field.
func SubjectEqualFold ¶
SubjectEqualFold applies the EqualFold predicate on the "subject" field.
func SubjectGTE ¶
SubjectGTE applies the GTE predicate on the "subject" field.
func SubjectHasPrefix ¶
SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.
func SubjectHasSuffix ¶
SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.
func SubjectLTE ¶
SubjectLTE applies the LTE predicate on the "subject" field.
func SubjectNEQ ¶
SubjectNEQ applies the NEQ predicate on the "subject" field.
func SubjectNotIn ¶
SubjectNotIn applies the NotIn predicate on the "subject" field.
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 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.