location

package
v0.0.0-...-3da28a4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for location fields.

Functions

func Address

func Address(v string) predicate.Location

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.Location

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.Location

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.Location

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.Location

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.Location

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.Location

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.Location

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.Location

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.Location

AddressIn applies the In predicate on the "address" field.

func AddressJa

func AddressJa(v string) predicate.Location

AddressJa applies equality check predicate on the "address_ja" field. It's identical to AddressJaEQ.

func AddressJaContains

func AddressJaContains(v string) predicate.Location

AddressJaContains applies the Contains predicate on the "address_ja" field.

func AddressJaContainsFold

func AddressJaContainsFold(v string) predicate.Location

AddressJaContainsFold applies the ContainsFold predicate on the "address_ja" field.

func AddressJaEQ

func AddressJaEQ(v string) predicate.Location

AddressJaEQ applies the EQ predicate on the "address_ja" field.

func AddressJaEqualFold

func AddressJaEqualFold(v string) predicate.Location

AddressJaEqualFold applies the EqualFold predicate on the "address_ja" field.

func AddressJaGT

func AddressJaGT(v string) predicate.Location

AddressJaGT applies the GT predicate on the "address_ja" field.

func AddressJaGTE

func AddressJaGTE(v string) predicate.Location

AddressJaGTE applies the GTE predicate on the "address_ja" field.

func AddressJaHasPrefix

func AddressJaHasPrefix(v string) predicate.Location

AddressJaHasPrefix applies the HasPrefix predicate on the "address_ja" field.

func AddressJaHasSuffix

func AddressJaHasSuffix(v string) predicate.Location

AddressJaHasSuffix applies the HasSuffix predicate on the "address_ja" field.

func AddressJaIn

func AddressJaIn(vs ...string) predicate.Location

AddressJaIn applies the In predicate on the "address_ja" field.

func AddressJaLT

func AddressJaLT(v string) predicate.Location

AddressJaLT applies the LT predicate on the "address_ja" field.

func AddressJaLTE

func AddressJaLTE(v string) predicate.Location

AddressJaLTE applies the LTE predicate on the "address_ja" field.

func AddressJaNEQ

func AddressJaNEQ(v string) predicate.Location

AddressJaNEQ applies the NEQ predicate on the "address_ja" field.

func AddressJaNotIn

func AddressJaNotIn(vs ...string) predicate.Location

AddressJaNotIn applies the NotIn predicate on the "address_ja" field.

func AddressLT

func AddressLT(v string) predicate.Location

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.Location

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.Location

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.Location

AddressNotIn applies the NotIn predicate on the "address" field.

func And

func And(predicates ...predicate.Location) predicate.Location

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.Location

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Location

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Location

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Location

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.Location

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Location

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Location

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Location

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.Location

CreatedNotIn applies the NotIn predicate on the "created" field.

func ID

func ID(id uint32) predicate.Location

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.Location

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.Location

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.Location

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint32) predicate.Location

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.Location

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.Location

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.Location

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint32) predicate.Location

IDNotIn applies the NotIn predicate on the ID field.

func Modified

func Modified(v time.Time) predicate.Location

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v time.Time) predicate.Location

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedGT

func ModifiedGT(v time.Time) predicate.Location

ModifiedGT applies the GT predicate on the "modified" field.

func ModifiedGTE

func ModifiedGTE(v time.Time) predicate.Location

ModifiedGTE applies the GTE predicate on the "modified" field.

func ModifiedIn

func ModifiedIn(vs ...time.Time) predicate.Location

ModifiedIn applies the In predicate on the "modified" field.

func ModifiedLT

func ModifiedLT(v time.Time) predicate.Location

ModifiedLT applies the LT predicate on the "modified" field.

func ModifiedLTE

func ModifiedLTE(v time.Time) predicate.Location

ModifiedLTE applies the LTE predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v time.Time) predicate.Location

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func ModifiedNotIn

func ModifiedNotIn(vs ...time.Time) predicate.Location

ModifiedNotIn applies the NotIn predicate on the "modified" field.

func Name

func Name(v string) predicate.Location

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

func NameContains

func NameContains(v string) predicate.Location

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

func NameContainsFold

func NameContainsFold(v string) predicate.Location

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

func NameEQ

func NameEQ(v string) predicate.Location

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

func NameEqualFold

func NameEqualFold(v string) predicate.Location

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

func NameGT

func NameGT(v string) predicate.Location

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

func NameGTE

func NameGTE(v string) predicate.Location

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Location

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Location

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

func NameIn

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

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

func NameJa

func NameJa(v string) predicate.Location

NameJa applies equality check predicate on the "name_ja" field. It's identical to NameJaEQ.

func NameJaContains

func NameJaContains(v string) predicate.Location

NameJaContains applies the Contains predicate on the "name_ja" field.

func NameJaContainsFold

func NameJaContainsFold(v string) predicate.Location

NameJaContainsFold applies the ContainsFold predicate on the "name_ja" field.

func NameJaEQ

func NameJaEQ(v string) predicate.Location

NameJaEQ applies the EQ predicate on the "name_ja" field.

func NameJaEqualFold

func NameJaEqualFold(v string) predicate.Location

NameJaEqualFold applies the EqualFold predicate on the "name_ja" field.

func NameJaGT

func NameJaGT(v string) predicate.Location

NameJaGT applies the GT predicate on the "name_ja" field.

func NameJaGTE

func NameJaGTE(v string) predicate.Location

NameJaGTE applies the GTE predicate on the "name_ja" field.

func NameJaHasPrefix

func NameJaHasPrefix(v string) predicate.Location

NameJaHasPrefix applies the HasPrefix predicate on the "name_ja" field.

func NameJaHasSuffix

func NameJaHasSuffix(v string) predicate.Location

NameJaHasSuffix applies the HasSuffix predicate on the "name_ja" field.

func NameJaIn

func NameJaIn(vs ...string) predicate.Location

NameJaIn applies the In predicate on the "name_ja" field.

func NameJaLT

func NameJaLT(v string) predicate.Location

NameJaLT applies the LT predicate on the "name_ja" field.

func NameJaLTE

func NameJaLTE(v string) predicate.Location

NameJaLTE applies the LTE predicate on the "name_ja" field.

func NameJaNEQ

func NameJaNEQ(v string) predicate.Location

NameJaNEQ applies the NEQ predicate on the "name_ja" field.

func NameJaNotIn

func NameJaNotIn(vs ...string) predicate.Location

NameJaNotIn applies the NotIn predicate on the "name_ja" field.

func NameLT

func NameLT(v string) predicate.Location

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

func NameLTE

func NameLTE(v string) predicate.Location

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

func NameNEQ

func NameNEQ(v string) predicate.Location

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Location) predicate.Location

Or groups predicates with the OR operator between them.

func TypeEQ

func TypeEQ(v Type) predicate.Location

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Location

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Location

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Location

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeUniv Type = "univ"
	TypeCorp Type = "corp"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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