branch

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the branch type in the database.
	Label = "branch"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBranchCode holds the string denoting the branchcode field in the database.
	FieldBranchCode = "branch_code"
	// FieldStreetNumber holds the string denoting the streetnumber field in the database.
	FieldStreetNumber = "street_number"
	// FieldStreetName holds the string denoting the streetname field in the database.
	FieldStreetName = "street_name"
	// FieldCity holds the string denoting the city field in the database.
	FieldCity = "city"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldZip holds the string denoting the zip field in the database.
	FieldZip = "zip"
	// FieldLatitude holds the string denoting the latitude field in the database.
	FieldLatitude = "latitude"
	// FieldLongitude holds the string denoting the longitude field in the database.
	FieldLongitude = "longitude"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the branch in the database.
	Table = "branches"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "branches"
	// OwnerInverseTable is the table name for the Bank entity.
	// It exists in this package in order to avoid circular dependency with the "bank" package.
	OwnerInverseTable = "banks"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "bank_branches"
)

Variables

Columns holds all SQL columns for branch fields.

View Source
var ForeignKeys = []string{
	"bank_branches",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "branches" table and are not defined as standalone fields in the schema.

View Source
var (
	// StateValidator is a validator for the "state" field. It is called by the builders before save.
	StateValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Branch) predicate.Branch

And groups predicates with the AND operator between them.

func BranchCode

func BranchCode(v string) predicate.Branch

BranchCode applies equality check predicate on the "branchCode" field. It's identical to BranchCodeEQ.

func BranchCodeContains

func BranchCodeContains(v string) predicate.Branch

BranchCodeContains applies the Contains predicate on the "branchCode" field.

func BranchCodeContainsFold

func BranchCodeContainsFold(v string) predicate.Branch

BranchCodeContainsFold applies the ContainsFold predicate on the "branchCode" field.

func BranchCodeEQ

func BranchCodeEQ(v string) predicate.Branch

BranchCodeEQ applies the EQ predicate on the "branchCode" field.

func BranchCodeEqualFold

func BranchCodeEqualFold(v string) predicate.Branch

BranchCodeEqualFold applies the EqualFold predicate on the "branchCode" field.

func BranchCodeGT

func BranchCodeGT(v string) predicate.Branch

BranchCodeGT applies the GT predicate on the "branchCode" field.

func BranchCodeGTE

func BranchCodeGTE(v string) predicate.Branch

BranchCodeGTE applies the GTE predicate on the "branchCode" field.

func BranchCodeHasPrefix

func BranchCodeHasPrefix(v string) predicate.Branch

BranchCodeHasPrefix applies the HasPrefix predicate on the "branchCode" field.

func BranchCodeHasSuffix

func BranchCodeHasSuffix(v string) predicate.Branch

BranchCodeHasSuffix applies the HasSuffix predicate on the "branchCode" field.

func BranchCodeIn

func BranchCodeIn(vs ...string) predicate.Branch

BranchCodeIn applies the In predicate on the "branchCode" field.

func BranchCodeLT

func BranchCodeLT(v string) predicate.Branch

BranchCodeLT applies the LT predicate on the "branchCode" field.

func BranchCodeLTE

func BranchCodeLTE(v string) predicate.Branch

BranchCodeLTE applies the LTE predicate on the "branchCode" field.

func BranchCodeNEQ

func BranchCodeNEQ(v string) predicate.Branch

BranchCodeNEQ applies the NEQ predicate on the "branchCode" field.

func BranchCodeNotIn

func BranchCodeNotIn(vs ...string) predicate.Branch

BranchCodeNotIn applies the NotIn predicate on the "branchCode" field.

func City

func City(v string) predicate.Branch

City applies equality check predicate on the "city" field. It's identical to CityEQ.

func CityContains

func CityContains(v string) predicate.Branch

CityContains applies the Contains predicate on the "city" field.

func CityContainsFold

func CityContainsFold(v string) predicate.Branch

CityContainsFold applies the ContainsFold predicate on the "city" field.

func CityEQ

func CityEQ(v string) predicate.Branch

CityEQ applies the EQ predicate on the "city" field.

func CityEqualFold

func CityEqualFold(v string) predicate.Branch

CityEqualFold applies the EqualFold predicate on the "city" field.

func CityGT

func CityGT(v string) predicate.Branch

CityGT applies the GT predicate on the "city" field.

func CityGTE

func CityGTE(v string) predicate.Branch

CityGTE applies the GTE predicate on the "city" field.

func CityHasPrefix

func CityHasPrefix(v string) predicate.Branch

CityHasPrefix applies the HasPrefix predicate on the "city" field.

func CityHasSuffix

func CityHasSuffix(v string) predicate.Branch

CityHasSuffix applies the HasSuffix predicate on the "city" field.

func CityIn

func CityIn(vs ...string) predicate.Branch

CityIn applies the In predicate on the "city" field.

func CityLT

func CityLT(v string) predicate.Branch

CityLT applies the LT predicate on the "city" field.

func CityLTE

func CityLTE(v string) predicate.Branch

CityLTE applies the LTE predicate on the "city" field.

func CityNEQ

func CityNEQ(v string) predicate.Branch

CityNEQ applies the NEQ predicate on the "city" field.

func CityNotIn

func CityNotIn(vs ...string) predicate.Branch

CityNotIn applies the NotIn predicate on the "city" field.

func HasOwner

func HasOwner() predicate.Branch

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Bank) predicate.Branch

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

