Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DelayCode) predicate.DelayCode
- func BusinessUnitID(v uuid.UUID) predicate.DelayCode
- func BusinessUnitIDEQ(v uuid.UUID) predicate.DelayCode
- func BusinessUnitIDIn(vs ...uuid.UUID) predicate.DelayCode
- func BusinessUnitIDNEQ(v uuid.UUID) predicate.DelayCode
- func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.DelayCode
- func Code(v string) predicate.DelayCode
- func CodeContains(v string) predicate.DelayCode
- func CodeContainsFold(v string) predicate.DelayCode
- func CodeEQ(v string) predicate.DelayCode
- func CodeEqualFold(v string) predicate.DelayCode
- func CodeGT(v string) predicate.DelayCode
- func CodeGTE(v string) predicate.DelayCode
- func CodeHasPrefix(v string) predicate.DelayCode
- func CodeHasSuffix(v string) predicate.DelayCode
- func CodeIn(vs ...string) predicate.DelayCode
- func CodeLT(v string) predicate.DelayCode
- func CodeLTE(v string) predicate.DelayCode
- func CodeNEQ(v string) predicate.DelayCode
- func CodeNotIn(vs ...string) predicate.DelayCode
- func CreatedAt(v time.Time) predicate.DelayCode
- func CreatedAtEQ(v time.Time) predicate.DelayCode
- func CreatedAtGT(v time.Time) predicate.DelayCode
- func CreatedAtGTE(v time.Time) predicate.DelayCode
- func CreatedAtIn(vs ...time.Time) predicate.DelayCode
- func CreatedAtLT(v time.Time) predicate.DelayCode
- func CreatedAtLTE(v time.Time) predicate.DelayCode
- func CreatedAtNEQ(v time.Time) predicate.DelayCode
- func CreatedAtNotIn(vs ...time.Time) predicate.DelayCode
- func Description(v string) predicate.DelayCode
- func DescriptionContains(v string) predicate.DelayCode
- func DescriptionContainsFold(v string) predicate.DelayCode
- func DescriptionEQ(v string) predicate.DelayCode
- func DescriptionEqualFold(v string) predicate.DelayCode
- func DescriptionGT(v string) predicate.DelayCode
- func DescriptionGTE(v string) predicate.DelayCode
- func DescriptionHasPrefix(v string) predicate.DelayCode
- func DescriptionHasSuffix(v string) predicate.DelayCode
- func DescriptionIn(vs ...string) predicate.DelayCode
- func DescriptionIsNil() predicate.DelayCode
- func DescriptionLT(v string) predicate.DelayCode
- func DescriptionLTE(v string) predicate.DelayCode
- func DescriptionNEQ(v string) predicate.DelayCode
- func DescriptionNotIn(vs ...string) predicate.DelayCode
- func DescriptionNotNil() predicate.DelayCode
- func FCarrierOrDriver(v bool) predicate.DelayCode
- func FCarrierOrDriverEQ(v bool) predicate.DelayCode
- func FCarrierOrDriverIsNil() predicate.DelayCode
- func FCarrierOrDriverNEQ(v bool) predicate.DelayCode
- func FCarrierOrDriverNotNil() predicate.DelayCode
- func HasBusinessUnit() predicate.DelayCode
- func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.DelayCode
- func HasOrganization() predicate.DelayCode
- func HasOrganizationWith(preds ...predicate.Organization) predicate.DelayCode
- func ID(id uuid.UUID) predicate.DelayCode
- func IDEQ(id uuid.UUID) predicate.DelayCode
- func IDGT(id uuid.UUID) predicate.DelayCode
- func IDGTE(id uuid.UUID) predicate.DelayCode
- func IDIn(ids ...uuid.UUID) predicate.DelayCode
- func IDLT(id uuid.UUID) predicate.DelayCode
- func IDLTE(id uuid.UUID) predicate.DelayCode
- func IDNEQ(id uuid.UUID) predicate.DelayCode
- func IDNotIn(ids ...uuid.UUID) predicate.DelayCode
- func Not(p predicate.DelayCode) predicate.DelayCode
- func Or(predicates ...predicate.DelayCode) predicate.DelayCode
- func OrganizationID(v uuid.UUID) predicate.DelayCode
- func OrganizationIDEQ(v uuid.UUID) predicate.DelayCode
- func OrganizationIDIn(vs ...uuid.UUID) predicate.DelayCode
- func OrganizationIDNEQ(v uuid.UUID) predicate.DelayCode
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.DelayCode
- func StatusEQ(v Status) predicate.DelayCode
- func StatusIn(vs ...Status) predicate.DelayCode
- func StatusNEQ(v Status) predicate.DelayCode
- func StatusNotIn(vs ...Status) predicate.DelayCode
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.DelayCode
- func UpdatedAtEQ(v time.Time) predicate.DelayCode
- func UpdatedAtGT(v time.Time) predicate.DelayCode
- func UpdatedAtGTE(v time.Time) predicate.DelayCode
- func UpdatedAtIn(vs ...time.Time) predicate.DelayCode
- func UpdatedAtLT(v time.Time) predicate.DelayCode
- func UpdatedAtLTE(v time.Time) predicate.DelayCode
- func UpdatedAtNEQ(v time.Time) predicate.DelayCode
- func UpdatedAtNotIn(vs ...time.Time) predicate.DelayCode
- func ValidColumn(column string) bool
- func Version(v int) predicate.DelayCode
- func VersionEQ(v int) predicate.DelayCode
- func VersionGT(v int) predicate.DelayCode
- func VersionGTE(v int) predicate.DelayCode
- func VersionIn(vs ...int) predicate.DelayCode
- func VersionLT(v int) predicate.DelayCode
- func VersionLTE(v int) predicate.DelayCode
- func VersionNEQ(v int) predicate.DelayCode
- func VersionNotIn(vs ...int) predicate.DelayCode
- type OrderOption
- func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByFCarrierOrDriver(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the delaycode type in the database. Label = "delay_code" // 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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldFCarrierOrDriver holds the string denoting the f_carrier_or_driver field in the database. FieldFCarrierOrDriver = "f_carrier_or_driver" // 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" // Table holds the table name of the delaycode in the database. Table = "delay_codes" // BusinessUnitTable is the table that holds the business_unit relation/edge. BusinessUnitTable = "delay_codes" // 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 = "delay_codes" // 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" )
const DefaultStatus = StatusA
StatusA 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 // DefaultVersion holds the default value on creation for the "version" field. DefaultVersion int // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator 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, FieldStatus, FieldCode, FieldDescription, FieldFCarrierOrDriver, }
Columns holds all SQL columns for delaycode fields.
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 CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" 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 FCarrierOrDriver ¶
FCarrierOrDriver applies equality check predicate on the "f_carrier_or_driver" field. It's identical to FCarrierOrDriverEQ.
func FCarrierOrDriverEQ ¶
FCarrierOrDriverEQ applies the EQ predicate on the "f_carrier_or_driver" field.
func FCarrierOrDriverIsNil ¶
FCarrierOrDriverIsNil applies the IsNil predicate on the "f_carrier_or_driver" field.
func FCarrierOrDriverNEQ ¶
FCarrierOrDriverNEQ applies the NEQ predicate on the "f_carrier_or_driver" field.
func FCarrierOrDriverNotNil ¶
FCarrierOrDriverNotNil applies the NotNil predicate on the "f_carrier_or_driver" field.
func HasBusinessUnit ¶
HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.
func HasBusinessUnitWith ¶
func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.DelayCode
HasBusinessUnitWith applies the HasEdge predicate on the "business_unit" 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.DelayCode
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
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 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).
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 DelayCode 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 ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code 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 ByFCarrierOrDriver ¶
func ByFCarrierOrDriver(opts ...sql.OrderTermOption) OrderOption
ByFCarrierOrDriver orders the results by the f_carrier_or_driver field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id 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 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.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.