Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Setting) predicate.Setting
- func CreateTime(v time.Time) predicate.Setting
- func CreateTimeEQ(v time.Time) predicate.Setting
- func CreateTimeGT(v time.Time) predicate.Setting
- func CreateTimeGTE(v time.Time) predicate.Setting
- func CreateTimeIn(vs ...time.Time) predicate.Setting
- func CreateTimeLT(v time.Time) predicate.Setting
- func CreateTimeLTE(v time.Time) predicate.Setting
- func CreateTimeNEQ(v time.Time) predicate.Setting
- func CreateTimeNotIn(vs ...time.Time) predicate.Setting
- func Editable(v bool) predicate.Setting
- func EditableEQ(v bool) predicate.Setting
- func EditableIsNil() predicate.Setting
- func EditableNEQ(v bool) predicate.Setting
- func EditableNotNil() predicate.Setting
- func Hidden(v bool) predicate.Setting
- func HiddenEQ(v bool) predicate.Setting
- func HiddenIsNil() predicate.Setting
- func HiddenNEQ(v bool) predicate.Setting
- func HiddenNotNil() predicate.Setting
- func ID(id object.ID) predicate.Setting
- func IDEQ(id object.ID) predicate.Setting
- func IDGT(id object.ID) predicate.Setting
- func IDGTE(id object.ID) predicate.Setting
- func IDIn(ids ...object.ID) predicate.Setting
- func IDLT(id object.ID) predicate.Setting
- func IDLTE(id object.ID) predicate.Setting
- func IDNEQ(id object.ID) predicate.Setting
- func IDNotIn(ids ...object.ID) predicate.Setting
- func Name(v string) predicate.Setting
- func NameContains(v string) predicate.Setting
- func NameContainsFold(v string) predicate.Setting
- func NameEQ(v string) predicate.Setting
- func NameEqualFold(v string) predicate.Setting
- func NameGT(v string) predicate.Setting
- func NameGTE(v string) predicate.Setting
- func NameHasPrefix(v string) predicate.Setting
- func NameHasSuffix(v string) predicate.Setting
- func NameIn(vs ...string) predicate.Setting
- func NameLT(v string) predicate.Setting
- func NameLTE(v string) predicate.Setting
- func NameNEQ(v string) predicate.Setting
- func NameNotIn(vs ...string) predicate.Setting
- func Not(p predicate.Setting) predicate.Setting
- func Or(predicates ...predicate.Setting) predicate.Setting
- func Private(v bool) predicate.Setting
- func PrivateEQ(v bool) predicate.Setting
- func PrivateIsNil() predicate.Setting
- func PrivateNEQ(v bool) predicate.Setting
- func PrivateNotNil() predicate.Setting
- func Sensitive(v bool) predicate.Setting
- func SensitiveEQ(v bool) predicate.Setting
- func SensitiveIsNil() predicate.Setting
- func SensitiveNEQ(v bool) predicate.Setting
- func SensitiveNotNil() predicate.Setting
- func UpdateTime(v time.Time) predicate.Setting
- func UpdateTimeEQ(v time.Time) predicate.Setting
- func UpdateTimeGT(v time.Time) predicate.Setting
- func UpdateTimeGTE(v time.Time) predicate.Setting
- func UpdateTimeIn(vs ...time.Time) predicate.Setting
- func UpdateTimeLT(v time.Time) predicate.Setting
- func UpdateTimeLTE(v time.Time) predicate.Setting
- func UpdateTimeNEQ(v time.Time) predicate.Setting
- func UpdateTimeNotIn(vs ...time.Time) predicate.Setting
- func ValidColumn(column string) bool
- func Value(v crypto.String) predicate.Setting
- func ValueContains(v crypto.String) predicate.Setting
- func ValueContainsFold(v crypto.String) predicate.Setting
- func ValueEQ(v crypto.String) predicate.Setting
- func ValueEqualFold(v crypto.String) predicate.Setting
- func ValueGT(v crypto.String) predicate.Setting
- func ValueGTE(v crypto.String) predicate.Setting
- func ValueHasPrefix(v crypto.String) predicate.Setting
- func ValueHasSuffix(v crypto.String) predicate.Setting
- func ValueIn(vs ...crypto.String) predicate.Setting
- func ValueLT(v crypto.String) predicate.Setting
- func ValueLTE(v crypto.String) predicate.Setting
- func ValueNEQ(v crypto.String) predicate.Setting
- func ValueNotIn(vs ...crypto.String) predicate.Setting
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByEditable(opts ...sql.OrderTermOption) OrderOption
- func ByHidden(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPrivate(opts ...sql.OrderTermOption) OrderOption
- func BySensitive(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByValue(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the setting type in the database. Label = "setting" // 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" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldHidden holds the string denoting the hidden field in the database. FieldHidden = "hidden" // FieldEditable holds the string denoting the editable field in the database. FieldEditable = "editable" // FieldSensitive holds the string denoting the sensitive field in the database. FieldSensitive = "sensitive" // FieldPrivate holds the string denoting the private field in the database. FieldPrivate = "private" // Table holds the table name of the setting in the database. Table = "settings" )
Variables ¶
var ( Hooks [1]ent.Hook // 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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultHidden holds the default value on creation for the "hidden" field. DefaultHidden bool // DefaultEditable holds the default value on creation for the "editable" field. DefaultEditable bool // DefaultSensitive holds the default value on creation for the "sensitive" field. DefaultSensitive bool // DefaultPrivate holds the default value on creation for the "private" field. DefaultPrivate bool )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/seal-io/walrus/pkg/dao/model/runtime"
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldValue, FieldHidden, FieldEditable, FieldSensitive, FieldPrivate, }
Columns holds all SQL columns for setting 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 Editable ¶
Editable applies equality check predicate on the "editable" field. It's identical to EditableEQ.
func EditableEQ ¶
EditableEQ applies the EQ predicate on the "editable" field.
func EditableIsNil ¶
EditableIsNil applies the IsNil predicate on the "editable" field.
func EditableNEQ ¶
EditableNEQ applies the NEQ predicate on the "editable" field.
func EditableNotNil ¶
EditableNotNil applies the NotNil predicate on the "editable" field.
func Hidden ¶
Hidden applies equality check predicate on the "hidden" field. It's identical to HiddenEQ.
func HiddenIsNil ¶
HiddenIsNil applies the IsNil predicate on the "hidden" field.
func HiddenNotNil ¶
HiddenNotNil applies the NotNil predicate on the "hidden" 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 Private ¶
Private applies equality check predicate on the "private" field. It's identical to PrivateEQ.
func PrivateIsNil ¶
PrivateIsNil applies the IsNil predicate on the "private" field.
func PrivateNEQ ¶
PrivateNEQ applies the NEQ predicate on the "private" field.
func PrivateNotNil ¶
PrivateNotNil applies the NotNil predicate on the "private" field.
func Sensitive ¶
Sensitive applies equality check predicate on the "sensitive" field. It's identical to SensitiveEQ.
func SensitiveEQ ¶
SensitiveEQ applies the EQ predicate on the "sensitive" field.
func SensitiveIsNil ¶
SensitiveIsNil applies the IsNil predicate on the "sensitive" field.
func SensitiveNEQ ¶
SensitiveNEQ applies the NEQ predicate on the "sensitive" field.
func SensitiveNotNil ¶
SensitiveNotNil applies the NotNil predicate on the "sensitive" 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).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
func WithoutFields ¶
WithoutFields returns the fields ignored the given list.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Setting queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByEditable ¶
func ByEditable(opts ...sql.OrderTermOption) OrderOption
ByEditable orders the results by the editable field.
func ByHidden ¶
func ByHidden(opts ...sql.OrderTermOption) OrderOption
ByHidden orders the results by the hidden 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 ByPrivate ¶
func ByPrivate(opts ...sql.OrderTermOption) OrderOption
ByPrivate orders the results by the private field.
func BySensitive ¶
func BySensitive(opts ...sql.OrderTermOption) OrderOption
BySensitive orders the results by the sensitive field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.