country

package
v0.0.0-...-f291767 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the country type in the database.
	Label = "country"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIso2 holds the string denoting the iso2 field in the database.
	FieldIso2 = "iso2"
	// FieldIso3 holds the string denoting the iso3 field in the database.
	FieldIso3 = "iso3"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldOfficialName holds the string denoting the official_name field in the database.
	FieldOfficialName = "official_name"
	// FieldNumericCode holds the string denoting the numeric_code field in the database.
	FieldNumericCode = "numeric_code"
	// FieldPhoneCode holds the string denoting the phone_code field in the database.
	FieldPhoneCode = "phone_code"
	// FieldCapital holds the string denoting the capital field in the database.
	FieldCapital = "capital"
	// FieldCurrencyName holds the string denoting the currency_name field in the database.
	FieldCurrencyName = "currency_name"
	// FieldCurrencyCode holds the string denoting the currency_code field in the database.
	FieldCurrencyCode = "currency_code"
	// FieldCurrencySymbol holds the string denoting the currency_symbol field in the database.
	FieldCurrencySymbol = "currency_symbol"
	// FieldConversionRate holds the string denoting the conversion_rate field in the database.
	FieldConversionRate = "conversion_rate"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// 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"
	// EdgeLocations holds the string denoting the locations edge name in mutations.
	EdgeLocations = "locations"
	// EdgeBanks holds the string denoting the banks edge name in mutations.
	EdgeBanks = "banks"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// EdgeContactUsers holds the string denoting the contact_users edge name in mutations.
	EdgeContactUsers = "contact_users"
	// Table holds the table name of the country in the database.
	Table = "countries"
	// LocationsTable is the table that holds the locations relation/edge.
	LocationsTable = "country_locations"
	// LocationsInverseTable is the table name for the CountryLocation entity.
	// It exists in this package in order to avoid circular dependency with the "countrylocation" package.
	LocationsInverseTable = "country_locations"
	// LocationsColumn is the table column denoting the locations relation/edge.
	LocationsColumn = "country_id"
	// BanksTable is the table that holds the banks relation/edge.
	BanksTable = "banks"
	// BanksInverseTable is the table name for the Bank entity.
	// It exists in this package in order to avoid circular dependency with the "bank" package.
	BanksInverseTable = "banks"
	// BanksColumn is the table column denoting the banks relation/edge.
	BanksColumn = "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 = "country_id"
	// ContactUsersTable is the table that holds the contact_users relation/edge.
	ContactUsersTable = "users"
	// ContactUsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	ContactUsersInverseTable = "users"
	// ContactUsersColumn is the table column denoting the contact_users relation/edge.
	ContactUsersColumn = "contact_country_id"
)

Variables

