bank

package
v0.0.0-...-81e723e Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the bank type in the database.
	Label = "bank"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNameEn holds the string denoting the name_en field in the database.
	FieldNameEn = "name_en"
	// FieldNameZh holds the string denoting the name_zh field in the database.
	FieldNameZh = "name_zh"
	// FieldCountryID holds the string denoting the country_id field in the database.
	FieldCountryID = "country_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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// EdgeCountry holds the string denoting the country edge name in mutations.
	EdgeCountry = "country"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// Table holds the table name of the bank in the database.
	Table = "banks"
	// CountryTable is the table that holds the country relation/edge.
	CountryTable = "banks"
	// CountryInverseTable is the table name for the Country entity.
	// It exists in this package in order to avoid circular dependency with the "country" package.
	CountryInverseTable = "countries"
	// CountryColumn is the table column denoting the country relation/edge.
	CountryColumn = "country_id"
	// UsersTable is the table that holds the users relation/edge.
	UsersTable = "users"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
	// UsersColumn is the table column denoting the users relation/edge.
	UsersColumn = "bank_id"
)

Variables

View Source
var (
	// NameEnValidator is a validator for the "name_en" field. It is called by the builders before save.
	NameEnValidator func(string) error
	// NameZhValidator is a validator for the "name_zh" field. It is called by the builders before save.
	NameZhValidator func(string) error
	// 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
)

Columns holds all SQL columns for bank fields.

Functions

func And

func And(predicates ...predicate.Bank) predicate.Bank

And groups predicates with the AND operator between them.

func CountryID

func CountryID(v uint64) predicate.Bank

CountryID applies equality check predicate on the "country_id" field. It's identical to CountryIDEQ.

func CountryIDEQ

func CountryIDEQ(v uint64) predicate.Bank

CountryIDEQ applies the EQ predicate on the "country_id" field.

func CountryIDIn

func CountryIDIn(vs ...uint64) predicate.Bank

CountryIDIn applies the In predicate on the "country_id" field.

func CountryIDIsNil

func CountryIDIsNil() predicate.Bank

CountryIDIsNil applies the IsNil predicate on the "country_id" field.

func CountryIDNEQ

func CountryIDNEQ(v uint64) predicate.Bank

CountryIDNEQ applies the NEQ predicate on the "country_id" field.

func CountryIDNotIn

func CountryIDNotIn(vs ...uint64) predicate.Bank

CountryIDNotIn applies the NotIn predicate on the "country_id" field.

func CountryIDNotNil

func CountryIDNotNil() predicate.Bank

CountryIDNotNil applies the NotNil predicate on the "country_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Bank

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Bank

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Bank

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Bank

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Bank

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Bank

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Bank

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Bank

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Bank

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Bank

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Bank

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Bank

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Bank

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Bank

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Bank

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Bank

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Bank

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Bank

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Bank

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Bank

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasCountry

func HasCountry() predicate.Bank

HasCountry applies the HasEdge predicate on the "country" edge.

func HasCountryWith

func HasCountryWith(preds ...predicate.Country) predicate.Bank

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

func HasUsers

func HasUsers() predicate.Bank

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Bank

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

func ID

func ID(id uint64) predicate.Bank

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Bank

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Bank

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Bank

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Bank

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Bank

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Bank

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Bank

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Bank

IDNotIn applies the NotIn predicate on the ID field.

func NameEn

func NameEn(v string) predicate.Bank

NameEn applies equality check predicate on the "name_en" field. It's identical to NameEnEQ.

func NameEnContains

func NameEnContains(v string) predicate.Bank

NameEnContains applies the Contains predicate on the "name_en" field.

func NameEnContainsFold

func NameEnContainsFold(v string) predicate.Bank

NameEnContainsFold applies the ContainsFold predicate on the "name_en" field.

func NameEnEQ

func NameEnEQ(v string) predicate.Bank

NameEnEQ applies the EQ predicate on the "name_en" field.

func NameEnEqualFold

func NameEnEqualFold(v string) predicate.Bank

NameEnEqualFold applies the EqualFold predicate on the "name_en" field.

func NameEnGT

func NameEnGT(v string) predicate.Bank

NameEnGT applies the GT predicate on the "name_en" field.