func ID

func ID(id int) predicate.Branch

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Branch

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Branch

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Branch

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Branch

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Branch

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Branch

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Branch

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Branch

IDNotIn applies the NotIn predicate on the ID field.

func Latitude

func Latitude(v float64) predicate.Branch

Latitude applies equality check predicate on the "latitude" field. It's identical to LatitudeEQ.

func LatitudeEQ

func LatitudeEQ(v float64) predicate.Branch

LatitudeEQ applies the EQ predicate on the "latitude" field.

func LatitudeGT

func LatitudeGT(v float64) predicate.Branch

LatitudeGT applies the GT predicate on the "latitude" field.

func LatitudeGTE

func LatitudeGTE(v float64) predicate.Branch

LatitudeGTE applies the GTE predicate on the "latitude" field.

func LatitudeIn

func LatitudeIn(vs ...float64) predicate.Branch

LatitudeIn applies the In predicate on the "latitude" field.

func LatitudeLT

func LatitudeLT(v float64) predicate.Branch

LatitudeLT applies the LT predicate on the "latitude" field.

func LatitudeLTE

func LatitudeLTE(v float64) predicate.Branch

LatitudeLTE applies the LTE predicate on the "latitude" field.

func LatitudeNEQ

func LatitudeNEQ(v float64) predicate.Branch

LatitudeNEQ applies the NEQ predicate on the "latitude" field.

func LatitudeNotIn

func LatitudeNotIn(vs ...float64) predicate.Branch

LatitudeNotIn applies the NotIn predicate on the "latitude" field.

func Longitude

func Longitude(v float64) predicate.Branch

Longitude applies equality check predicate on the "longitude" field. It's identical to LongitudeEQ.

func LongitudeEQ

func LongitudeEQ(v float64) predicate.Branch

LongitudeEQ applies the EQ predicate on the "longitude" field.

func LongitudeGT

func LongitudeGT(v float64) predicate.Branch

LongitudeGT applies the GT predicate on the "longitude" field.

func LongitudeGTE

func LongitudeGTE(v float64) predicate.Branch

LongitudeGTE applies the GTE predicate on the "longitude" field.

func LongitudeIn

func LongitudeIn(vs ...float64) predicate.Branch

LongitudeIn applies the In predicate on the "longitude" field.

func LongitudeLT

func LongitudeLT(v float64) predicate.Branch

LongitudeLT applies the LT predicate on the "longitude" field.

func LongitudeLTE

func LongitudeLTE(v float64) predicate.Branch

LongitudeLTE applies the LTE predicate on the "longitude" field.

