Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Lock) predicate.Lock
- func ID(id string) predicate.Lock
- func IDContainsFold(id string) predicate.Lock
- func IDEQ(id string) predicate.Lock
- func IDEqualFold(id string) predicate.Lock
- func IDGT(id string) predicate.Lock
- func IDGTE(id string) predicate.Lock
- func IDIn(ids ...string) predicate.Lock
- func IDLT(id string) predicate.Lock
- func IDLTE(id string) predicate.Lock
- func IDNEQ(id string) predicate.Lock
- func IDNotIn(ids ...string) predicate.Lock
- func Not(p predicate.Lock) predicate.Lock
- func Or(predicates ...predicate.Lock) predicate.Lock
- func Owner(v string) predicate.Lock
- func OwnerContains(v string) predicate.Lock
- func OwnerContainsFold(v string) predicate.Lock
- func OwnerEQ(v string) predicate.Lock
- func OwnerEqualFold(v string) predicate.Lock
- func OwnerGT(v string) predicate.Lock
- func OwnerGTE(v string) predicate.Lock
- func OwnerHasPrefix(v string) predicate.Lock
- func OwnerHasSuffix(v string) predicate.Lock
- func OwnerIn(vs ...string) predicate.Lock
- func OwnerLT(v string) predicate.Lock
- func OwnerLTE(v string) predicate.Lock
- func OwnerNEQ(v string) predicate.Lock
- func OwnerNotIn(vs ...string) predicate.Lock
- func ValidColumn(column string) bool
- func Version(v uuid.UUID) predicate.Lock
- func VersionEQ(v uuid.UUID) predicate.Lock
- func VersionGT(v uuid.UUID) predicate.Lock
- func VersionGTE(v uuid.UUID) predicate.Lock
- func VersionIn(vs ...uuid.UUID) predicate.Lock
- func VersionIsNil() predicate.Lock
- func VersionLT(v uuid.UUID) predicate.Lock
- func VersionLTE(v uuid.UUID) predicate.Lock
- func VersionNEQ(v uuid.UUID) predicate.Lock
- func VersionNotIn(vs ...uuid.UUID) predicate.Lock
- func VersionNotNil() predicate.Lock
- 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" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // Table holds the table name of the lock in the database. Table = "dblock" )
Variables ¶
var Columns = []string{ FieldID, FieldVersion, FieldOwner, }
Columns holds all SQL columns for lock fields.
var ( // DefaultVersion holds the default value on creation for the "version" field. DefaultVersion func() uuid.UUID )
Functions ¶
func IDContainsFold ¶ added in v0.1.1
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶ added in v0.1.1
IDEqualFold applies the EqualFold predicate on the ID field.
func Owner ¶
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerContains ¶
OwnerContains applies the Contains predicate on the "owner" field.
func OwnerContainsFold ¶
OwnerContainsFold applies the ContainsFold predicate on the "owner" field.
func OwnerEqualFold ¶
OwnerEqualFold applies the EqualFold predicate on the "owner" field.
func OwnerHasPrefix ¶
OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.
func OwnerHasSuffix ¶
OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.
func OwnerNotIn ¶
OwnerNotIn applies the NotIn predicate on the "owner" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶ added in v0.1.1
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶ added in v0.1.1
VersionGTE applies the GTE predicate on the "version" field.
func VersionIsNil ¶ added in v0.1.1
VersionIsNil applies the IsNil predicate on the "version" field.
func VersionLTE ¶ added in v0.1.1
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶ added in v0.1.1
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶ added in v0.1.1
VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotNil ¶ added in v0.1.1
VersionNotNil applies the NotNil predicate on the "version" field.
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 ByOwner ¶
func ByOwner(opts ...sql.OrderTermOption) OrderOption
ByOwner orders the results by the owner field.
func ByVersion ¶ added in v0.1.1
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.