tenant

package
v0.0.0-...-ad56753 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tenant type in the database.
	Label = "tenant"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldRegion holds the string denoting the region field in the database.
	FieldRegion = "region"
	// EdgeConn holds the string denoting the conn edge name in mutations.
	EdgeConn = "conn"
	// Table holds the table name of the tenant in the database.
	Table = "tenants"
	// ConnTable is the table that holds the conn relation/edge.
	ConnTable = "tenant_conns"
	// ConnInverseTable is the table name for the TenantConn entity.
	// It exists in this package in order to avoid circular dependency with the "tenantconn" package.
	ConnInverseTable = "tenant_conns"
	// ConnColumn is the table column denoting the conn relation/edge.
	ConnColumn = "tenant_conn"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
)

Columns holds all SQL columns for tenant fields.

Functions

func And

func And(predicates ...predicate.Tenant) predicate.Tenant

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Tenant

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Tenant

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Tenant

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Tenant

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Tenant

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Tenant

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Tenant

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Tenant

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Tenant

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func DisplayName

func DisplayName(v string) predicate.Tenant

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Tenant

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Tenant

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Tenant

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Tenant

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Tenant

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Tenant

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Tenant

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Tenant

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Tenant

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameIsNil

func DisplayNameIsNil() predicate.Tenant

DisplayNameIsNil applies the IsNil predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Tenant

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Tenant

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Tenant

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Tenant

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func DisplayNameNotNil

func DisplayNameNotNil() predicate.Tenant

DisplayNameNotNil applies the NotNil predicate on the "display_name" field.

func HasConn

func HasConn() predicate.Tenant

HasConn applies the HasEdge predicate on the "conn" edge.

func HasConnWith

func HasConnWith(preds ...predicate.TenantConn) predicate.Tenant

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

func ID

func ID(id int) predicate.Tenant

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tenant

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tenant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tenant

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tenant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tenant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tenant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Tenant

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

func NameContains

func NameContains(v string) predicate.Tenant

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

func NameContainsFold

func NameContainsFold(v string) predicate.Tenant

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

func NameEQ

func NameEQ(v string) predicate.Tenant

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

func NameEqualFold

func NameEqualFold(v string) predicate.Tenant

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

func NameGT

func NameGT(v string) predicate.Tenant

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

func NameGTE

func NameGTE(v string) predicate.Tenant

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Tenant

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Tenant

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Tenant

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

func NameLTE

func NameLTE(v string) predicate.Tenant

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

func NameNEQ

func NameNEQ(v string) predicate.Tenant

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tenant) predicate.Tenant

Or groups predicates with the OR operator between them.

func Region

func Region(v string) predicate.Tenant

Region applies equality check predicate on the "region" field. It's identical to RegionEQ.

func RegionContains

func RegionContains(v string) predicate.Tenant

RegionContains applies the Contains predicate on the "region" field.

func RegionContainsFold

func RegionContainsFold(v string) predicate.Tenant

RegionContainsFold applies the ContainsFold predicate on the "region" field.

func RegionEQ

func RegionEQ(v string) predicate.Tenant

RegionEQ applies the EQ predicate on the "region" field.

func RegionEqualFold

func RegionEqualFold(v string) predicate.Tenant

RegionEqualFold applies the EqualFold predicate on the "region" field.

func RegionGT

func RegionGT(v string) predicate.Tenant

RegionGT applies the GT predicate on the "region" field.

func RegionGTE

func RegionGTE(v string) predicate.Tenant

RegionGTE applies the GTE predicate on the "region" field.

func RegionHasPrefix

func RegionHasPrefix(v string) predicate.Tenant

RegionHasPrefix applies the HasPrefix predicate on the "region" field.

func RegionHasSuffix

func RegionHasSuffix(v string) predicate.Tenant

RegionHasSuffix applies the HasSuffix predicate on the "region" field.

func RegionIn

func RegionIn(vs ...string) predicate.Tenant

RegionIn applies the In predicate on the "region" field.

func RegionIsNil

func RegionIsNil() predicate.Tenant

RegionIsNil applies the IsNil predicate on the "region" field.

func RegionLT

func RegionLT(v string) predicate.Tenant

RegionLT applies the LT predicate on the "region" field.

func RegionLTE

func RegionLTE(v string) predicate.Tenant

RegionLTE applies the LTE predicate on the "region" field.

func RegionNEQ

func RegionNEQ(v string) predicate.Tenant

RegionNEQ applies the NEQ predicate on the "region" field.

func RegionNotIn

func RegionNotIn(vs ...string) predicate.Tenant

RegionNotIn applies the NotIn predicate on the "region" field.

func RegionNotNil

func RegionNotNil() predicate.Tenant

RegionNotNil applies the NotNil predicate on the "region" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Tenant

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Tenant

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Tenant

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Tenant

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Tenant

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Tenant

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Tenant

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Tenant

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Tenant

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Tenant queries.

func ByConn

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

ByConn orders the results by conn terms.

func ByConnCount

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

ByConnCount orders the results by conn count.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByDisplayName

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

ByDisplayName orders the results by the display_name field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByRegion

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

ByRegion orders the results by the region field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

Jump to

Keyboard shortcuts

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