Documentation ¶
Index ¶
- Constants
- Variables
- func Address(v string) predicate.Location
- func AddressContains(v string) predicate.Location
- func AddressContainsFold(v string) predicate.Location
- func AddressEQ(v string) predicate.Location
- func AddressEqualFold(v string) predicate.Location
- func AddressGT(v string) predicate.Location
- func AddressGTE(v string) predicate.Location
- func AddressHasPrefix(v string) predicate.Location
- func AddressHasSuffix(v string) predicate.Location
- func AddressIn(vs ...string) predicate.Location
- func AddressJa(v string) predicate.Location
- func AddressJaContains(v string) predicate.Location
- func AddressJaContainsFold(v string) predicate.Location
- func AddressJaEQ(v string) predicate.Location
- func AddressJaEqualFold(v string) predicate.Location
- func AddressJaGT(v string) predicate.Location
- func AddressJaGTE(v string) predicate.Location
- func AddressJaHasPrefix(v string) predicate.Location
- func AddressJaHasSuffix(v string) predicate.Location
- func AddressJaIn(vs ...string) predicate.Location
- func AddressJaLT(v string) predicate.Location
- func AddressJaLTE(v string) predicate.Location
- func AddressJaNEQ(v string) predicate.Location
- func AddressJaNotIn(vs ...string) predicate.Location
- func AddressLT(v string) predicate.Location
- func AddressLTE(v string) predicate.Location
- func AddressNEQ(v string) predicate.Location
- func AddressNotIn(vs ...string) predicate.Location
- func And(predicates ...predicate.Location) predicate.Location
- func Created(v time.Time) predicate.Location
- func CreatedEQ(v time.Time) predicate.Location
- func CreatedGT(v time.Time) predicate.Location
- func CreatedGTE(v time.Time) predicate.Location
- func CreatedIn(vs ...time.Time) predicate.Location
- func CreatedLT(v time.Time) predicate.Location
- func CreatedLTE(v time.Time) predicate.Location
- func CreatedNEQ(v time.Time) predicate.Location
- func CreatedNotIn(vs ...time.Time) predicate.Location
- func ID(id uint32) predicate.Location
- func IDEQ(id uint32) predicate.Location
- func IDGT(id uint32) predicate.Location
- func IDGTE(id uint32) predicate.Location
- func IDIn(ids ...uint32) predicate.Location
- func IDLT(id uint32) predicate.Location
- func IDLTE(id uint32) predicate.Location
- func IDNEQ(id uint32) predicate.Location
- func IDNotIn(ids ...uint32) predicate.Location
- func Modified(v time.Time) predicate.Location
- func ModifiedEQ(v time.Time) predicate.Location
- func ModifiedGT(v time.Time) predicate.Location
- func ModifiedGTE(v time.Time) predicate.Location
- func ModifiedIn(vs ...time.Time) predicate.Location
- func ModifiedLT(v time.Time) predicate.Location
- func ModifiedLTE(v time.Time) predicate.Location
- func ModifiedNEQ(v time.Time) predicate.Location
- func ModifiedNotIn(vs ...time.Time) predicate.Location
- func Name(v string) predicate.Location
- func NameContains(v string) predicate.Location
- func NameContainsFold(v string) predicate.Location
- func NameEQ(v string) predicate.Location
- func NameEqualFold(v string) predicate.Location
- func NameGT(v string) predicate.Location
- func NameGTE(v string) predicate.Location
- func NameHasPrefix(v string) predicate.Location
- func NameHasSuffix(v string) predicate.Location
- func NameIn(vs ...string) predicate.Location
- func NameJa(v string) predicate.Location
- func NameJaContains(v string) predicate.Location
- func NameJaContainsFold(v string) predicate.Location
- func NameJaEQ(v string) predicate.Location
- func NameJaEqualFold(v string) predicate.Location
- func NameJaGT(v string) predicate.Location
- func NameJaGTE(v string) predicate.Location
- func NameJaHasPrefix(v string) predicate.Location
- func NameJaHasSuffix(v string) predicate.Location
- func NameJaIn(vs ...string) predicate.Location
- func NameJaLT(v string) predicate.Location
- func NameJaLTE(v string) predicate.Location
- func NameJaNEQ(v string) predicate.Location
- func NameJaNotIn(vs ...string) predicate.Location
- func NameLT(v string) predicate.Location
- func NameLTE(v string) predicate.Location
- func NameNEQ(v string) predicate.Location
- func NameNotIn(vs ...string) predicate.Location
- func Not(p predicate.Location) predicate.Location
- func Or(predicates ...predicate.Location) predicate.Location
- func TypeEQ(v Type) predicate.Location
- func TypeIn(vs ...Type) predicate.Location
- func TypeNEQ(v Type) predicate.Location
- func TypeNotIn(vs ...Type) predicate.Location
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the location type in the database. Label = "location" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldNameJa holds the string denoting the name_ja field in the database. FieldNameJa = "name_ja" // FieldAddress holds the string denoting the address field in the database. FieldAddress = "address" // FieldAddressJa holds the string denoting the address_ja field in the database. FieldAddressJa = "address_ja" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldModified holds the string denoting the modified field in the database. FieldModified = "modified" // Table holds the table name of the location in the database. Table = "locations" )
Variables ¶
var ( // DefaultCreated holds the default value on creation for the "created" field. DefaultCreated func() time.Time // DefaultModified holds the default value on creation for the "modified" field. DefaultModified func() time.Time // UpdateDefaultModified holds the default value on update for the "modified" field. UpdateDefaultModified func() time.Time )
var Columns = []string{ FieldID, FieldType, FieldName, FieldNameJa, FieldAddress, FieldAddressJa, FieldCreated, FieldModified, }
Columns holds all SQL columns for location fields.
Functions ¶
func Address ¶
Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
func AddressContains ¶
AddressContains applies the Contains predicate on the "address" field.
func AddressContainsFold ¶
AddressContainsFold applies the ContainsFold predicate on the "address" field.
func AddressEqualFold ¶
AddressEqualFold applies the EqualFold predicate on the "address" field.
func AddressGTE ¶
AddressGTE applies the GTE predicate on the "address" field.
func AddressHasPrefix ¶
AddressHasPrefix applies the HasPrefix predicate on the "address" field.
func AddressHasSuffix ¶
AddressHasSuffix applies the HasSuffix predicate on the "address" field.
func AddressJa ¶
AddressJa applies equality check predicate on the "address_ja" field. It's identical to AddressJaEQ.
func AddressJaContains ¶
AddressJaContains applies the Contains predicate on the "address_ja" field.
func AddressJaContainsFold ¶
AddressJaContainsFold applies the ContainsFold predicate on the "address_ja" field.
func AddressJaEQ ¶
AddressJaEQ applies the EQ predicate on the "address_ja" field.
func AddressJaEqualFold ¶
AddressJaEqualFold applies the EqualFold predicate on the "address_ja" field.
func AddressJaGT ¶
AddressJaGT applies the GT predicate on the "address_ja" field.
func AddressJaGTE ¶
AddressJaGTE applies the GTE predicate on the "address_ja" field.
func AddressJaHasPrefix ¶
AddressJaHasPrefix applies the HasPrefix predicate on the "address_ja" field.
func AddressJaHasSuffix ¶
AddressJaHasSuffix applies the HasSuffix predicate on the "address_ja" field.
func AddressJaIn ¶
AddressJaIn applies the In predicate on the "address_ja" field.
func AddressJaLT ¶
AddressJaLT applies the LT predicate on the "address_ja" field.
func AddressJaLTE ¶
AddressJaLTE applies the LTE predicate on the "address_ja" field.
func AddressJaNEQ ¶
AddressJaNEQ applies the NEQ predicate on the "address_ja" field.
func AddressJaNotIn ¶
AddressJaNotIn applies the NotIn predicate on the "address_ja" field.
func AddressLTE ¶
AddressLTE applies the LTE predicate on the "address" field.
func AddressNEQ ¶
AddressNEQ applies the NEQ predicate on the "address" field.
func AddressNotIn ¶
AddressNotIn applies the NotIn predicate on the "address" field.
func Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func Modified ¶
Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.
func ModifiedEQ ¶
ModifiedEQ applies the EQ predicate on the "modified" field.
func ModifiedGT ¶
ModifiedGT applies the GT predicate on the "modified" field.
func ModifiedGTE ¶
ModifiedGTE applies the GTE predicate on the "modified" field.
func ModifiedIn ¶
ModifiedIn applies the In predicate on the "modified" field.
func ModifiedLT ¶
ModifiedLT applies the LT predicate on the "modified" field.
func ModifiedLTE ¶
ModifiedLTE applies the LTE predicate on the "modified" field.
func ModifiedNEQ ¶
ModifiedNEQ applies the NEQ predicate on the "modified" field.
func ModifiedNotIn ¶
ModifiedNotIn applies the NotIn predicate on the "modified" field.
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 NameJa ¶
NameJa applies equality check predicate on the "name_ja" field. It's identical to NameJaEQ.
func NameJaContains ¶
NameJaContains applies the Contains predicate on the "name_ja" field.
func NameJaContainsFold ¶
NameJaContainsFold applies the ContainsFold predicate on the "name_ja" field.
func NameJaEqualFold ¶
NameJaEqualFold applies the EqualFold predicate on the "name_ja" field.
func NameJaHasPrefix ¶
NameJaHasPrefix applies the HasPrefix predicate on the "name_ja" field.
func NameJaHasSuffix ¶
NameJaHasSuffix applies the HasSuffix predicate on the "name_ja" field.
func NameJaNotIn ¶
NameJaNotIn applies the NotIn predicate on the "name_ja" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).