Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Lock) predicate.Lock
- func HasNode() predicate.Lock
- func HasNodeWith(preds ...predicate.Node) 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 LockedAt(v time.Time) predicate.Lock
- func LockedAtEQ(v time.Time) predicate.Lock
- func LockedAtGT(v time.Time) predicate.Lock
- func LockedAtGTE(v time.Time) predicate.Lock
- func LockedAtIn(vs ...time.Time) predicate.Lock
- func LockedAtLT(v time.Time) predicate.Lock
- func LockedAtLTE(v time.Time) predicate.Lock
- func LockedAtNEQ(v time.Time) predicate.Lock
- func LockedAtNotIn(vs ...time.Time) predicate.Lock
- func Nid(v int) predicate.Lock
- func NidEQ(v int) predicate.Lock
- func NidIn(vs ...int) predicate.Lock
- func NidNEQ(v int) predicate.Lock
- func NidNotIn(vs ...int) predicate.Lock
- func Not(p predicate.Lock) predicate.Lock
- func Or(predicates ...predicate.Lock) predicate.Lock
- func TouchedAt(v time.Time) predicate.Lock
- func TouchedAtEQ(v time.Time) predicate.Lock
- func TouchedAtGT(v time.Time) predicate.Lock
- func TouchedAtGTE(v time.Time) predicate.Lock
- func TouchedAtIn(vs ...time.Time) predicate.Lock
- func TouchedAtLT(v time.Time) predicate.Lock
- func TouchedAtLTE(v time.Time) predicate.Lock
- func TouchedAtNEQ(v time.Time) predicate.Lock
- func TouchedAtNotIn(vs ...time.Time) predicate.Lock
- func UID(v int) predicate.Lock
- func UIDEQ(v int) predicate.Lock
- func UIDGT(v int) predicate.Lock
- func UIDGTE(v int) predicate.Lock
- func UIDIn(vs ...int) predicate.Lock
- func UIDLT(v int) predicate.Lock
- func UIDLTE(v int) predicate.Lock
- func UIDNEQ(v int) predicate.Lock
- func UIDNotIn(vs ...int) predicate.Lock
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLockedAt(opts ...sql.OrderTermOption) OrderOption
- func ByNid(opts ...sql.OrderTermOption) OrderOption
- func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTouchedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUID(opts ...sql.OrderTermOption) 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" // FieldNid holds the string denoting the nid field in the database. FieldNid = "nid" // FieldUID holds the string denoting the uid field in the database. FieldUID = "uid" // FieldLockedAt holds the string denoting the locked_at field in the database. FieldLockedAt = "locked_at" // FieldTouchedAt holds the string denoting the touched_at field in the database. FieldTouchedAt = "touched_at" // EdgeNode holds the string denoting the node edge name in mutations. EdgeNode = "node" // Table holds the table name of the lock in the database. Table = "workflow_locks" // NodeTable is the table that holds the node relation/edge. NodeTable = "workflow_locks" // NodeInverseTable is the table name for the Node entity. // It exists in this package in order to avoid circular dependency with the "node" package. NodeInverseTable = "nodes" // NodeColumn is the table column denoting the node relation/edge. NodeColumn = "nid" )
Variables ¶
var Columns = []string{ FieldID, FieldNid, FieldUID, FieldLockedAt, FieldTouchedAt, }
Columns holds all SQL columns for lock fields.
Functions ¶
func HasNodeWith ¶
HasNodeWith applies the HasEdge predicate on the "node" edge with a given conditions (other predicates).
func LockedAt ¶
LockedAt applies equality check predicate on the "locked_at" field. It's identical to LockedAtEQ.
func LockedAtEQ ¶
LockedAtEQ applies the EQ predicate on the "locked_at" field.
func LockedAtGT ¶
LockedAtGT applies the GT predicate on the "locked_at" field.
func LockedAtGTE ¶
LockedAtGTE applies the GTE predicate on the "locked_at" field.
func LockedAtIn ¶
LockedAtIn applies the In predicate on the "locked_at" field.
func LockedAtLT ¶
LockedAtLT applies the LT predicate on the "locked_at" field.
func LockedAtLTE ¶
LockedAtLTE applies the LTE predicate on the "locked_at" field.
func LockedAtNEQ ¶
LockedAtNEQ applies the NEQ predicate on the "locked_at" field.
func LockedAtNotIn ¶
LockedAtNotIn applies the NotIn predicate on the "locked_at" field.
func TouchedAt ¶
TouchedAt applies equality check predicate on the "touched_at" field. It's identical to TouchedAtEQ.
func TouchedAtEQ ¶
TouchedAtEQ applies the EQ predicate on the "touched_at" field.
func TouchedAtGT ¶
TouchedAtGT applies the GT predicate on the "touched_at" field.
func TouchedAtGTE ¶
TouchedAtGTE applies the GTE predicate on the "touched_at" field.
func TouchedAtIn ¶
TouchedAtIn applies the In predicate on the "touched_at" field.
func TouchedAtLT ¶
TouchedAtLT applies the LT predicate on the "touched_at" field.
func TouchedAtLTE ¶
TouchedAtLTE applies the LTE predicate on the "touched_at" field.
func TouchedAtNEQ ¶
TouchedAtNEQ applies the NEQ predicate on the "touched_at" field.
func TouchedAtNotIn ¶
TouchedAtNotIn applies the NotIn predicate on the "touched_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 Lock queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLockedAt ¶
func ByLockedAt(opts ...sql.OrderTermOption) OrderOption
ByLockedAt orders the results by the locked_at field.
func ByNid ¶
func ByNid(opts ...sql.OrderTermOption) OrderOption
ByNid orders the results by the nid field.
func ByNodeField ¶
func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption
ByNodeField orders the results by node field.
func ByTouchedAt ¶
func ByTouchedAt(opts ...sql.OrderTermOption) OrderOption
ByTouchedAt orders the results by the touched_at field.
func ByUID ¶
func ByUID(opts ...sql.OrderTermOption) OrderOption
ByUID orders the results by the uid field.