Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Perm) predicate.Perm
- func CreatedAt(v time.Time) predicate.Perm
- func CreatedAtEQ(v time.Time) predicate.Perm
- func CreatedAtGT(v time.Time) predicate.Perm
- func CreatedAtGTE(v time.Time) predicate.Perm
- func CreatedAtIn(vs ...time.Time) predicate.Perm
- func CreatedAtLT(v time.Time) predicate.Perm
- func CreatedAtLTE(v time.Time) predicate.Perm
- func CreatedAtNEQ(v time.Time) predicate.Perm
- func CreatedAtNotIn(vs ...time.Time) predicate.Perm
- func HasRepo() predicate.Perm
- func HasRepoWith(preds ...predicate.Repo) predicate.Perm
- func HasUser() predicate.Perm
- func HasUserWith(preds ...predicate.User) predicate.Perm
- func ID(id int) predicate.Perm
- func IDEQ(id int) predicate.Perm
- func IDGT(id int) predicate.Perm
- func IDGTE(id int) predicate.Perm
- func IDIn(ids ...int) predicate.Perm
- func IDLT(id int) predicate.Perm
- func IDLTE(id int) predicate.Perm
- func IDNEQ(id int) predicate.Perm
- func IDNotIn(ids ...int) predicate.Perm
- func Not(p predicate.Perm) predicate.Perm
- func Or(predicates ...predicate.Perm) predicate.Perm
- func RepoID(v int64) predicate.Perm
- func RepoIDEQ(v int64) predicate.Perm
- func RepoIDIn(vs ...int64) predicate.Perm
- func RepoIDNEQ(v int64) predicate.Perm
- func RepoIDNotIn(vs ...int64) predicate.Perm
- func RepoPermEQ(v RepoPerm) predicate.Perm
- func RepoPermIn(vs ...RepoPerm) predicate.Perm
- func RepoPermNEQ(v RepoPerm) predicate.Perm
- func RepoPermNotIn(vs ...RepoPerm) predicate.Perm
- func RepoPermValidator(rp RepoPerm) error
- func SyncedAt(v time.Time) predicate.Perm
- func SyncedAtEQ(v time.Time) predicate.Perm
- func SyncedAtGT(v time.Time) predicate.Perm
- func SyncedAtGTE(v time.Time) predicate.Perm
- func SyncedAtIn(vs ...time.Time) predicate.Perm
- func SyncedAtIsNil() predicate.Perm
- func SyncedAtLT(v time.Time) predicate.Perm
- func SyncedAtLTE(v time.Time) predicate.Perm
- func SyncedAtNEQ(v time.Time) predicate.Perm
- func SyncedAtNotIn(vs ...time.Time) predicate.Perm
- func SyncedAtNotNil() predicate.Perm
- func UpdatedAt(v time.Time) predicate.Perm
- func UpdatedAtEQ(v time.Time) predicate.Perm
- func UpdatedAtGT(v time.Time) predicate.Perm
- func UpdatedAtGTE(v time.Time) predicate.Perm
- func UpdatedAtIn(vs ...time.Time) predicate.Perm
- func UpdatedAtLT(v time.Time) predicate.Perm
- func UpdatedAtLTE(v time.Time) predicate.Perm
- func UpdatedAtNEQ(v time.Time) predicate.Perm
- func UpdatedAtNotIn(vs ...time.Time) predicate.Perm
- func UserID(v int64) predicate.Perm
- func UserIDEQ(v int64) predicate.Perm
- func UserIDIn(vs ...int64) predicate.Perm
- func UserIDNEQ(v int64) predicate.Perm
- func UserIDNotIn(vs ...int64) predicate.Perm
- func ValidColumn(column string) bool
- type RepoPerm
Constants ¶
const ( // Label holds the string label denoting the perm type in the database. Label = "perm" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRepoPerm holds the string denoting the repo_perm field in the database. FieldRepoPerm = "repo_perm" // FieldSyncedAt holds the string denoting the synced_at field in the database. FieldSyncedAt = "synced_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_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 perm in the database. Table = "perms" // UserTable is the table that holds the user relation/edge. UserTable = "perms" // 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 = "perms" // 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" )
const DefaultRepoPerm = RepoPermRead
RepoPermRead is the default value of the RepoPerm enum.
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldRepoPerm, FieldSyncedAt, FieldCreatedAt, FieldUpdatedAt, FieldUserID, FieldRepoID, }
Columns holds all SQL columns for perm fields.
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 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 RepoPermEQ ¶
RepoPermEQ applies the EQ predicate on the "repo_perm" field.
func RepoPermIn ¶
RepoPermIn applies the In predicate on the "repo_perm" field.
func RepoPermNEQ ¶
RepoPermNEQ applies the NEQ predicate on the "repo_perm" field.
func RepoPermNotIn ¶
RepoPermNotIn applies the NotIn predicate on the "repo_perm" field.
func RepoPermValidator ¶
RepoPermValidator is a validator for the "repo_perm" field enum values. It is called by the builders before save.
func SyncedAt ¶
SyncedAt applies equality check predicate on the "synced_at" field. It's identical to SyncedAtEQ.
func SyncedAtEQ ¶
SyncedAtEQ applies the EQ predicate on the "synced_at" field.
func SyncedAtGT ¶
SyncedAtGT applies the GT predicate on the "synced_at" field.
func SyncedAtGTE ¶
SyncedAtGTE applies the GTE predicate on the "synced_at" field.
func SyncedAtIn ¶
SyncedAtIn applies the In predicate on the "synced_at" field.
func SyncedAtIsNil ¶
SyncedAtIsNil applies the IsNil predicate on the "synced_at" field.
func SyncedAtLT ¶
SyncedAtLT applies the LT predicate on the "synced_at" field.
func SyncedAtLTE ¶
SyncedAtLTE applies the LTE predicate on the "synced_at" field.
func SyncedAtNEQ ¶
SyncedAtNEQ applies the NEQ predicate on the "synced_at" field.
func SyncedAtNotIn ¶
SyncedAtNotIn applies the NotIn predicate on the "synced_at" field.
func SyncedAtNotNil ¶
SyncedAtNotNil applies the NotNil predicate on the "synced_at" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).