tag

package
v0.0.0-...-4d78421 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tag type in the database.
	Label = "tag"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBusinessUnitID holds the string denoting the business_unit_id field in the database.
	FieldBusinessUnitID = "business_unit_id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_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"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldColor holds the string denoting the color field in the database.
	FieldColor = "color"
	// EdgeBusinessUnit holds the string denoting the business_unit edge name in mutations.
	EdgeBusinessUnit = "business_unit"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeGeneralLedgerAccount holds the string denoting the general_ledger_account edge name in mutations.
	EdgeGeneralLedgerAccount = "general_ledger_account"
	// Table holds the table name of the tag in the database.
	Table = "tags"
	// BusinessUnitTable is the table that holds the business_unit relation/edge.
	BusinessUnitTable = "tags"
	// BusinessUnitInverseTable is the table name for the BusinessUnit entity.
	// It exists in this package in order to avoid circular dependency with the "businessunit" package.
	BusinessUnitInverseTable = "business_units"
	// BusinessUnitColumn is the table column denoting the business_unit relation/edge.
	BusinessUnitColumn = "business_unit_id"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "tags"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// GeneralLedgerAccountTable is the table that holds the general_ledger_account relation/edge. The primary key declared below.
	GeneralLedgerAccountTable = "general_ledger_account_tags"
	// GeneralLedgerAccountInverseTable is the table name for the GeneralLedgerAccount entity.
	// It exists in this package in order to avoid circular dependency with the "generalledgeraccount" package.
	GeneralLedgerAccountInverseTable = "general_ledger_accounts"
)

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
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for tag fields.

View Source
var (
	// GeneralLedgerAccountPrimaryKey and GeneralLedgerAccountColumn2 are the table columns denoting the
	// primary key for the general_ledger_account relation (M2M).
	GeneralLedgerAccountPrimaryKey = []string{"general_ledger_account_id", "tag_id"}
)

Functions

func And

func And(predicates ...predicate.Tag) predicate.Tag

And groups predicates with the AND operator between them.

func BusinessUnitID

func BusinessUnitID(v uuid.UUID) predicate.Tag

BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.

func BusinessUnitIDEQ

func BusinessUnitIDEQ(v uuid.UUID) predicate.Tag

BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.

func BusinessUnitIDIn

func BusinessUnitIDIn(vs ...uuid.UUID) predicate.Tag

BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.

func BusinessUnitIDNEQ

func BusinessUnitIDNEQ(v uuid.UUID) predicate.Tag

BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.

func BusinessUnitIDNotIn

func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.Tag

BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.

func Color

func Color(v string) predicate.Tag

Color applies equality check predicate on the "color" field. It's identical to ColorEQ.

func ColorContains

func ColorContains(v string) predicate.Tag

ColorContains applies the Contains predicate on the "color" field.

func ColorContainsFold

func ColorContainsFold(v string) predicate.Tag

ColorContainsFold applies the ContainsFold predicate on the "color" field.

func ColorEQ

func ColorEQ(v string) predicate.Tag

ColorEQ applies the EQ predicate on the "color" field.

func ColorEqualFold

func ColorEqualFold(v string) predicate.Tag

ColorEqualFold applies the EqualFold predicate on the "color" field.

func ColorGT

func ColorGT(v string) predicate.Tag

ColorGT applies the GT predicate on the "color" field.

func ColorGTE

func ColorGTE(v string) predicate.Tag

ColorGTE applies the GTE predicate on the "color" field.

func ColorHasPrefix

func ColorHasPrefix(v string) predicate.Tag

ColorHasPrefix applies the HasPrefix predicate on the "color" field.

func ColorHasSuffix

func ColorHasSuffix(v string) predicate.Tag

ColorHasSuffix applies the HasSuffix predicate on the "color" field.

func ColorIn

func ColorIn(vs ...string) predicate.Tag

ColorIn applies the In predicate on the "color" field.

func ColorIsNil

func ColorIsNil() predicate.Tag

ColorIsNil applies the IsNil predicate on the "color" field.

func ColorLT

func ColorLT(v string) predicate.Tag

ColorLT applies the LT predicate on the "color" field.

func ColorLTE

func ColorLTE(v string) predicate.Tag

ColorLTE applies the LTE predicate on the "color" field.

func ColorNEQ

func ColorNEQ(v string) predicate.Tag

ColorNEQ applies the NEQ predicate on the "color" field.

func ColorNotIn

func ColorNotIn(vs ...string) predicate.Tag

ColorNotIn applies the NotIn predicate on the "color" field.

func ColorNotNil

func ColorNotNil() predicate.Tag

ColorNotNil applies the NotNil predicate on the "color" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Tag

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Tag

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Tag

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Tag

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Tag

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Tag

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Tag

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Tag

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Tag

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Tag

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Tag

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Tag

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Tag

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Tag

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Tag

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Tag

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Tag

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Tag

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Tag

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Tag

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Tag

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Tag

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Tag

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasBusinessUnit

func HasBusinessUnit() predicate.Tag

HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.

func HasBusinessUnitWith

func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.Tag

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

func HasGeneralLedgerAccount

func HasGeneralLedgerAccount() predicate.Tag

HasGeneralLedgerAccount applies the HasEdge predicate on the "general_ledger_account" edge.

func HasGeneralLedgerAccountWith

func HasGeneralLedgerAccountWith(preds ...predicate.GeneralLedgerAccount) predicate.Tag

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

func HasOrganization

func HasOrganization() predicate.Tag

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.Tag

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

func ID

func ID(id uuid.UUID) predicate.Tag

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Tag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Tag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Tag

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Tag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Tag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Tag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Tag

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

func NameContains

func NameContains(v string) predicate.Tag

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

func NameContainsFold

func NameContainsFold(v string) predicate.Tag

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

func NameEQ

func NameEQ(v string) predicate.Tag

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

func NameEqualFold

func NameEqualFold(v string) predicate.Tag

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

func NameGT

func NameGT(v string) predicate.Tag

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

func NameGTE

func NameGTE(v string) predicate.Tag

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Tag

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Tag

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Tag

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

func NameLTE

func NameLTE(v string) predicate.Tag

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

func NameNEQ

func NameNEQ(v string) predicate.Tag

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

func NameNotIn

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

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

func Not

func Not(p predicate.Tag) predicate.Tag

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tag) predicate.Tag

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.Tag

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Tag

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.Tag

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Tag

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Tag

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Tag

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Tag

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Tag

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Tag

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Tag

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Tag

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Tag

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

func UpdatedAtNotIn

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

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).

func Version

func Version(v int) predicate.Tag

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Tag

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Tag

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Tag

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Tag

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Tag

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Tag

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Tag

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Tag

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Tag queries.

func ByBusinessUnitField

func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption

ByBusinessUnitField orders the results by business_unit field.

func ByBusinessUnitID

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

ByBusinessUnitID orders the results by the business_unit_id field.

func ByColor

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

ByColor orders the results by the color field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByGeneralLedgerAccount

func ByGeneralLedgerAccount(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGeneralLedgerAccount orders the results by general_ledger_account terms.

func ByGeneralLedgerAccountCount

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

ByGeneralLedgerAccountCount orders the results by general_ledger_account count.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByOrganizationField

func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrganizationField orders the results by organization field.

func ByOrganizationID

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

ByOrganizationID orders the results by the organization_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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