func NameEnGTE

func NameEnGTE(v string) predicate.Bank

NameEnGTE applies the GTE predicate on the "name_en" field.

func NameEnHasPrefix

func NameEnHasPrefix(v string) predicate.Bank

NameEnHasPrefix applies the HasPrefix predicate on the "name_en" field.

func NameEnHasSuffix

func NameEnHasSuffix(v string) predicate.Bank

NameEnHasSuffix applies the HasSuffix predicate on the "name_en" field.

func NameEnIn

func NameEnIn(vs ...string) predicate.Bank

NameEnIn applies the In predicate on the "name_en" field.

func NameEnLT

func NameEnLT(v string) predicate.Bank

NameEnLT applies the LT predicate on the "name_en" field.

func NameEnLTE

func NameEnLTE(v string) predicate.Bank

NameEnLTE applies the LTE predicate on the "name_en" field.

func NameEnNEQ

func NameEnNEQ(v string) predicate.Bank

NameEnNEQ applies the NEQ predicate on the "name_en" field.

func NameEnNotIn

func NameEnNotIn(vs ...string) predicate.Bank

NameEnNotIn applies the NotIn predicate on the "name_en" field.

func NameZh

func NameZh(v string) predicate.Bank

NameZh applies equality check predicate on the "name_zh" field. It's identical to NameZhEQ.

func NameZhContains

func NameZhContains(v string) predicate.Bank

NameZhContains applies the Contains predicate on the "name_zh" field.

func NameZhContainsFold

func NameZhContainsFold(v string) predicate.Bank

NameZhContainsFold applies the ContainsFold predicate on the "name_zh" field.

func NameZhEQ

func NameZhEQ(v string) predicate.Bank

NameZhEQ applies the EQ predicate on the "name_zh" field.

func NameZhEqualFold

func NameZhEqualFold(v string) predicate.Bank

NameZhEqualFold applies the EqualFold predicate on the "name_zh" field.

func NameZhGT

func NameZhGT(v string) predicate.Bank

NameZhGT applies the GT predicate on the "name_zh" field.

func NameZhGTE

func NameZhGTE(v string) predicate.Bank

NameZhGTE applies the GTE predicate on the "name_zh" field.

func NameZhHasPrefix

func NameZhHasPrefix(v string) predicate.Bank

NameZhHasPrefix applies the HasPrefix predicate on the "name_zh" field.

func NameZhHasSuffix

func NameZhHasSuffix(v string) predicate.Bank

NameZhHasSuffix applies the HasSuffix predicate on the "name_zh" field.

func NameZhIn

func NameZhIn(vs ...string) predicate.Bank

NameZhIn applies the In predicate on the "name_zh" field.

func NameZhLT

func NameZhLT(v string) predicate.Bank

NameZhLT applies the LT predicate on the "name_zh" field.

func NameZhLTE

func NameZhLTE(v string) predicate.Bank

NameZhLTE applies the LTE predicate on the "name_zh" field.

func NameZhNEQ

func NameZhNEQ(v string) predicate.Bank

NameZhNEQ applies the NEQ predicate on the "name_zh" field.

func NameZhNotIn

func NameZhNotIn(vs ...string) predicate.Bank

NameZhNotIn applies the NotIn predicate on the "name_zh" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Bank) predicate.Bank

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Bank

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Bank

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Bank

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Bank

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Bank

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Bank

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Bank

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Bank

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Bank

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Bank queries.

func ByCountryField

func ByCountryField(field string, opts ...sql.OrderTermOption) OrderOption

ByCountryField orders the results by country field.

func ByCountryID

func ByCountryID(opts ...sql.OrderTermOption) OrderOption

ByCountryID orders the results by the country_id field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByNameEn

func ByNameEn(opts ...sql.OrderTermOption) OrderOption

ByNameEn orders the results by the name_en field.

func ByNameZh

func ByNameZh(opts ...sql.OrderTermOption) OrderOption

ByNameZh orders the results by the name_zh field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUsers

func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUsers orders the results by users terms.

func ByUsersCount

func ByUsersCount(opts ...sql.OrderTermOption) OrderOption

ByUsersCount orders the results by users count.

Jump to

Keyboard shortcuts

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