View Source
var (
	// Iso2Validator is a validator for the "iso2" field. It is called by the builders before save.
	Iso2Validator func(string) error
	// Iso3Validator is a validator for the "iso3" field. It is called by the builders before save.
	Iso3Validator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultConversionRate holds the default value on creation for the "conversion_rate" field.
	DefaultConversionRate float64
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus uint8
	// 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 country fields.

Functions

func And

func And(predicates ...predicate.Country) predicate.Country

And groups predicates with the AND operator between them.

func Capital

func Capital(v string) predicate.Country

Capital applies equality check predicate on the "capital" field. It's identical to CapitalEQ.

func CapitalContains

func CapitalContains(v string) predicate.Country

CapitalContains applies the Contains predicate on the "capital" field.

func CapitalContainsFold

func CapitalContainsFold(v string) predicate.Country

CapitalContainsFold applies the ContainsFold predicate on the "capital" field.

func CapitalEQ

func CapitalEQ(v string) predicate.Country

CapitalEQ applies the EQ predicate on the "capital" field.

func CapitalEqualFold

func CapitalEqualFold(v string) predicate.Country

CapitalEqualFold applies the EqualFold predicate on the "capital" field.

func CapitalGT

func CapitalGT(v string) predicate.Country

CapitalGT applies the GT predicate on the "capital" field.

func CapitalGTE

func CapitalGTE(v string) predicate.Country

CapitalGTE applies the GTE predicate on the "capital" field.

func CapitalHasPrefix

func CapitalHasPrefix(v string) predicate.Country

CapitalHasPrefix applies the HasPrefix predicate on the "capital" field.

func CapitalHasSuffix

func CapitalHasSuffix(v string) predicate.Country

CapitalHasSuffix applies the HasSuffix predicate on the "capital" field.

func CapitalIn

func CapitalIn(vs ...string) predicate.Country

CapitalIn applies the In predicate on the "capital" field.

func CapitalIsNil

func CapitalIsNil() predicate.Country

CapitalIsNil applies the IsNil predicate on the "capital" field.

func CapitalLT

func CapitalLT(v string) predicate.Country

CapitalLT applies the LT predicate on the "capital" field.

func CapitalLTE

func CapitalLTE(v string) predicate.Country

CapitalLTE applies the LTE predicate on the "capital" field.

func CapitalNEQ

func CapitalNEQ(v string) predicate.Country

CapitalNEQ applies the NEQ predicate on the "capital" field.

func CapitalNotIn

func CapitalNotIn(vs ...string) predicate.Country

CapitalNotIn applies the NotIn predicate on the "capital" field.

func CapitalNotNil

func CapitalNotNil() predicate.Country

CapitalNotNil applies the NotNil predicate on the "capital" field.

func ConversionRate

func ConversionRate(v float64) predicate.Country

ConversionRate applies equality check predicate on the "conversion_rate" field. It's identical to ConversionRateEQ.

func ConversionRateEQ

func ConversionRateEQ(v float64) predicate.Country

ConversionRateEQ applies the EQ predicate on the "conversion_rate" field.

func ConversionRateGT

func ConversionRateGT(v float64) predicate.Country

ConversionRateGT applies the GT predicate on the "conversion_rate" field.

func ConversionRateGTE

func ConversionRateGTE(v float64) predicate.Country

ConversionRateGTE applies the GTE predicate on the "conversion_rate" field.

func ConversionRateIn

func ConversionRateIn(vs ...float64) predicate.Country

ConversionRateIn applies the In predicate on the "conversion_rate" field.

func ConversionRateLT

func ConversionRateLT(v float64) predicate.Country

ConversionRateLT applies the LT predicate on the "conversion_rate" field.

func ConversionRateLTE

func ConversionRateLTE(v float64) predicate.Country

ConversionRateLTE applies the LTE predicate on the "conversion_rate" field.

func ConversionRateNEQ

func ConversionRateNEQ(v float64) predicate.Country

ConversionRateNEQ applies the NEQ predicate on the "conversion_rate" field.

func ConversionRateNotIn

func ConversionRateNotIn(vs ...float64) predicate.Country

ConversionRateNotIn applies the NotIn predicate on the "conversion_rate" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Country

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Country

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Country

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Country

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Country

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Country

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Country

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

func CreatedAtNotIn

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

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

func CurrencyCode

func CurrencyCode(v string) predicate.Country

CurrencyCode applies equality check predicate on the "currency_code" field. It's identical to CurrencyCodeEQ.

func CurrencyCodeContains

func CurrencyCodeContains(v string) predicate.Country

CurrencyCodeContains applies the Contains predicate on the "currency_code" field.

func CurrencyCodeContainsFold

func CurrencyCodeContainsFold(v string) predicate.Country

CurrencyCodeContainsFold applies the ContainsFold predicate on the "currency_code" field.

func CurrencyCodeEQ

func CurrencyCodeEQ(v string) predicate.Country

CurrencyCodeEQ applies the EQ predicate on the "currency_code" field.

func CurrencyCodeEqualFold

func CurrencyCodeEqualFold(v string) predicate.Country

CurrencyCodeEqualFold applies the EqualFold predicate on the "currency_code" field.

func CurrencyCodeGT

func CurrencyCodeGT(v string) predicate.Country

CurrencyCodeGT applies the GT predicate on the "currency_code" field.

func CurrencyCodeGTE

func CurrencyCodeGTE(v string) predicate.Country

CurrencyCodeGTE applies the GTE predicate on the "currency_code" field.

func CurrencyCodeHasPrefix

func CurrencyCodeHasPrefix(v string) predicate.Country

CurrencyCodeHasPrefix applies the HasPrefix predicate on the "currency_code" field.

func CurrencyCodeHasSuffix

func CurrencyCodeHasSuffix(v string) predicate.Country

CurrencyCodeHasSuffix applies the HasSuffix predicate on the "currency_code" field.

func CurrencyCodeIn

func CurrencyCodeIn(vs ...string) predicate.Country

CurrencyCodeIn applies the In predicate on the "currency_code" field.

func CurrencyCodeIsNil

func CurrencyCodeIsNil() predicate.Country

CurrencyCodeIsNil applies the IsNil predicate on the "currency_code" field.

func CurrencyCodeLT

func CurrencyCodeLT(v string) predicate.Country

CurrencyCodeLT applies the LT predicate on the "currency_code" field.

func CurrencyCodeLTE

func CurrencyCodeLTE(v string) predicate.Country

CurrencyCodeLTE applies the LTE predicate on the "currency_code" field.

func CurrencyCodeNEQ

func CurrencyCodeNEQ(v string) predicate.Country

CurrencyCodeNEQ applies the NEQ predicate on the "currency_code" field.

func CurrencyCodeNotIn

func CurrencyCodeNotIn(vs ...string) predicate.Country

CurrencyCodeNotIn applies the NotIn predicate on the "currency_code" field.

func CurrencyCodeNotNil

func CurrencyCodeNotNil() predicate.Country

CurrencyCodeNotNil applies the NotNil predicate on the "currency_code" field.

func CurrencyName

func CurrencyName(v string) predicate.Country

CurrencyName applies equality check predicate on the "currency_name" field. It's identical to CurrencyNameEQ.

func CurrencyNameContains

func CurrencyNameContains(v string) predicate.Country

CurrencyNameContains applies the Contains predicate on the "currency_name" field.

func CurrencyNameContainsFold

func CurrencyNameContainsFold(v string) predicate.Country

CurrencyNameContainsFold applies the ContainsFold predicate on the "currency_name" field.

func CurrencyNameEQ

func CurrencyNameEQ(v string) predicate.Country

CurrencyNameEQ applies the EQ predicate on the "currency_name" field.

func CurrencyNameEqualFold

func CurrencyNameEqualFold(v string) predicate.Country

CurrencyNameEqualFold applies the EqualFold predicate on the "currency_name" field.

func CurrencyNameGT

func CurrencyNameGT(v string) predicate.Country

CurrencyNameGT applies the GT predicate on the "currency_name" field.

func CurrencyNameGTE

func CurrencyNameGTE(v string) predicate.Country

CurrencyNameGTE applies the GTE predicate on the "currency_name" field.

func CurrencyNameHasPrefix

func CurrencyNameHasPrefix(v string) predicate.Country

CurrencyNameHasPrefix applies the HasPrefix predicate on the "currency_name" field.

func CurrencyNameHasSuffix

func CurrencyNameHasSuffix(v string) predicate.Country

CurrencyNameHasSuffix applies the HasSuffix predicate on the "currency_name" field.

func CurrencyNameIn

func CurrencyNameIn(vs ...string) predicate.Country

CurrencyNameIn applies the In predicate on the "currency_name" field.

func CurrencyNameIsNil

func CurrencyNameIsNil() predicate.Country

CurrencyNameIsNil applies the IsNil predicate on the "currency_name" field.

func CurrencyNameLT

func CurrencyNameLT(v string) predicate.Country

CurrencyNameLT applies the LT predicate on the "currency_name" field.

func CurrencyNameLTE

func CurrencyNameLTE(v string) predicate.Country

CurrencyNameLTE applies the LTE predicate on the "currency_name" field.

func CurrencyNameNEQ

func CurrencyNameNEQ(v string) predicate.Country

CurrencyNameNEQ applies the NEQ predicate on the "currency_name" field.

func CurrencyNameNotIn

func CurrencyNameNotIn(vs ...string) predicate.Country

CurrencyNameNotIn applies the NotIn predicate on the "currency_name" field.

func CurrencyNameNotNil

func CurrencyNameNotNil() predicate.Country

CurrencyNameNotNil applies the NotNil predicate on the "currency_name" field.

func CurrencySymbol

func CurrencySymbol(v string) predicate.Country

CurrencySymbol applies equality check predicate on the "currency_symbol" field. It's identical to CurrencySymbolEQ.

func CurrencySymbolContains

func CurrencySymbolContains(v string) predicate.Country

CurrencySymbolContains applies the Contains predicate on the "currency_symbol" field.

func CurrencySymbolContainsFold

func CurrencySymbolContainsFold(v string) predicate.Country

CurrencySymbolContainsFold applies the ContainsFold predicate on the "currency_symbol" field.

func CurrencySymbolEQ

func CurrencySymbolEQ(v string) predicate.Country

CurrencySymbolEQ applies the EQ predicate on the "currency_symbol" field.

func CurrencySymbolEqualFold

func CurrencySymbolEqualFold(v string) predicate.Country

CurrencySymbolEqualFold applies the EqualFold predicate on the "currency_symbol" field.

func CurrencySymbolGT

func CurrencySymbolGT(v string) predicate.Country

CurrencySymbolGT applies the GT predicate on the "currency_symbol" field.

func CurrencySymbolGTE

func CurrencySymbolGTE(v string) predicate.Country

CurrencySymbolGTE applies the GTE predicate on the "currency_symbol" field.

func CurrencySymbolHasPrefix

func CurrencySymbolHasPrefix(v string) predicate.Country

CurrencySymbolHasPrefix applies the HasPrefix predicate on the "currency_symbol" field.

func CurrencySymbolHasSuffix

func CurrencySymbolHasSuffix(v string) predicate.Country

CurrencySymbolHasSuffix applies the HasSuffix predicate on the "currency_symbol" field.

func CurrencySymbolIn

func CurrencySymbolIn(vs ...string) predicate.Country

CurrencySymbolIn applies the In predicate on the "currency_symbol" field.

func CurrencySymbolIsNil

func CurrencySymbolIsNil() predicate.Country

CurrencySymbolIsNil applies the IsNil predicate on the "currency_symbol" field.

func CurrencySymbolLT

func CurrencySymbolLT(v string) predicate.Country

CurrencySymbolLT applies the LT predicate on the "currency_symbol" field.

func CurrencySymbolLTE

func CurrencySymbolLTE(v string) predicate.Country

CurrencySymbolLTE applies the LTE predicate on the "currency_symbol" field.

func CurrencySymbolNEQ

func CurrencySymbolNEQ(v string) predicate.Country

CurrencySymbolNEQ applies the NEQ predicate on the "currency_symbol" field.

func CurrencySymbolNotIn

func CurrencySymbolNotIn(vs ...string) predicate.Country

CurrencySymbolNotIn applies the NotIn predicate on the "currency_symbol" field.

func CurrencySymbolNotNil

func CurrencySymbolNotNil() predicate.Country

CurrencySymbolNotNil applies the NotNil predicate on the "currency_symbol" field.

func HasBanks

func HasBanks() predicate.Country

HasBanks applies the HasEdge predicate on the "banks" edge.

func HasBanksWith

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

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

func HasContactUsers

func HasContactUsers() predicate.Country

HasContactUsers applies the HasEdge predicate on the "contact_users" edge.

func HasContactUsersWith

func HasContactUsersWith(preds ...predicate.User) predicate.Country

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

func HasLocations

func HasLocations() predicate.Country

HasLocations applies the HasEdge predicate on the "locations" edge.

func HasLocationsWith

func HasLocationsWith(preds ...predicate.CountryLocation) predicate.Country

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

func HasUsers

func HasUsers() predicate.Country

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

func HasUsersWith

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

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

func ID

func ID(id uint64) predicate.Country

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Country

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Country

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Country

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Country

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Country

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Country

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Iso2

func Iso2(v string) predicate.Country

Iso2 applies equality check predicate on the "iso2" field. It's identical to Iso2EQ.

func Iso2Contains

func Iso2Contains(v string) predicate.Country

Iso2Contains applies the Contains predicate on the "iso2" field.

func Iso2ContainsFold

func Iso2ContainsFold(v string) predicate.Country

Iso2ContainsFold applies the ContainsFold predicate on the "iso2" field.

func Iso2EQ

func Iso2EQ(v string) predicate.Country

Iso2EQ applies the EQ predicate on the "iso2" field.

func Iso2EqualFold

func Iso2EqualFold(v string) predicate.Country

Iso2EqualFold applies the EqualFold predicate on the "iso2" field.

func Iso2GT

func Iso2GT(v string) predicate.Country

Iso2GT applies the GT predicate on the "iso2" field.

func Iso2GTE

func Iso2GTE(v string) predicate.Country

Iso2GTE applies the GTE predicate on the "iso2" field.

func Iso2HasPrefix

func Iso2HasPrefix(v string) predicate.Country

Iso2HasPrefix applies the HasPrefix predicate on the "iso2" field.

func Iso2HasSuffix

func Iso2HasSuffix(v string) predicate.Country

Iso2HasSuffix applies the HasSuffix predicate on the "iso2" field.

func Iso2In

func Iso2In(vs ...string) predicate.Country

Iso2In applies the In predicate on the "iso2" field.

func Iso2LT

func Iso2LT(v string) predicate.Country

Iso2LT applies the LT predicate on the "iso2" field.

func Iso2LTE

func Iso2LTE(v string) predicate.Country

Iso2LTE applies the LTE predicate on the "iso2" field.

func Iso2NEQ

func Iso2NEQ(v string) predicate.Country

Iso2NEQ applies the NEQ predicate on the "iso2" field.

func Iso2NotIn

func Iso2NotIn(vs ...string) predicate.Country

Iso2NotIn applies the NotIn predicate on the "iso2" field.

func Iso3

func Iso3(v string) predicate.Country

Iso3 applies equality check predicate on the "iso3" field. It's identical to Iso3EQ.

func Iso3Contains

func Iso3Contains(v string) predicate.Country

Iso3Contains applies the Contains predicate on the "iso3" field.

func Iso3ContainsFold

func Iso3ContainsFold(v string) predicate.Country

Iso3ContainsFold applies the ContainsFold predicate on the "iso3" field.

func Iso3EQ

func Iso3EQ(v string) predicate.Country

Iso3EQ applies the EQ predicate on the "iso3" field.

func Iso3EqualFold

func Iso3EqualFold(v string) predicate.Country

Iso3EqualFold applies the EqualFold predicate on the "iso3" field.

func Iso3GT

func Iso3GT(v string) predicate.Country

Iso3GT applies the GT predicate on the "iso3" field.

func Iso3GTE

func Iso3GTE(v string) predicate.Country

Iso3GTE applies the GTE predicate on the "iso3" field.

func Iso3HasPrefix

func Iso3HasPrefix(v string) predicate.Country

Iso3HasPrefix applies the HasPrefix predicate on the "iso3" field.

func Iso3HasSuffix

func Iso3HasSuffix(v string) predicate.Country

Iso3HasSuffix applies the HasSuffix predicate on the "iso3" field.

func Iso3In

func Iso3In(vs ...string) predicate.Country

Iso3In applies the In predicate on the "iso3" field.

func Iso3LT

func Iso3LT(v string) predicate.Country

Iso3LT applies the LT predicate on the "iso3" field.

func Iso3LTE

func Iso3LTE(v string) predicate.Country

Iso3LTE applies the LTE predicate on the "iso3" field.

func Iso3NEQ

func Iso3NEQ(v string) predicate.Country

Iso3NEQ applies the NEQ predicate on the "iso3" field.

func Iso3NotIn

func Iso3NotIn(vs ...string) predicate.Country

Iso3NotIn applies the NotIn predicate on the "iso3" field.

func Name

func Name(v string) predicate.Country

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

func NameContains

func NameContains(v string) predicate.Country

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

func NameContainsFold

func NameContainsFold(v string) predicate.Country

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

func NameEQ

func NameEQ(v string) predicate.Country

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

func NameEqualFold

func NameEqualFold(v string) predicate.Country

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

func NameGT

func NameGT(v string) predicate.Country

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

func NameGTE

func NameGTE(v string) predicate.Country

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Country

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Country

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Country

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

func NameLTE

func NameLTE(v string) predicate.Country

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

func NameNEQ

func NameNEQ(v string) predicate.Country

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func NumericCode

func NumericCode(v string) predicate.Country

NumericCode applies equality check predicate on the "numeric_code" field. It's identical to NumericCodeEQ.

func NumericCodeContains

func NumericCodeContains(v string) predicate.Country

NumericCodeContains applies the Contains predicate on the "numeric_code" field.

func NumericCodeContainsFold

func NumericCodeContainsFold(v string) predicate.Country

NumericCodeContainsFold applies the ContainsFold predicate on the "numeric_code" field.

func NumericCodeEQ

func NumericCodeEQ(v string) predicate.Country

NumericCodeEQ applies the EQ predicate on the "numeric_code" field.

func NumericCodeEqualFold

func NumericCodeEqualFold(v string) predicate.Country

NumericCodeEqualFold applies the EqualFold predicate on the "numeric_code" field.

func NumericCodeGT

func NumericCodeGT(v string) predicate.Country

NumericCodeGT applies the GT predicate on the "numeric_code" field.

func NumericCodeGTE

func NumericCodeGTE(v string) predicate.Country

NumericCodeGTE applies the GTE predicate on the "numeric_code" field.

func NumericCodeHasPrefix

func NumericCodeHasPrefix(v string) predicate.Country

NumericCodeHasPrefix applies the HasPrefix predicate on the "numeric_code" field.

func NumericCodeHasSuffix

func NumericCodeHasSuffix(v string) predicate.Country

NumericCodeHasSuffix applies the HasSuffix predicate on the "numeric_code" field.

func NumericCodeIn

func NumericCodeIn(vs ...string) predicate.Country

NumericCodeIn applies the In predicate on the "numeric_code" field.

func NumericCodeIsNil

func NumericCodeIsNil() predicate.Country

NumericCodeIsNil applies the IsNil predicate on the "numeric_code" field.

func NumericCodeLT

func NumericCodeLT(v string) predicate.Country

NumericCodeLT applies the LT predicate on the "numeric_code" field.

func NumericCodeLTE

func NumericCodeLTE(v string) predicate.Country

NumericCodeLTE applies the LTE predicate on the "numeric_code" field.

func NumericCodeNEQ

func NumericCodeNEQ(v string) predicate.Country

NumericCodeNEQ applies the NEQ predicate on the "numeric_code" field.

func NumericCodeNotIn

func NumericCodeNotIn(vs ...string) predicate.Country

NumericCodeNotIn applies the NotIn predicate on the "numeric_code" field.

func NumericCodeNotNil

func NumericCodeNotNil() predicate.Country

NumericCodeNotNil applies the NotNil predicate on the "numeric_code" field.

func OfficialName

func OfficialName(v string) predicate.Country

OfficialName applies equality check predicate on the "official_name" field. It's identical to OfficialNameEQ.

func OfficialNameContains

func OfficialNameContains(v string) predicate.Country

OfficialNameContains applies the Contains predicate on the "official_name" field.

func OfficialNameContainsFold

func OfficialNameContainsFold(v string) predicate.Country

OfficialNameContainsFold applies the ContainsFold predicate on the "official_name" field.

func OfficialNameEQ

func OfficialNameEQ(v string) predicate.Country

OfficialNameEQ applies the EQ predicate on the "official_name" field.

func OfficialNameEqualFold

func OfficialNameEqualFold(v string) predicate.Country

OfficialNameEqualFold applies the EqualFold predicate on the "official_name" field.

func OfficialNameGT

func OfficialNameGT(v string) predicate.Country

OfficialNameGT applies the GT predicate on the "official_name" field.

func OfficialNameGTE

func OfficialNameGTE(v string) predicate.Country

OfficialNameGTE applies the GTE predicate on the "official_name" field.

func OfficialNameHasPrefix

func OfficialNameHasPrefix(v string) predicate.Country

OfficialNameHasPrefix applies the HasPrefix predicate on the "official_name" field.

func OfficialNameHasSuffix

func OfficialNameHasSuffix(v string) predicate.Country

OfficialNameHasSuffix applies the HasSuffix predicate on the "official_name" field.

func OfficialNameIn

func OfficialNameIn(vs ...string) predicate.Country

OfficialNameIn applies the In predicate on the "official_name" field.

func OfficialNameIsNil

func OfficialNameIsNil() predicate.Country

OfficialNameIsNil applies the IsNil predicate on the "official_name" field.

func OfficialNameLT

func OfficialNameLT(v string) predicate.Country

OfficialNameLT applies the LT predicate on the "official_name" field.

func OfficialNameLTE

func OfficialNameLTE(v string) predicate.Country

OfficialNameLTE applies the LTE predicate on the "official_name" field.

func OfficialNameNEQ

func OfficialNameNEQ(v string) predicate.Country

OfficialNameNEQ applies the NEQ predicate on the "official_name" field.

func OfficialNameNotIn

func OfficialNameNotIn(vs ...string) predicate.Country

OfficialNameNotIn applies the NotIn predicate on the "official_name" field.

func OfficialNameNotNil

func OfficialNameNotNil() predicate.Country

OfficialNameNotNil applies the NotNil predicate on the "official_name" field.

func Or

func Or(predicates ...predicate.Country) predicate.Country

Or groups predicates with the OR operator between them.

func PhoneCode

func PhoneCode(v string) predicate.Country

PhoneCode applies equality check predicate on the "phone_code" field. It's identical to PhoneCodeEQ.

func PhoneCodeContains

func PhoneCodeContains(v string) predicate.Country

PhoneCodeContains applies the Contains predicate on the "phone_code" field.

func PhoneCodeContainsFold

func PhoneCodeContainsFold(v string) predicate.Country

PhoneCodeContainsFold applies the ContainsFold predicate on the "phone_code" field.

func PhoneCodeEQ

func PhoneCodeEQ(v string) predicate.Country

PhoneCodeEQ applies the EQ predicate on the "phone_code" field.

func PhoneCodeEqualFold

func PhoneCodeEqualFold(v string) predicate.Country

PhoneCodeEqualFold applies the EqualFold predicate on the "phone_code" field.

func PhoneCodeGT

func PhoneCodeGT(v string) predicate.Country

PhoneCodeGT applies the GT predicate on the "phone_code" field.

func PhoneCodeGTE

func PhoneCodeGTE(v string) predicate.Country

PhoneCodeGTE applies the GTE predicate on the "phone_code" field.

func PhoneCodeHasPrefix

func PhoneCodeHasPrefix(v string) predicate.Country

PhoneCodeHasPrefix applies the HasPrefix predicate on the "phone_code" field.

func PhoneCodeHasSuffix

func PhoneCodeHasSuffix(v string) predicate.Country

PhoneCodeHasSuffix applies the HasSuffix predicate on the "phone_code" field.

func PhoneCodeIn

func PhoneCodeIn(vs ...string) predicate.Country

PhoneCodeIn applies the In predicate on the "phone_code" field.

func PhoneCodeIsNil

func PhoneCodeIsNil() predicate.Country

PhoneCodeIsNil applies the IsNil predicate on the "phone_code" field.

func PhoneCodeLT

func PhoneCodeLT(v string) predicate.Country

PhoneCodeLT applies the LT predicate on the "phone_code" field.

func PhoneCodeLTE

func PhoneCodeLTE(v string) predicate.Country

PhoneCodeLTE applies the LTE predicate on the "phone_code" field.

func PhoneCodeNEQ

func PhoneCodeNEQ(v string) predicate.Country

PhoneCodeNEQ applies the NEQ predicate on the "phone_code" field.

func PhoneCodeNotIn

func PhoneCodeNotIn(vs ...string) predicate.Country

PhoneCodeNotIn applies the NotIn predicate on the "phone_code" field.

func PhoneCodeNotNil

func PhoneCodeNotNil() predicate.Country

PhoneCodeNotNil applies the NotNil predicate on the "phone_code" field.

func Status

func Status(v uint8) predicate.Country

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v uint8) predicate.Country

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v uint8) predicate.Country

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v uint8) predicate.Country

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...uint8) predicate.Country

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v uint8) predicate.Country

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v uint8) predicate.Country

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v uint8) predicate.Country

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...uint8) predicate.Country

