Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Setting) 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 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
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" // 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 ( // 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() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for setting 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 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at 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.