Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Setting) predicate.Setting
- func BaseURL(v string) predicate.Setting
- func BaseURLContains(v string) predicate.Setting
- func BaseURLContainsFold(v string) predicate.Setting
- func BaseURLEQ(v string) predicate.Setting
- func BaseURLEqualFold(v string) predicate.Setting
- func BaseURLGT(v string) predicate.Setting
- func BaseURLGTE(v string) predicate.Setting
- func BaseURLHasPrefix(v string) predicate.Setting
- func BaseURLHasSuffix(v string) predicate.Setting
- func BaseURLIn(vs ...string) predicate.Setting
- func BaseURLIsNil() predicate.Setting
- func BaseURLLT(v string) predicate.Setting
- func BaseURLLTE(v string) predicate.Setting
- func BaseURLNEQ(v string) predicate.Setting
- func BaseURLNotIn(vs ...string) predicate.Setting
- func BaseURLNotNil() predicate.Setting
- func CreatedAt(v time.Time) predicate.Setting
- func CreatedAtEQ(v time.Time) predicate.Setting
- func CreatedAtGT(v time.Time) predicate.Setting
- func CreatedAtGTE(v time.Time) predicate.Setting
- func CreatedAtIn(vs ...time.Time) predicate.Setting
- func CreatedAtLT(v time.Time) predicate.Setting
- func CreatedAtLTE(v time.Time) predicate.Setting
- func CreatedAtNEQ(v time.Time) predicate.Setting
- func CreatedAtNotIn(vs ...time.Time) predicate.Setting
- func CustomOauthIsNil() predicate.Setting
- func CustomOauthNotNil() predicate.Setting
- func DingtalkOauthIsNil() predicate.Setting
- func DingtalkOauthNotNil() predicate.Setting
- func DisablePasswordLogin(v bool) predicate.Setting
- func DisablePasswordLoginEQ(v bool) predicate.Setting
- func DisablePasswordLoginNEQ(v bool) predicate.Setting
- func EnableAutoLogin(v bool) predicate.Setting
- func EnableAutoLoginEQ(v bool) predicate.Setting
- func EnableAutoLoginNEQ(v bool) predicate.Setting
- func EnableSSO(v bool) predicate.Setting
- func EnableSSOEQ(v bool) predicate.Setting
- func EnableSSONEQ(v bool) predicate.Setting
- func ForceTwoFactorAuth(v bool) predicate.Setting
- func ForceTwoFactorAuthEQ(v bool) predicate.Setting
- func ForceTwoFactorAuthNEQ(v bool) predicate.Setting
- func ID(id uuid.UUID) predicate.Setting
- func IDEQ(id uuid.UUID) predicate.Setting
- func IDGT(id uuid.UUID) predicate.Setting
- func IDGTE(id uuid.UUID) predicate.Setting
- func IDIn(ids ...uuid.UUID) predicate.Setting
- func IDLT(id uuid.UUID) predicate.Setting
- func IDLTE(id uuid.UUID) predicate.Setting
- func IDNEQ(id uuid.UUID) predicate.Setting
- func IDNotIn(ids ...uuid.UUID) predicate.Setting
- func Not(p predicate.Setting) predicate.Setting
- func Or(predicates ...predicate.Setting) predicate.Setting
- func UpdatedAt(v time.Time) predicate.Setting
- func UpdatedAtEQ(v time.Time) predicate.Setting
- func UpdatedAtGT(v time.Time) predicate.Setting
- func UpdatedAtGTE(v time.Time) predicate.Setting
- func UpdatedAtIn(vs ...time.Time) predicate.Setting
- func UpdatedAtLT(v time.Time) predicate.Setting
- func UpdatedAtLTE(v time.Time) predicate.Setting
- func UpdatedAtNEQ(v time.Time) predicate.Setting
- func UpdatedAtNotIn(vs ...time.Time) predicate.Setting
- func ValidColumn(column string) bool
- type OrderOption
- func ByBaseURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisablePasswordLogin(opts ...sql.OrderTermOption) OrderOption
- func ByEnableAutoLogin(opts ...sql.OrderTermOption) OrderOption
- func ByEnableSSO(opts ...sql.OrderTermOption) OrderOption
- func ByForceTwoFactorAuth(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldEnableSSO holds the string denoting the enable_sso field in the database. FieldEnableSSO = "enable_sso" // FieldForceTwoFactorAuth holds the string denoting the force_two_factor_auth field in the database. FieldForceTwoFactorAuth = "force_two_factor_auth" // FieldDisablePasswordLogin holds the string denoting the disable_password_login field in the database. FieldDisablePasswordLogin = "disable_password_login" // FieldEnableAutoLogin holds the string denoting the enable_auto_login field in the database. FieldEnableAutoLogin = "enable_auto_login" // FieldDingtalkOauth holds the string denoting the dingtalk_oauth field in the database. FieldDingtalkOauth = "dingtalk_oauth" // FieldCustomOauth holds the string denoting the custom_oauth field in the database. FieldCustomOauth = "custom_oauth" // FieldBaseURL holds the string denoting the base_url field in the database. FieldBaseURL = "base_url" // 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" // Table holds the table name of the setting in the database. Table = "settings" )
Variables ¶
var ( // DefaultEnableSSO holds the default value on creation for the "enable_sso" field. DefaultEnableSSO bool // DefaultForceTwoFactorAuth holds the default value on creation for the "force_two_factor_auth" field. DefaultForceTwoFactorAuth bool // DefaultDisablePasswordLogin holds the default value on creation for the "disable_password_login" field. DefaultDisablePasswordLogin bool // DefaultEnableAutoLogin holds the default value on creation for the "enable_auto_login" field. DefaultEnableAutoLogin bool // 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 )
var Columns = []string{ FieldID, FieldEnableSSO, FieldForceTwoFactorAuth, FieldDisablePasswordLogin, FieldEnableAutoLogin, FieldDingtalkOauth, FieldCustomOauth, FieldBaseURL, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for setting fields.
Functions ¶
func BaseURL ¶
BaseURL applies equality check predicate on the "base_url" field. It's identical to BaseURLEQ.
func BaseURLContains ¶
BaseURLContains applies the Contains predicate on the "base_url" field.
func BaseURLContainsFold ¶
BaseURLContainsFold applies the ContainsFold predicate on the "base_url" field.
func BaseURLEqualFold ¶
BaseURLEqualFold applies the EqualFold predicate on the "base_url" field.
func BaseURLGTE ¶
BaseURLGTE applies the GTE predicate on the "base_url" field.
func BaseURLHasPrefix ¶
BaseURLHasPrefix applies the HasPrefix predicate on the "base_url" field.
func BaseURLHasSuffix ¶
BaseURLHasSuffix applies the HasSuffix predicate on the "base_url" field.
func BaseURLIsNil ¶
BaseURLIsNil applies the IsNil predicate on the "base_url" field.
func BaseURLLTE ¶
BaseURLLTE applies the LTE predicate on the "base_url" field.
func BaseURLNEQ ¶
BaseURLNEQ applies the NEQ predicate on the "base_url" field.
func BaseURLNotIn ¶
BaseURLNotIn applies the NotIn predicate on the "base_url" field.
func BaseURLNotNil ¶
BaseURLNotNil applies the NotNil predicate on the "base_url" field.
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 CustomOauthIsNil ¶
CustomOauthIsNil applies the IsNil predicate on the "custom_oauth" field.
func CustomOauthNotNil ¶
CustomOauthNotNil applies the NotNil predicate on the "custom_oauth" field.
func DingtalkOauthIsNil ¶
DingtalkOauthIsNil applies the IsNil predicate on the "dingtalk_oauth" field.
func DingtalkOauthNotNil ¶
DingtalkOauthNotNil applies the NotNil predicate on the "dingtalk_oauth" field.
func DisablePasswordLogin ¶
DisablePasswordLogin applies equality check predicate on the "disable_password_login" field. It's identical to DisablePasswordLoginEQ.
func DisablePasswordLoginEQ ¶
DisablePasswordLoginEQ applies the EQ predicate on the "disable_password_login" field.
func DisablePasswordLoginNEQ ¶
DisablePasswordLoginNEQ applies the NEQ predicate on the "disable_password_login" field.
func EnableAutoLogin ¶
EnableAutoLogin applies equality check predicate on the "enable_auto_login" field. It's identical to EnableAutoLoginEQ.
func EnableAutoLoginEQ ¶
EnableAutoLoginEQ applies the EQ predicate on the "enable_auto_login" field.
func EnableAutoLoginNEQ ¶
EnableAutoLoginNEQ applies the NEQ predicate on the "enable_auto_login" field.
func EnableSSO ¶
EnableSSO applies equality check predicate on the "enable_sso" field. It's identical to EnableSSOEQ.
func EnableSSOEQ ¶
EnableSSOEQ applies the EQ predicate on the "enable_sso" field.
func EnableSSONEQ ¶
EnableSSONEQ applies the NEQ predicate on the "enable_sso" field.
func ForceTwoFactorAuth ¶
ForceTwoFactorAuth applies equality check predicate on the "force_two_factor_auth" field. It's identical to ForceTwoFactorAuthEQ.
func ForceTwoFactorAuthEQ ¶
ForceTwoFactorAuthEQ applies the EQ predicate on the "force_two_factor_auth" field.
func ForceTwoFactorAuthNEQ ¶
ForceTwoFactorAuthNEQ applies the NEQ predicate on the "force_two_factor_auth" 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 Setting queries.
func ByBaseURL ¶
func ByBaseURL(opts ...sql.OrderTermOption) OrderOption
ByBaseURL orders the results by the base_url field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDisablePasswordLogin ¶
func ByDisablePasswordLogin(opts ...sql.OrderTermOption) OrderOption
ByDisablePasswordLogin orders the results by the disable_password_login field.
func ByEnableAutoLogin ¶
func ByEnableAutoLogin(opts ...sql.OrderTermOption) OrderOption
ByEnableAutoLogin orders the results by the enable_auto_login field.
func ByEnableSSO ¶
func ByEnableSSO(opts ...sql.OrderTermOption) OrderOption
ByEnableSSO orders the results by the enable_sso field.
func ByForceTwoFactorAuth ¶
func ByForceTwoFactorAuth(opts ...sql.OrderTermOption) OrderOption
ByForceTwoFactorAuth orders the results by the force_two_factor_auth field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.