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 Env(v string) predicate.Lock
- func EnvContains(v string) predicate.Lock
- func EnvContainsFold(v string) predicate.Lock
- func EnvEQ(v string) predicate.Lock
- func EnvEqualFold(v string) predicate.Lock
- func EnvGT(v string) predicate.Lock
- func EnvGTE(v string) predicate.Lock
- func EnvHasPrefix(v string) predicate.Lock
- func EnvHasSuffix(v string) predicate.Lock
- func EnvIn(vs ...string) predicate.Lock
- func EnvLT(v string) predicate.Lock
- func EnvLTE(v string) predicate.Lock
- func EnvNEQ(v string) predicate.Lock
- func EnvNotIn(vs ...string) predicate.Lock
- func ExpiredAt(v time.Time) predicate.Lock
- func ExpiredAtEQ(v time.Time) predicate.Lock
- func ExpiredAtGT(v time.Time) predicate.Lock
- func ExpiredAtGTE(v time.Time) predicate.Lock
- func ExpiredAtIn(vs ...time.Time) predicate.Lock
- func ExpiredAtIsNil() predicate.Lock
- func ExpiredAtLT(v time.Time) predicate.Lock
- func ExpiredAtLTE(v time.Time) predicate.Lock
- func ExpiredAtNEQ(v time.Time) predicate.Lock
- func ExpiredAtNotIn(vs ...time.Time) predicate.Lock
- func ExpiredAtNotNil() predicate.Lock
- func HasRepo() predicate.Lock
- func HasRepoWith(preds ...predicate.Repo) predicate.Lock
- func HasUser() predicate.Lock
- func HasUserWith(preds ...predicate.User) 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 Not(p predicate.Lock) predicate.Lock
- func Or(predicates ...predicate.Lock) predicate.Lock
- func RepoID(v int64) predicate.Lock
- func RepoIDEQ(v int64) predicate.Lock
- func RepoIDIn(vs ...int64) predicate.Lock
- func RepoIDNEQ(v int64) predicate.Lock
- func RepoIDNotIn(vs ...int64) predicate.Lock
- func UserID(v int64) predicate.Lock
- func UserIDEQ(v int64) predicate.Lock
- func UserIDIn(vs ...int64) predicate.Lock
- func UserIDIsNil() predicate.Lock
- func UserIDNEQ(v int64) predicate.Lock
- func UserIDNotIn(vs ...int64) predicate.Lock
- func UserIDNotNil() predicate.Lock
- func ValidColumn(column string) bool
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" // FieldEnv holds the string denoting the env field in the database. FieldEnv = "env" // FieldExpiredAt holds the string denoting the expired_at field in the database. FieldExpiredAt = "expired_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldRepoID holds the string denoting the repo_id field in the database. FieldRepoID = "repo_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeRepo holds the string denoting the repo edge name in mutations. EdgeRepo = "repo" // Table holds the table name of the lock in the database. Table = "locks" // UserTable is the table that holds the user relation/edge. UserTable = "locks" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // RepoTable is the table that holds the repo relation/edge. RepoTable = "locks" // RepoInverseTable is the table name for the Repo entity. // It exists in this package in order to avoid circular dependency with the "repo" package. RepoInverseTable = "repos" // RepoColumn is the table column denoting the repo relation/edge. RepoColumn = "repo_id" )
Variables ¶
var Columns = []string{ FieldID, FieldEnv, FieldExpiredAt, FieldCreatedAt, FieldUserID, FieldRepoID, }
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 EnvContains ¶
EnvContains applies the Contains predicate on the "env" field.
func EnvContainsFold ¶
EnvContainsFold applies the ContainsFold predicate on the "env" field.
func EnvEqualFold ¶
EnvEqualFold applies the EqualFold predicate on the "env" field.
func EnvHasPrefix ¶
EnvHasPrefix applies the HasPrefix predicate on the "env" field.
func EnvHasSuffix ¶
EnvHasSuffix applies the HasSuffix predicate on the "env" field.
func ExpiredAt ¶
ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.
func ExpiredAtEQ ¶
ExpiredAtEQ applies the EQ predicate on the "expired_at" field.
func ExpiredAtGT ¶
ExpiredAtGT applies the GT predicate on the "expired_at" field.
func ExpiredAtGTE ¶
ExpiredAtGTE applies the GTE predicate on the "expired_at" field.
func ExpiredAtIn ¶
ExpiredAtIn applies the In predicate on the "expired_at" field.
func ExpiredAtIsNil ¶
ExpiredAtIsNil applies the IsNil predicate on the "expired_at" field.
func ExpiredAtLT ¶
ExpiredAtLT applies the LT predicate on the "expired_at" field.
func ExpiredAtLTE ¶
ExpiredAtLTE applies the LTE predicate on the "expired_at" field.
func ExpiredAtNEQ ¶
ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.
func ExpiredAtNotIn ¶
ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.
func ExpiredAtNotNil ¶
ExpiredAtNotNil applies the NotNil predicate on the "expired_at" field.
func HasRepoWith ¶
HasRepoWith applies the HasEdge predicate on the "repo" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func RepoID ¶
RepoID applies equality check predicate on the "repo_id" field. It's identical to RepoIDEQ.
func RepoIDNotIn ¶
RepoIDNotIn applies the NotIn predicate on the "repo_id" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDIsNil ¶
UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotNil ¶
UserIDNotNil applies the NotNil predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.