func LongitudeNEQ

func LongitudeNEQ(v float64) predicate.Branch

LongitudeNEQ applies the NEQ predicate on the "longitude" field.

func LongitudeNotIn

func LongitudeNotIn(vs ...float64) predicate.Branch

LongitudeNotIn applies the NotIn predicate on the "longitude" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Branch) predicate.Branch

Or groups predicates with the OR operator between them.

func State

func State(v string) predicate.Branch

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateContains

func StateContains(v string) predicate.Branch

StateContains applies the Contains predicate on the "state" field.

func StateContainsFold

func StateContainsFold(v string) predicate.Branch

StateContainsFold applies the ContainsFold predicate on the "state" field.

func StateEQ

func StateEQ(v string) predicate.Branch

StateEQ applies the EQ predicate on the "state" field.

func StateEqualFold

func StateEqualFold(v string) predicate.Branch

StateEqualFold applies the EqualFold predicate on the "state" field.

func StateGT

func StateGT(v string) predicate.Branch

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v string) predicate.Branch

StateGTE applies the GTE predicate on the "state" field.

func StateHasPrefix

func StateHasPrefix(v string) predicate.Branch

StateHasPrefix applies the HasPrefix predicate on the "state" field.

func StateHasSuffix

func StateHasSuffix(v string) predicate.Branch

StateHasSuffix applies the HasSuffix predicate on the "state" field.

func StateIn

func StateIn(vs ...string) predicate.Branch

StateIn applies the In predicate on the "state" field.

func StateLT

func StateLT(v string) predicate.Branch

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v string) predicate.Branch

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v string) predicate.Branch

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...string) predicate.Branch

StateNotIn applies the NotIn predicate on the "state" field.

func StreetName

func StreetName(v string) predicate.Branch

StreetName applies equality check predicate on the "streetName" field. It's identical to StreetNameEQ.

func StreetNameContains

func StreetNameContains(v string) predicate.Branch

StreetNameContains applies the Contains predicate on the "streetName" field.

func StreetNameContainsFold

func StreetNameContainsFold(v string) predicate.Branch

StreetNameContainsFold applies the ContainsFold predicate on the "streetName" field.

func StreetNameEQ

func StreetNameEQ(v string) predicate.Branch

StreetNameEQ applies the EQ predicate on the "streetName" field.

func StreetNameEqualFold

func StreetNameEqualFold(v string) predicate.Branch

StreetNameEqualFold applies the EqualFold predicate on the "streetName" field.

func StreetNameGT

func StreetNameGT(v string) predicate.Branch

StreetNameGT applies the GT predicate on the "streetName" field.

func StreetNameGTE

func StreetNameGTE(v string) predicate.Branch

StreetNameGTE applies the GTE predicate on the "streetName" field.

func StreetNameHasPrefix

func StreetNameHasPrefix(v string) predicate.Branch

StreetNameHasPrefix applies the HasPrefix predicate on the "streetName" field.

func StreetNameHasSuffix

func StreetNameHasSuffix(v string) predicate.Branch

StreetNameHasSuffix applies the HasSuffix predicate on the "streetName" field.

func StreetNameIn

func StreetNameIn(vs ...string) predicate.Branch

StreetNameIn applies the In predicate on the "streetName" field.

func StreetNameLT

func StreetNameLT(v string) predicate.Branch

StreetNameLT applies the LT predicate on the "streetName" field.

func StreetNameLTE

func StreetNameLTE(v string) predicate.Branch

StreetNameLTE applies the LTE predicate on the "streetName" field.

func StreetNameNEQ

func StreetNameNEQ(v string) predicate.Branch

StreetNameNEQ applies the NEQ predicate on the "streetName" field.

func StreetNameNotIn

func StreetNameNotIn(vs ...string) predicate.Branch

StreetNameNotIn applies the NotIn predicate on the "streetName" field.

func StreetNumber

func StreetNumber(v string) predicate.Branch

StreetNumber applies equality check predicate on the "streetNumber" field. It's identical to StreetNumberEQ.

func StreetNumberContains

