Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Parameter) predicate.Parameter
- func CreatedAt(v time.Time) predicate.Parameter
- func CreatedAtEQ(v time.Time) predicate.Parameter
- func CreatedAtGT(v time.Time) predicate.Parameter
- func CreatedAtGTE(v time.Time) predicate.Parameter
- func CreatedAtIn(vs ...time.Time) predicate.Parameter
- func CreatedAtLT(v time.Time) predicate.Parameter
- func CreatedAtLTE(v time.Time) predicate.Parameter
- func CreatedAtNEQ(v time.Time) predicate.Parameter
- func CreatedAtNotIn(vs ...time.Time) predicate.Parameter
- func ExpiredAt(v time.Time) predicate.Parameter
- func ExpiredAtEQ(v time.Time) predicate.Parameter
- func ExpiredAtGT(v time.Time) predicate.Parameter
- func ExpiredAtGTE(v time.Time) predicate.Parameter
- func ExpiredAtIn(vs ...time.Time) predicate.Parameter
- func ExpiredAtLT(v time.Time) predicate.Parameter
- func ExpiredAtLTE(v time.Time) predicate.Parameter
- func ExpiredAtNEQ(v time.Time) predicate.Parameter
- func ExpiredAtNotIn(vs ...time.Time) predicate.Parameter
- func Flag(v string) predicate.Parameter
- func FlagContains(v string) predicate.Parameter
- func FlagContainsFold(v string) predicate.Parameter
- func FlagEQ(v string) predicate.Parameter
- func FlagEqualFold(v string) predicate.Parameter
- func FlagGT(v string) predicate.Parameter
- func FlagGTE(v string) predicate.Parameter
- func FlagHasPrefix(v string) predicate.Parameter
- func FlagHasSuffix(v string) predicate.Parameter
- func FlagIn(vs ...string) predicate.Parameter
- func FlagLT(v string) predicate.Parameter
- func FlagLTE(v string) predicate.Parameter
- func FlagNEQ(v string) predicate.Parameter
- func FlagNotIn(vs ...string) predicate.Parameter
- func ID(id int64) predicate.Parameter
- func IDEQ(id int64) predicate.Parameter
- func IDGT(id int64) predicate.Parameter
- func IDGTE(id int64) predicate.Parameter
- func IDIn(ids ...int64) predicate.Parameter
- func IDLT(id int64) predicate.Parameter
- func IDLTE(id int64) predicate.Parameter
- func IDNEQ(id int64) predicate.Parameter
- func IDNotIn(ids ...int64) predicate.Parameter
- func Not(p predicate.Parameter) predicate.Parameter
- func Or(predicates ...predicate.Parameter) predicate.Parameter
- func ParamsIsNil() predicate.Parameter
- func ParamsNotNil() predicate.Parameter
- func UpdatedAt(v time.Time) predicate.Parameter
- func UpdatedAtEQ(v time.Time) predicate.Parameter
- func UpdatedAtGT(v time.Time) predicate.Parameter
- func UpdatedAtGTE(v time.Time) predicate.Parameter
- func UpdatedAtIn(vs ...time.Time) predicate.Parameter
- func UpdatedAtLT(v time.Time) predicate.Parameter
- func UpdatedAtLTE(v time.Time) predicate.Parameter
- func UpdatedAtNEQ(v time.Time) predicate.Parameter
- func UpdatedAtNotIn(vs ...time.Time) predicate.Parameter
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the parameter type in the database. Label = "parameter" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFlag holds the string denoting the flag field in the database. FieldFlag = "flag" // FieldParams holds the string denoting the params field in the database. FieldParams = "params" // 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" // FieldExpiredAt holds the string denoting the expired_at field in the database. FieldExpiredAt = "expired_at" // Table holds the table name of the parameter in the database. Table = "parameter" )
Variables ¶
var ( // FlagValidator is a validator for the "flag" field. It is called by the builders before save. FlagValidator func(string) error // 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, FieldFlag, FieldParams, FieldCreatedAt, FieldUpdatedAt, FieldExpiredAt, }
Columns holds all SQL columns for parameter 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 ExpiredAt ¶
ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.
func ExpiredAtEQ ¶
ExpiredAtEQ applies the EQ predicate on the "expired_at" field.
func ExpiredAtGT ¶
ExpiredAtGT applies the GT predicate on the "expired_at" field.
func ExpiredAtGTE ¶
ExpiredAtGTE applies the GTE predicate on the "expired_at" field.
func ExpiredAtIn ¶
ExpiredAtIn applies the In predicate on the "expired_at" field.
func ExpiredAtLT ¶
ExpiredAtLT applies the LT predicate on the "expired_at" field.
func ExpiredAtLTE ¶
ExpiredAtLTE applies the LTE predicate on the "expired_at" field.
func ExpiredAtNEQ ¶
ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.
func ExpiredAtNotIn ¶
ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.
func FlagContains ¶
FlagContains applies the Contains predicate on the "flag" field.
func FlagContainsFold ¶
FlagContainsFold applies the ContainsFold predicate on the "flag" field.
func FlagEqualFold ¶
FlagEqualFold applies the EqualFold predicate on the "flag" field.
func FlagHasPrefix ¶
FlagHasPrefix applies the HasPrefix predicate on the "flag" field.
func FlagHasSuffix ¶
FlagHasSuffix applies the HasSuffix predicate on the "flag" field.
func ParamsIsNil ¶
ParamsIsNil applies the IsNil predicate on the "params" field.
func ParamsNotNil ¶
ParamsNotNil applies the NotNil predicate on the "params" 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 Parameter queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiredAt ¶
func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
ByExpiredAt orders the results by the expired_at field.
func ByFlag ¶
func ByFlag(opts ...sql.OrderTermOption) OrderOption
ByFlag orders the results by the flag 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.