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 CreatedAtIsNil() 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 CreatedAtNotNil() predicate.Tenant
- func DeletedAt(v time.Time) predicate.Tenant
- func DeletedAtEQ(v time.Time) predicate.Tenant
- func DeletedAtGT(v time.Time) predicate.Tenant
- func DeletedAtGTE(v time.Time) predicate.Tenant
- func DeletedAtIn(vs ...time.Time) predicate.Tenant
- func DeletedAtIsNil() predicate.Tenant
- func DeletedAtLT(v time.Time) predicate.Tenant
- func DeletedAtLTE(v time.Time) predicate.Tenant
- func DeletedAtNEQ(v time.Time) predicate.Tenant
- func DeletedAtNotIn(vs ...time.Time) predicate.Tenant
- func DeletedAtNotNil() predicate.Tenant
- func ID(id uint32) predicate.Tenant
- func IDEQ(id uint32) predicate.Tenant
- func IDGT(id uint32) predicate.Tenant
- func IDGTE(id uint32) predicate.Tenant
- func IDIn(ids ...uint32) predicate.Tenant
- func IDLT(id uint32) predicate.Tenant
- func IDLTE(id uint32) predicate.Tenant
- func IDNEQ(id uint32) predicate.Tenant
- func IDNotIn(ids ...uint32) 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 Remark(v string) predicate.Tenant
- func RemarkContains(v string) predicate.Tenant
- func RemarkContainsFold(v string) predicate.Tenant
- func RemarkEQ(v string) predicate.Tenant
- func RemarkEqualFold(v string) predicate.Tenant
- func RemarkGT(v string) predicate.Tenant
- func RemarkGTE(v string) predicate.Tenant
- func RemarkHasPrefix(v string) predicate.Tenant
- func RemarkHasSuffix(v string) predicate.Tenant
- func RemarkIn(vs ...string) predicate.Tenant
- func RemarkIsNil() predicate.Tenant
- func RemarkLT(v string) predicate.Tenant
- func RemarkLTE(v string) predicate.Tenant
- func RemarkNEQ(v string) predicate.Tenant
- func RemarkNotIn(vs ...string) predicate.Tenant
- func RemarkNotNil() predicate.Tenant
- func Sort(v int32) predicate.Tenant
- func SortEQ(v int32) predicate.Tenant
- func SortGT(v int32) predicate.Tenant
- func SortGTE(v int32) predicate.Tenant
- func SortIn(vs ...int32) predicate.Tenant
- func SortLT(v int32) predicate.Tenant
- func SortLTE(v int32) predicate.Tenant
- func SortNEQ(v int32) predicate.Tenant
- func SortNotIn(vs ...int32) predicate.Tenant
- func State(v int32) predicate.Tenant
- func StateEQ(v int32) predicate.Tenant
- func StateGT(v int32) predicate.Tenant
- func StateGTE(v int32) predicate.Tenant
- func StateIn(vs ...int32) predicate.Tenant
- func StateLT(v int32) predicate.Tenant
- func StateLTE(v int32) predicate.Tenant
- func StateNEQ(v int32) predicate.Tenant
- func StateNotIn(vs ...int32) 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 UpdatedAtIsNil() 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 UpdatedAtNotNil() predicate.Tenant
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func ByState(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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldName holds the string denoting the name field in the database. FieldName = "name" // Table holds the table name of the tenant in the database. Table = "tenants" )
Variables ¶
var ( // DefaultRemark holds the default value on creation for the "remark" field. DefaultRemark string // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int32 // SortValidator is a validator for the "sort" field. It is called by the builders before save. SortValidator func(int32) error // DefaultState holds the default value on creation for the "state" field. DefaultState int32 // StateValidator is a validator for the "state" field. It is called by the builders before save. StateValidator func(int32) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(uint32) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldRemark, FieldSort, FieldState, FieldName, }
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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" 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 Remark ¶
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEqualFold ¶
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkHasPrefix ¶
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkIsNil ¶
RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkNotIn ¶
RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotNil ¶
RemarkNotNil applies the NotNil predicate on the "remark" field.
func State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at 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 ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func BySort ¶
func BySort(opts ...sql.OrderTermOption) OrderOption
BySort orders the results by the sort field.
func ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.