func StreetNumberContains(v string) predicate.Branch

StreetNumberContains applies the Contains predicate on the "streetNumber" field.

func StreetNumberContainsFold

func StreetNumberContainsFold(v string) predicate.Branch

StreetNumberContainsFold applies the ContainsFold predicate on the "streetNumber" field.

func StreetNumberEQ

func StreetNumberEQ(v string) predicate.Branch

StreetNumberEQ applies the EQ predicate on the "streetNumber" field.

func StreetNumberEqualFold

func StreetNumberEqualFold(v string) predicate.Branch

StreetNumberEqualFold applies the EqualFold predicate on the "streetNumber" field.

func StreetNumberGT

func StreetNumberGT(v string) predicate.Branch

StreetNumberGT applies the GT predicate on the "streetNumber" field.

func StreetNumberGTE

func StreetNumberGTE(v string) predicate.Branch

StreetNumberGTE applies the GTE predicate on the "streetNumber" field.

func StreetNumberHasPrefix

func StreetNumberHasPrefix(v string) predicate.Branch

StreetNumberHasPrefix applies the HasPrefix predicate on the "streetNumber" field.

func StreetNumberHasSuffix

func StreetNumberHasSuffix(v string) predicate.Branch

StreetNumberHasSuffix applies the HasSuffix predicate on the "streetNumber" field.

func StreetNumberIn

func StreetNumberIn(vs ...string) predicate.Branch

StreetNumberIn applies the In predicate on the "streetNumber" field.

func StreetNumberLT

func StreetNumberLT(v string) predicate.Branch

StreetNumberLT applies the LT predicate on the "streetNumber" field.

func StreetNumberLTE

func StreetNumberLTE(v string) predicate.Branch

StreetNumberLTE applies the LTE predicate on the "streetNumber" field.

func StreetNumberNEQ

func StreetNumberNEQ(v string) predicate.Branch

StreetNumberNEQ applies the NEQ predicate on the "streetNumber" field.

func StreetNumberNotIn

func StreetNumberNotIn(vs ...string) predicate.Branch

StreetNumberNotIn applies the NotIn predicate on the "streetNumber" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Zip

func Zip(v string) predicate.Branch

Zip applies equality check predicate on the "zip" field. It's identical to ZipEQ.

func ZipContains

func ZipContains(v string) predicate.Branch

ZipContains applies the Contains predicate on the "zip" field.

func ZipContainsFold

func ZipContainsFold(v string) predicate.Branch

ZipContainsFold applies the ContainsFold predicate on the "zip" field.

func ZipEQ

func ZipEQ(v string) predicate.Branch

ZipEQ applies the EQ predicate on the "zip" field.

func ZipEqualFold

func ZipEqualFold(v string) predicate.Branch

ZipEqualFold applies the EqualFold predicate on the "zip" field.

func ZipGT

func ZipGT(v string) predicate.Branch

ZipGT applies the GT predicate on the "zip" field.

func ZipGTE

func ZipGTE(v string) predicate.Branch

ZipGTE applies the GTE predicate on the "zip" field.

func ZipHasPrefix

func ZipHasPrefix(v string) predicate.Branch

ZipHasPrefix applies the HasPrefix predicate on the "zip" field.

func ZipHasSuffix

func ZipHasSuffix(v string) predicate.Branch

ZipHasSuffix applies the HasSuffix predicate on the "zip" field.

func ZipIn

func ZipIn(vs ...string) predicate.Branch

ZipIn applies the In predicate on the "zip" field.

func ZipLT

func ZipLT(v string) predicate.Branch

ZipLT applies the LT predicate on the "zip" field.

func ZipLTE

func ZipLTE(v string) predicate.Branch

ZipLTE applies the LTE predicate on the "zip" field.

func ZipNEQ

func ZipNEQ(v string) predicate.Branch

ZipNEQ applies the NEQ predicate on the "zip" field.

func ZipNotIn

func ZipNotIn(vs ...string) predicate.Branch

ZipNotIn applies the NotIn predicate on the "zip" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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