Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tenant) predicate.Tenant
- func CreateTime(v time.Time) predicate.Tenant
- func CreateTimeEQ(v time.Time) predicate.Tenant
- func CreateTimeGT(v time.Time) predicate.Tenant
- func CreateTimeGTE(v time.Time) predicate.Tenant
- func CreateTimeIn(vs ...time.Time) predicate.Tenant
- func CreateTimeLT(v time.Time) predicate.Tenant
- func CreateTimeLTE(v time.Time) predicate.Tenant
- func CreateTimeNEQ(v time.Time) predicate.Tenant
- func CreateTimeNotIn(vs ...time.Time) predicate.Tenant
- func DisplayName(v string) predicate.Tenant
- func DisplayNameContains(v string) predicate.Tenant
- func DisplayNameContainsFold(v string) predicate.Tenant
- func DisplayNameEQ(v string) predicate.Tenant
- func DisplayNameEqualFold(v string) predicate.Tenant
- func DisplayNameGT(v string) predicate.Tenant
- func DisplayNameGTE(v string) predicate.Tenant
- func DisplayNameHasPrefix(v string) predicate.Tenant
- func DisplayNameHasSuffix(v string) predicate.Tenant
- func DisplayNameIn(vs ...string) predicate.Tenant
- func DisplayNameIsNil() predicate.Tenant
- func DisplayNameLT(v string) predicate.Tenant
- func DisplayNameLTE(v string) predicate.Tenant
- func DisplayNameNEQ(v string) predicate.Tenant
- func DisplayNameNotIn(vs ...string) predicate.Tenant
- func DisplayNameNotNil() predicate.Tenant
- func HasConn() predicate.Tenant
- func HasConnWith(preds ...predicate.TenantConn) predicate.Tenant
- func ID(id int) predicate.Tenant
- func IDEQ(id int) predicate.Tenant
- func IDGT(id int) predicate.Tenant
- func IDGTE(id int) predicate.Tenant
- func IDIn(ids ...int) predicate.Tenant
- func IDLT(id int) predicate.Tenant
- func IDLTE(id int) predicate.Tenant
- func IDNEQ(id int) predicate.Tenant
- func IDNotIn(ids ...int) predicate.Tenant
- func Name(v string) predicate.Tenant
- func NameContains(v string) predicate.Tenant
- func NameContainsFold(v string) predicate.Tenant
- func NameEQ(v string) predicate.Tenant
- func NameEqualFold(v string) predicate.Tenant
- func NameGT(v string) predicate.Tenant
- func NameGTE(v string) predicate.Tenant
- func NameHasPrefix(v string) predicate.Tenant
- func NameHasSuffix(v string) predicate.Tenant
- func NameIn(vs ...string) predicate.Tenant
- func NameLT(v string) predicate.Tenant
- func NameLTE(v string) predicate.Tenant
- func NameNEQ(v string) predicate.Tenant
- func NameNotIn(vs ...string) predicate.Tenant
- func Not(p predicate.Tenant) predicate.Tenant
- func Or(predicates ...predicate.Tenant) predicate.Tenant
- func Region(v string) predicate.Tenant
- func RegionContains(v string) predicate.Tenant
- func RegionContainsFold(v string) predicate.Tenant
- func RegionEQ(v string) predicate.Tenant
- func RegionEqualFold(v string) predicate.Tenant
- func RegionGT(v string) predicate.Tenant
- func RegionGTE(v string) predicate.Tenant
- func RegionHasPrefix(v string) predicate.Tenant
- func RegionHasSuffix(v string) predicate.Tenant
- func RegionIn(vs ...string) predicate.Tenant
- func RegionIsNil() predicate.Tenant
- func RegionLT(v string) predicate.Tenant
- func RegionLTE(v string) predicate.Tenant
- func RegionNEQ(v string) predicate.Tenant
- func RegionNotIn(vs ...string) predicate.Tenant
- func RegionNotNil() predicate.Tenant
- func UpdateTime(v time.Time) predicate.Tenant
- func UpdateTimeEQ(v time.Time) predicate.Tenant
- func UpdateTimeGT(v time.Time) predicate.Tenant
- func UpdateTimeGTE(v time.Time) predicate.Tenant
- func UpdateTimeIn(vs ...time.Time) predicate.Tenant
- func UpdateTimeLT(v time.Time) predicate.Tenant
- func UpdateTimeLTE(v time.Time) predicate.Tenant
- func UpdateTimeNEQ(v time.Time) predicate.Tenant
- func UpdateTimeNotIn(vs ...time.Time) predicate.Tenant
- func ValidColumn(column string) bool
- type OrderOption
- func ByConn(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByConnCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRegion(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldDisplayName, FieldRegion, }
Columns holds all SQL columns for tenant fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "display_name" field.
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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Region ¶
Region applies equality check predicate on the "region" field. It's identical to RegionEQ.
func RegionContains ¶
RegionContains applies the Contains predicate on the "region" field.
func RegionContainsFold ¶
RegionContainsFold applies the ContainsFold predicate on the "region" field.
func RegionEqualFold ¶
RegionEqualFold applies the EqualFold predicate on the "region" field.
func RegionHasPrefix ¶
RegionHasPrefix applies the HasPrefix predicate on the "region" field.
func RegionHasSuffix ¶
RegionHasSuffix applies the HasSuffix predicate on the "region" field.
func RegionIsNil ¶
RegionIsNil applies the IsNil predicate on the "region" field.
func RegionNotIn ¶
RegionNotIn applies the NotIn predicate on the "region" field.
func RegionNotNil ¶
RegionNotNil applies the NotNil predicate on the "region" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 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.