Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Setup) predicate.Setup
- func ID(id uuid.UUID) predicate.Setup
- func IDEQ(id uuid.UUID) predicate.Setup
- func IDGT(id uuid.UUID) predicate.Setup
- func IDGTE(id uuid.UUID) predicate.Setup
- func IDIn(ids ...uuid.UUID) predicate.Setup
- func IDLT(id uuid.UUID) predicate.Setup
- func IDLTE(id uuid.UUID) predicate.Setup
- func IDNEQ(id uuid.UUID) predicate.Setup
- func IDNotIn(ids ...uuid.UUID) predicate.Setup
- func Not(p predicate.Setup) predicate.Setup
- func Or(predicates ...predicate.Setup) predicate.Setup
- func SetUpAt(v time.Time) predicate.Setup
- func SetUpAtEQ(v time.Time) predicate.Setup
- func SetUpAtGT(v time.Time) predicate.Setup
- func SetUpAtGTE(v time.Time) predicate.Setup
- func SetUpAtIn(vs ...time.Time) predicate.Setup
- func SetUpAtLT(v time.Time) predicate.Setup
- func SetUpAtLTE(v time.Time) predicate.Setup
- func SetUpAtNEQ(v time.Time) predicate.Setup
- func SetUpAtNotIn(vs ...time.Time) predicate.Setup
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the setup type in the database. Label = "setup" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSetUpAt holds the string denoting the set_up_at field in the database. FieldSetUpAt = "set_up_at" // Table holds the table name of the setup in the database. Table = "setups" )
Variables ¶
View Source
var ( // DefaultSetUpAt holds the default value on creation for the "set_up_at" field. DefaultSetUpAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
View Source
var Columns = []string{ FieldID, FieldSetUpAt, }
Columns holds all SQL columns for setup fields.
Functions ¶
func SetUpAt ¶
SetUpAt applies equality check predicate on the "set_up_at" field. It's identical to SetUpAtEQ.
func SetUpAtGTE ¶
SetUpAtGTE applies the GTE predicate on the "set_up_at" field.
func SetUpAtLTE ¶
SetUpAtLTE applies the LTE predicate on the "set_up_at" field.
func SetUpAtNEQ ¶
SetUpAtNEQ applies the NEQ predicate on the "set_up_at" field.
func SetUpAtNotIn ¶
SetUpAtNotIn applies the NotIn predicate on the "set_up_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 Setup queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySetUpAt ¶
func BySetUpAt(opts ...sql.OrderTermOption) OrderOption
BySetUpAt orders the results by the set_up_at field.
Click to show internal directories.
Click to hide internal directories.