Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tenant) predicate.Tenant
- func CreatedAt(v time.Time) predicate.Tenant
- func CreatedAtEQ(v time.Time) predicate.Tenant
- func CreatedAtGT(v time.Time) predicate.Tenant
- func CreatedAtGTE(v time.Time) predicate.Tenant
- func CreatedAtIn(vs ...time.Time) predicate.Tenant
- func CreatedAtLT(v time.Time) predicate.Tenant
- func CreatedAtLTE(v time.Time) predicate.Tenant
- func CreatedAtNEQ(v time.Time) predicate.Tenant
- func CreatedAtNotIn(vs ...time.Time) predicate.Tenant
- func Description(v string) predicate.Tenant
- func DescriptionContains(v string) predicate.Tenant
- func DescriptionContainsFold(v string) predicate.Tenant
- func DescriptionEQ(v string) predicate.Tenant
- func DescriptionEqualFold(v string) predicate.Tenant
- func DescriptionGT(v string) predicate.Tenant
- func DescriptionGTE(v string) predicate.Tenant
- func DescriptionHasPrefix(v string) predicate.Tenant
- func DescriptionHasSuffix(v string) predicate.Tenant
- func DescriptionIn(vs ...string) predicate.Tenant
- func DescriptionIsNil() predicate.Tenant
- func DescriptionLT(v string) predicate.Tenant
- func DescriptionLTE(v string) predicate.Tenant
- func DescriptionNEQ(v string) predicate.Tenant
- func DescriptionNotIn(vs ...string) predicate.Tenant
- func DescriptionNotNil() predicate.Tenant
- func HasChildren() predicate.Tenant
- func HasChildrenWith(preds ...predicate.Tenant) predicate.Tenant
- func HasParent() predicate.Tenant
- func HasParentWith(preds ...predicate.Tenant) predicate.Tenant
- func ID(id gidx.PrefixedID) predicate.Tenant
- func IDEQ(id gidx.PrefixedID) predicate.Tenant
- func IDGT(id gidx.PrefixedID) predicate.Tenant
- func IDGTE(id gidx.PrefixedID) predicate.Tenant
- func IDIn(ids ...gidx.PrefixedID) predicate.Tenant
- func IDLT(id gidx.PrefixedID) predicate.Tenant
- func IDLTE(id gidx.PrefixedID) predicate.Tenant
- func IDNEQ(id gidx.PrefixedID) predicate.Tenant
- func IDNotIn(ids ...gidx.PrefixedID) 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 ParentTenantID(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDContains(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDContainsFold(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDEQ(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDEqualFold(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDGT(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDGTE(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDHasPrefix(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDHasSuffix(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDIn(vs ...gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDIsNil() predicate.Tenant
- func ParentTenantIDLT(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDLTE(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDNEQ(v gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDNotIn(vs ...gidx.PrefixedID) predicate.Tenant
- func ParentTenantIDNotNil() predicate.Tenant
- func UpdatedAt(v time.Time) predicate.Tenant
- func UpdatedAtEQ(v time.Time) predicate.Tenant
- func UpdatedAtGT(v time.Time) predicate.Tenant
- func UpdatedAtGTE(v time.Time) predicate.Tenant
- func UpdatedAtIn(vs ...time.Time) predicate.Tenant
- func UpdatedAtLT(v time.Time) predicate.Tenant
- func UpdatedAtLTE(v time.Time) predicate.Tenant
- func UpdatedAtNEQ(v time.Time) predicate.Tenant
- func UpdatedAtNotIn(vs ...time.Time) predicate.Tenant
- func ValidColumn(column string) bool
- type OrderOption
- func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldParentTenantID holds the string denoting the parent_tenant_id field in the database. FieldParentTenantID = "parent_tenant_id" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // Table holds the table name of the tenant in the database. Table = "tenants" // ParentTable is the table that holds the parent relation/edge. ParentTable = "tenants" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_tenant_id" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "tenants" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_tenant_id" )
Variables ¶
var ( // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() gidx.PrefixedID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldParentTenantID, }
Columns holds all SQL columns for tenant fields.
Functions ¶
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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id gidx.PrefixedID) predicate.Tenant
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id gidx.PrefixedID) predicate.Tenant
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id gidx.PrefixedID) predicate.Tenant
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...gidx.PrefixedID) predicate.Tenant
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id gidx.PrefixedID) predicate.Tenant
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id gidx.PrefixedID) predicate.Tenant
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id gidx.PrefixedID) predicate.Tenant
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...gidx.PrefixedID) predicate.Tenant
IDNotIn applies the NotIn predicate on the ID field.
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 ParentTenantID ¶
func ParentTenantID(v gidx.PrefixedID) predicate.Tenant
ParentTenantID applies equality check predicate on the "parent_tenant_id" field. It's identical to ParentTenantIDEQ.
func ParentTenantIDContains ¶
func ParentTenantIDContains(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDContains applies the Contains predicate on the "parent_tenant_id" field.
func ParentTenantIDContainsFold ¶
func ParentTenantIDContainsFold(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDContainsFold applies the ContainsFold predicate on the "parent_tenant_id" field.
func ParentTenantIDEQ ¶
func ParentTenantIDEQ(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDEQ applies the EQ predicate on the "parent_tenant_id" field.
func ParentTenantIDEqualFold ¶
func ParentTenantIDEqualFold(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDEqualFold applies the EqualFold predicate on the "parent_tenant_id" field.
func ParentTenantIDGT ¶
func ParentTenantIDGT(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDGT applies the GT predicate on the "parent_tenant_id" field.
func ParentTenantIDGTE ¶
func ParentTenantIDGTE(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDGTE applies the GTE predicate on the "parent_tenant_id" field.
func ParentTenantIDHasPrefix ¶
func ParentTenantIDHasPrefix(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDHasPrefix applies the HasPrefix predicate on the "parent_tenant_id" field.
func ParentTenantIDHasSuffix ¶
func ParentTenantIDHasSuffix(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDHasSuffix applies the HasSuffix predicate on the "parent_tenant_id" field.
func ParentTenantIDIn ¶
func ParentTenantIDIn(vs ...gidx.PrefixedID) predicate.Tenant
ParentTenantIDIn applies the In predicate on the "parent_tenant_id" field.
func ParentTenantIDIsNil ¶
ParentTenantIDIsNil applies the IsNil predicate on the "parent_tenant_id" field.
func ParentTenantIDLT ¶
func ParentTenantIDLT(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDLT applies the LT predicate on the "parent_tenant_id" field.
func ParentTenantIDLTE ¶
func ParentTenantIDLTE(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDLTE applies the LTE predicate on the "parent_tenant_id" field.
func ParentTenantIDNEQ ¶
func ParentTenantIDNEQ(v gidx.PrefixedID) predicate.Tenant
ParentTenantIDNEQ applies the NEQ predicate on the "parent_tenant_id" field.
func ParentTenantIDNotIn ¶
func ParentTenantIDNotIn(vs ...gidx.PrefixedID) predicate.Tenant
ParentTenantIDNotIn applies the NotIn predicate on the "parent_tenant_id" field.
func ParentTenantIDNotNil ¶
ParentTenantIDNotNil applies the NotNil predicate on the "parent_tenant_id" 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 Tenant queries.
func ByChildren ¶
func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChildren orders the results by children terms.
func ByChildrenCount ¶
func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
ByChildrenCount orders the results by children count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description 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 ByParentField ¶
func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentField orders the results by parent field.
func ByParentTenantID ¶
func ByParentTenantID(opts ...sql.OrderTermOption) OrderOption
ByParentTenantID orders the results by the parent_tenant_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.