StatusNotIn applies the NotIn predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Country

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Country

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Country

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Country

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Country

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Country

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Country

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

func UpdatedAtNotIn

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

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 Country queries.

func ByBanks

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

ByBanks orders the results by banks terms.

func ByBanksCount

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

ByBanksCount orders the results by banks count.

func ByCapital

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

ByCapital orders the results by the capital field.

func ByContactUsers

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

ByContactUsers orders the results by contact_users terms.

func ByContactUsersCount

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

ByContactUsersCount orders the results by contact_users count.

func ByConversionRate

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

ByConversionRate orders the results by the conversion_rate field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCurrencyCode

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

ByCurrencyCode orders the results by the currency_code field.

func ByCurrencyName

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

ByCurrencyName orders the results by the currency_name field.

func ByCurrencySymbol

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

ByCurrencySymbol orders the results by the currency_symbol field.

func ByID

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

ByID orders the results by the id field.

func ByIso2

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

ByIso2 orders the results by the iso2 field.

func ByIso3

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

ByIso3 orders the results by the iso3 field.

func ByLocations

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

ByLocations orders the results by locations terms.

func ByLocationsCount

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

ByLocationsCount orders the results by locations count.

func ByName

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

ByName orders the results by the name field.

func ByNumericCode

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

ByNumericCode orders the results by the numeric_code field.

func ByOfficialName

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

ByOfficialName orders the results by the official_name field.

func ByPhoneCode

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

ByPhoneCode orders the results by the phone_code field.

func ByStatus

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

ByStatus orders the results by the status 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