Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DLock) predicate.DLock
- func Deadline(v int64) predicate.DLock
- func DeadlineEQ(v int64) predicate.DLock
- func DeadlineGT(v int64) predicate.DLock
- func DeadlineGTE(v int64) predicate.DLock
- func DeadlineIn(vs ...int64) predicate.DLock
- func DeadlineLT(v int64) predicate.DLock
- func DeadlineLTE(v int64) predicate.DLock
- func DeadlineNEQ(v int64) predicate.DLock
- func DeadlineNotIn(vs ...int64) predicate.DLock
- func Holder(v uuid.UUID) predicate.DLock
- func HolderEQ(v uuid.UUID) predicate.DLock
- func HolderGT(v uuid.UUID) predicate.DLock
- func HolderGTE(v uuid.UUID) predicate.DLock
- func HolderIn(vs ...uuid.UUID) predicate.DLock
- func HolderLT(v uuid.UUID) predicate.DLock
- func HolderLTE(v uuid.UUID) predicate.DLock
- func HolderNEQ(v uuid.UUID) predicate.DLock
- func HolderNotIn(vs ...uuid.UUID) predicate.DLock
- func ID(id string) predicate.DLock
- func IDContainsFold(id string) predicate.DLock
- func IDEQ(id string) predicate.DLock
- func IDEqualFold(id string) predicate.DLock
- func IDGT(id string) predicate.DLock
- func IDGTE(id string) predicate.DLock
- func IDIn(ids ...string) predicate.DLock
- func IDLT(id string) predicate.DLock
- func IDLTE(id string) predicate.DLock
- func IDNEQ(id string) predicate.DLock
- func IDNotIn(ids ...string) predicate.DLock
- func Not(p predicate.DLock) predicate.DLock
- func Or(predicates ...predicate.DLock) predicate.DLock
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the dlock type in the database. Label = "dlock" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldHolder holds the string denoting the holder field in the database. FieldHolder = "holder" // FieldDeadline holds the string denoting the deadline field in the database. FieldDeadline = "deadline" // Table holds the table name of the dlock in the database. Table = "dlocks" )
Variables ¶
var ( // DefaultHolder holds the default value on creation for the "holder" field. DefaultHolder func() uuid.UUID // DeadlineValidator is a validator for the "deadline" field. It is called by the builders before save. DeadlineValidator func(int64) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldHolder, FieldDeadline, }
Columns holds all SQL columns for dlock fields.
Functions ¶
func Deadline ¶
Deadline applies equality check predicate on the "deadline" field. It's identical to DeadlineEQ.
func DeadlineEQ ¶
DeadlineEQ applies the EQ predicate on the "deadline" field.
func DeadlineGT ¶
DeadlineGT applies the GT predicate on the "deadline" field.
func DeadlineGTE ¶
DeadlineGTE applies the GTE predicate on the "deadline" field.
func DeadlineIn ¶
DeadlineIn applies the In predicate on the "deadline" field.
func DeadlineLT ¶
DeadlineLT applies the LT predicate on the "deadline" field.
func DeadlineLTE ¶
DeadlineLTE applies the LTE predicate on the "deadline" field.
func DeadlineNEQ ¶
DeadlineNEQ applies the NEQ predicate on the "deadline" field.
func DeadlineNotIn ¶
DeadlineNotIn applies the NotIn predicate on the "deadline" field.
func Holder ¶
Holder applies equality check predicate on the "holder" field. It's identical to HolderEQ.
func HolderNotIn ¶
HolderNotIn applies the NotIn predicate on the "holder" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID 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 DLock queries.
func ByDeadline ¶
func ByDeadline(opts ...sql.OrderTermOption) OrderOption
ByDeadline orders the results by the deadline field.
func ByHolder ¶
func ByHolder(opts ...sql.OrderTermOption) OrderOption
ByHolder orders the results by the holder field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.