Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func BusinessUnitID(v uuid.UUID) predicate.Tag
- func BusinessUnitIDEQ(v uuid.UUID) predicate.Tag
- func BusinessUnitIDIn(vs ...uuid.UUID) predicate.Tag
- func BusinessUnitIDNEQ(v uuid.UUID) predicate.Tag
- func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.Tag
- func Color(v string) predicate.Tag
- func ColorContains(v string) predicate.Tag
- func ColorContainsFold(v string) predicate.Tag
- func ColorEQ(v string) predicate.Tag
- func ColorEqualFold(v string) predicate.Tag
- func ColorGT(v string) predicate.Tag
- func ColorGTE(v string) predicate.Tag
- func ColorHasPrefix(v string) predicate.Tag
- func ColorHasSuffix(v string) predicate.Tag
- func ColorIn(vs ...string) predicate.Tag
- func ColorIsNil() predicate.Tag
- func ColorLT(v string) predicate.Tag
- func ColorLTE(v string) predicate.Tag
- func ColorNEQ(v string) predicate.Tag
- func ColorNotIn(vs ...string) predicate.Tag
- func ColorNotNil() predicate.Tag
- func CreatedAt(v time.Time) predicate.Tag
- func CreatedAtEQ(v time.Time) predicate.Tag
- func CreatedAtGT(v time.Time) predicate.Tag
- func CreatedAtGTE(v time.Time) predicate.Tag
- func CreatedAtIn(vs ...time.Time) predicate.Tag
- func CreatedAtLT(v time.Time) predicate.Tag
- func CreatedAtLTE(v time.Time) predicate.Tag
- func CreatedAtNEQ(v time.Time) predicate.Tag
- func CreatedAtNotIn(vs ...time.Time) predicate.Tag
- func Description(v string) predicate.Tag
- func DescriptionContains(v string) predicate.Tag
- func DescriptionContainsFold(v string) predicate.Tag
- func DescriptionEQ(v string) predicate.Tag
- func DescriptionEqualFold(v string) predicate.Tag
- func DescriptionGT(v string) predicate.Tag
- func DescriptionGTE(v string) predicate.Tag
- func DescriptionHasPrefix(v string) predicate.Tag
- func DescriptionHasSuffix(v string) predicate.Tag
- func DescriptionIn(vs ...string) predicate.Tag
- func DescriptionIsNil() predicate.Tag
- func DescriptionLT(v string) predicate.Tag
- func DescriptionLTE(v string) predicate.Tag
- func DescriptionNEQ(v string) predicate.Tag
- func DescriptionNotIn(vs ...string) predicate.Tag
- func DescriptionNotNil() predicate.Tag
- func HasBusinessUnit() predicate.Tag
- func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.Tag
- func HasGeneralLedgerAccount() predicate.Tag
- func HasGeneralLedgerAccountWith(preds ...predicate.GeneralLedgerAccount) predicate.Tag
- func HasOrganization() predicate.Tag
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Tag
- func ID(id uuid.UUID) predicate.Tag
- func IDEQ(id uuid.UUID) predicate.Tag
- func IDGT(id uuid.UUID) predicate.Tag
- func IDGTE(id uuid.UUID) predicate.Tag
- func IDIn(ids ...uuid.UUID) predicate.Tag
- func IDLT(id uuid.UUID) predicate.Tag
- func IDLTE(id uuid.UUID) predicate.Tag
- func IDNEQ(id uuid.UUID) predicate.Tag
- func IDNotIn(ids ...uuid.UUID) predicate.Tag
- func Name(v string) predicate.Tag
- func NameContains(v string) predicate.Tag
- func NameContainsFold(v string) predicate.Tag
- func NameEQ(v string) predicate.Tag
- func NameEqualFold(v string) predicate.Tag
- func NameGT(v string) predicate.Tag
- func NameGTE(v string) predicate.Tag
- func NameHasPrefix(v string) predicate.Tag
- func NameHasSuffix(v string) predicate.Tag
- func NameIn(vs ...string) predicate.Tag
- func NameLT(v string) predicate.Tag
- func NameLTE(v string) predicate.Tag
- func NameNEQ(v string) predicate.Tag
- func NameNotIn(vs ...string) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) predicate.Tag
- func OrganizationID(v uuid.UUID) predicate.Tag
- func OrganizationIDEQ(v uuid.UUID) predicate.Tag
- func OrganizationIDIn(vs ...uuid.UUID) predicate.Tag
- func OrganizationIDNEQ(v uuid.UUID) predicate.Tag
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Tag
- func UpdatedAt(v time.Time) predicate.Tag
- func UpdatedAtEQ(v time.Time) predicate.Tag
- func UpdatedAtGT(v time.Time) predicate.Tag
- func UpdatedAtGTE(v time.Time) predicate.Tag
- func UpdatedAtIn(vs ...time.Time) predicate.Tag
- func UpdatedAtLT(v time.Time) predicate.Tag
- func UpdatedAtLTE(v time.Time) predicate.Tag
- func UpdatedAtNEQ(v time.Time) predicate.Tag
- func UpdatedAtNotIn(vs ...time.Time) predicate.Tag
- func ValidColumn(column string) bool
- func Version(v int) predicate.Tag
- func VersionEQ(v int) predicate.Tag
- func VersionGT(v int) predicate.Tag
- func VersionGTE(v int) predicate.Tag
- func VersionIn(vs ...int) predicate.Tag
- func VersionLT(v int) predicate.Tag
- func VersionLTE(v int) predicate.Tag
- func VersionNEQ(v int) predicate.Tag
- func VersionNotIn(vs ...int) predicate.Tag
- type OrderOption
- func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByColor(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByGeneralLedgerAccount(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGeneralLedgerAccountCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldBusinessUnitID, FieldOrganizationID, FieldCreatedAt, FieldUpdatedAt, FieldVersion, FieldName, FieldDescription, FieldColor, }
Columns holds all SQL columns for tag fields.
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 BusinessUnitID ¶
BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.
func BusinessUnitIDEQ ¶
BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.
func BusinessUnitIDIn ¶
BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.
func BusinessUnitIDNEQ ¶
BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.
func BusinessUnitIDNotIn ¶
BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.
func Color ¶
Color applies equality check predicate on the "color" field. It's identical to ColorEQ.
func ColorContains ¶
ColorContains applies the Contains predicate on the "color" field.
func ColorContainsFold ¶
ColorContainsFold applies the ContainsFold predicate on the "color" field.
func ColorEqualFold ¶
ColorEqualFold applies the EqualFold predicate on the "color" field.
func ColorHasPrefix ¶
ColorHasPrefix applies the HasPrefix predicate on the "color" field.
func ColorHasSuffix ¶
ColorHasSuffix applies the HasSuffix predicate on the "color" field.
func ColorIsNil ¶
ColorIsNil applies the IsNil predicate on the "color" field.
func ColorNotIn ¶
ColorNotIn applies the NotIn predicate on the "color" field.
func ColorNotNil ¶
ColorNotNil applies the NotNil predicate on the "color" 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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasBusinessUnit ¶
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 ¶
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 ¶
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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" 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).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
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.