regions

package
v0.0.0-...-5192d11 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the regions type in the database.
	Label = "regions"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "region_id"
	// FieldRegionName holds the string denoting the region_name field in the database.
	FieldRegionName = "region_name"
	// Table holds the table name of the regions in the database.
	Table = "regions"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldRegionName,
}

Columns holds all SQL columns for regions fields.

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

Functions

func And

func And(predicates ...predicate.Regions) predicate.Regions

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Regions

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Regions

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Regions

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Regions

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Regions

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Regions

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Regions

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Regions) predicate.Regions

Or groups predicates with the OR operator between them.

func RegionName

func RegionName(v string) predicate.Regions

RegionName applies equality check predicate on the "region_name" field. It's identical to RegionNameEQ.

func RegionNameContains

func RegionNameContains(v string) predicate.Regions

RegionNameContains applies the Contains predicate on the "region_name" field.

func RegionNameContainsFold

func RegionNameContainsFold(v string) predicate.Regions

RegionNameContainsFold applies the ContainsFold predicate on the "region_name" field.

func RegionNameEQ

func RegionNameEQ(v string) predicate.Regions

RegionNameEQ applies the EQ predicate on the "region_name" field.

func RegionNameEqualFold

func RegionNameEqualFold(v string) predicate.Regions

RegionNameEqualFold applies the EqualFold predicate on the "region_name" field.

func RegionNameGT

func RegionNameGT(v string) predicate.Regions

RegionNameGT applies the GT predicate on the "region_name" field.

func RegionNameGTE

func RegionNameGTE(v string) predicate.Regions

RegionNameGTE applies the GTE predicate on the "region_name" field.

func RegionNameHasPrefix

func RegionNameHasPrefix(v string) predicate.Regions

RegionNameHasPrefix applies the HasPrefix predicate on the "region_name" field.

func RegionNameHasSuffix

func RegionNameHasSuffix(v string) predicate.Regions

RegionNameHasSuffix applies the HasSuffix predicate on the "region_name" field.

func RegionNameIn

func RegionNameIn(vs ...string) predicate.Regions

RegionNameIn applies the In predicate on the "region_name" field.

func RegionNameLT

func RegionNameLT(v string) predicate.Regions

RegionNameLT applies the LT predicate on the "region_name" field.

func RegionNameLTE

func RegionNameLTE(v string) predicate.Regions

RegionNameLTE applies the LTE predicate on the "region_name" field.

func RegionNameNEQ

func RegionNameNEQ(v string) predicate.Regions

RegionNameNEQ applies the NEQ predicate on the "region_name" field.

func RegionNameNotIn

func RegionNameNotIn(vs ...string) predicate.Regions

RegionNameNotIn applies the NotIn predicate on the "region_name" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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