Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Bank) predicate.Bank
- func CountryID(v uint64) predicate.Bank
- func CountryIDEQ(v uint64) predicate.Bank
- func CountryIDIn(vs ...uint64) predicate.Bank
- func CountryIDIsNil() predicate.Bank
- func CountryIDNEQ(v uint64) predicate.Bank
- func CountryIDNotIn(vs ...uint64) predicate.Bank
- func CountryIDNotNil() predicate.Bank
- func CreatedAt(v time.Time) predicate.Bank
- func CreatedAtEQ(v time.Time) predicate.Bank
- func CreatedAtGT(v time.Time) predicate.Bank
- func CreatedAtGTE(v time.Time) predicate.Bank
- func CreatedAtIn(vs ...time.Time) predicate.Bank
- func CreatedAtLT(v time.Time) predicate.Bank
- func CreatedAtLTE(v time.Time) predicate.Bank
- func CreatedAtNEQ(v time.Time) predicate.Bank
- func CreatedAtNotIn(vs ...time.Time) predicate.Bank
- func DeletedAt(v time.Time) predicate.Bank
- func DeletedAtEQ(v time.Time) predicate.Bank
- func DeletedAtGT(v time.Time) predicate.Bank
- func DeletedAtGTE(v time.Time) predicate.Bank
- func DeletedAtIn(vs ...time.Time) predicate.Bank
- func DeletedAtIsNil() predicate.Bank
- func DeletedAtLT(v time.Time) predicate.Bank
- func DeletedAtLTE(v time.Time) predicate.Bank
- func DeletedAtNEQ(v time.Time) predicate.Bank
- func DeletedAtNotIn(vs ...time.Time) predicate.Bank
- func DeletedAtNotNil() predicate.Bank
- func HasCountry() predicate.Bank
- func HasCountryWith(preds ...predicate.Country) predicate.Bank
- func HasUsers() predicate.Bank
- func HasUsersWith(preds ...predicate.User) predicate.Bank
- func ID(id uint64) predicate.Bank
- func IDEQ(id uint64) predicate.Bank
- func IDGT(id uint64) predicate.Bank
- func IDGTE(id uint64) predicate.Bank
- func IDIn(ids ...uint64) predicate.Bank
- func IDLT(id uint64) predicate.Bank
- func IDLTE(id uint64) predicate.Bank
- func IDNEQ(id uint64) predicate.Bank
- func IDNotIn(ids ...uint64) predicate.Bank
- func NameEn(v string) predicate.Bank
- func NameEnContains(v string) predicate.Bank
- func NameEnContainsFold(v string) predicate.Bank
- func NameEnEQ(v string) predicate.Bank
- func NameEnEqualFold(v string) predicate.Bank
- func NameEnGT(v string) predicate.Bank
- func NameEnGTE(v string) predicate.Bank
- func NameEnHasPrefix(v string) predicate.Bank
- func NameEnHasSuffix(v string) predicate.Bank
- func NameEnIn(vs ...string) predicate.Bank
- func NameEnLT(v string) predicate.Bank
- func NameEnLTE(v string) predicate.Bank
- func NameEnNEQ(v string) predicate.Bank
- func NameEnNotIn(vs ...string) predicate.Bank
- func NameZh(v string) predicate.Bank
- func NameZhContains(v string) predicate.Bank
- func NameZhContainsFold(v string) predicate.Bank
- func NameZhEQ(v string) predicate.Bank
- func NameZhEqualFold(v string) predicate.Bank
- func NameZhGT(v string) predicate.Bank
- func NameZhGTE(v string) predicate.Bank
- func NameZhHasPrefix(v string) predicate.Bank
- func NameZhHasSuffix(v string) predicate.Bank
- func NameZhIn(vs ...string) predicate.Bank
- func NameZhLT(v string) predicate.Bank
- func NameZhLTE(v string) predicate.Bank
- func NameZhNEQ(v string) predicate.Bank
- func NameZhNotIn(vs ...string) predicate.Bank
- func Not(p predicate.Bank) predicate.Bank
- func Or(predicates ...predicate.Bank) predicate.Bank
- func UpdatedAt(v time.Time) predicate.Bank
- func UpdatedAtEQ(v time.Time) predicate.Bank
- func UpdatedAtGT(v time.Time) predicate.Bank
- func UpdatedAtGTE(v time.Time) predicate.Bank
- func UpdatedAtIn(vs ...time.Time) predicate.Bank
- func UpdatedAtLT(v time.Time) predicate.Bank
- func UpdatedAtLTE(v time.Time) predicate.Bank
- func UpdatedAtNEQ(v time.Time) predicate.Bank
- func UpdatedAtNotIn(vs ...time.Time) predicate.Bank
- func ValidColumn(column string) bool
- type OrderOption
- func ByCountryField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCountryID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNameEn(opts ...sql.OrderTermOption) OrderOption
- func ByNameZh(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldNameEn, FieldNameZh, FieldCountryID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for bank fields.
Functions ¶
func CountryID ¶
CountryID applies equality check predicate on the "country_id" field. It's identical to CountryIDEQ.
func CountryIDEQ ¶
CountryIDEQ applies the EQ predicate on the "country_id" field.
func CountryIDIn ¶
CountryIDIn applies the In predicate on the "country_id" field.
func CountryIDIsNil ¶
CountryIDIsNil applies the IsNil predicate on the "country_id" field.
func CountryIDNEQ ¶
CountryIDNEQ applies the NEQ predicate on the "country_id" field.
func CountryIDNotIn ¶
CountryIDNotIn applies the NotIn predicate on the "country_id" field.
func CountryIDNotNil ¶
CountryIDNotNil applies the NotNil predicate on the "country_id" 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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasCountry ¶
HasCountry applies the HasEdge predicate on the "country" edge.
func HasCountryWith ¶
HasCountryWith applies the HasEdge predicate on the "country" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func NameEn ¶
NameEn applies equality check predicate on the "name_en" field. It's identical to NameEnEQ.
func NameEnContains ¶
NameEnContains applies the Contains predicate on the "name_en" field.
func NameEnContainsFold ¶
NameEnContainsFold applies the ContainsFold predicate on the "name_en" field.
func NameEnEqualFold ¶
NameEnEqualFold applies the EqualFold predicate on the "name_en" field.
func NameEnHasPrefix ¶
NameEnHasPrefix applies the HasPrefix predicate on the "name_en" field.
func NameEnHasSuffix ¶
NameEnHasSuffix applies the HasSuffix predicate on the "name_en" field.
func NameEnNotIn ¶
NameEnNotIn applies the NotIn predicate on the "name_en" field.
func NameZh ¶
NameZh applies equality check predicate on the "name_zh" field. It's identical to NameZhEQ.
func NameZhContains ¶
NameZhContains applies the Contains predicate on the "name_zh" field.
func NameZhContainsFold ¶
NameZhContainsFold applies the ContainsFold predicate on the "name_zh" field.
func NameZhEqualFold ¶
NameZhEqualFold applies the EqualFold predicate on the "name_zh" field.
func NameZhHasPrefix ¶
NameZhHasPrefix applies the HasPrefix predicate on the "name_zh" field.
func NameZhHasSuffix ¶
NameZhHasSuffix applies the HasSuffix predicate on the "name_zh" field.
func NameZhNotIn ¶
NameZhNotIn applies the NotIn predicate on the "name_zh" field.
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).
Types ¶
type OrderOption ¶
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.