Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Lock) predicate.Lock
- func CreatedAt(v time.Time) predicate.Lock
- func CreatedAtEQ(v time.Time) predicate.Lock
- func CreatedAtGT(v time.Time) predicate.Lock
- func CreatedAtGTE(v time.Time) predicate.Lock
- func CreatedAtIn(vs ...time.Time) predicate.Lock
- func CreatedAtLT(v time.Time) predicate.Lock
- func CreatedAtLTE(v time.Time) predicate.Lock
- func CreatedAtNEQ(v time.Time) predicate.Lock
- func CreatedAtNotIn(vs ...time.Time) predicate.Lock
- func ID(id int) predicate.Lock
- func IDEQ(id int) predicate.Lock
- func IDGT(id int) predicate.Lock
- func IDGTE(id int) predicate.Lock
- func IDIn(ids ...int) predicate.Lock
- func IDLT(id int) predicate.Lock
- func IDLTE(id int) predicate.Lock
- func IDNEQ(id int) predicate.Lock
- func IDNotIn(ids ...int) predicate.Lock
- func Name(v string) predicate.Lock
- func NameContains(v string) predicate.Lock
- func NameContainsFold(v string) predicate.Lock
- func NameEQ(v string) predicate.Lock
- func NameEqualFold(v string) predicate.Lock
- func NameGT(v string) predicate.Lock
- func NameGTE(v string) predicate.Lock
- func NameHasPrefix(v string) predicate.Lock
- func NameHasSuffix(v string) predicate.Lock
- func NameIn(vs ...string) predicate.Lock
- func NameLT(v string) predicate.Lock
- func NameLTE(v string) predicate.Lock
- func NameNEQ(v string) predicate.Lock
- func NameNotIn(vs ...string) predicate.Lock
- func Not(p predicate.Lock) predicate.Lock
- func Or(predicates ...predicate.Lock) predicate.Lock
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the lock type in the database. Label = "lock" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the lock in the database. Table = "locks" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldCreatedAt, }
Columns holds all SQL columns for lock fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Lock 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 ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.