Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Access) predicate.Access
- func CreatedAt(v time.Time) predicate.Access
- func CreatedAtEQ(v time.Time) predicate.Access
- func CreatedAtGT(v time.Time) predicate.Access
- func CreatedAtGTE(v time.Time) predicate.Access
- func CreatedAtIn(vs ...time.Time) predicate.Access
- func CreatedAtLT(v time.Time) predicate.Access
- func CreatedAtLTE(v time.Time) predicate.Access
- func CreatedAtNEQ(v time.Time) predicate.Access
- func CreatedAtNotIn(vs ...time.Time) predicate.Access
- func ID(id int) predicate.Access
- func IDEQ(id int) predicate.Access
- func IDGT(id int) predicate.Access
- func IDGTE(id int) predicate.Access
- func IDIn(ids ...int) predicate.Access
- func IDLT(id int) predicate.Access
- func IDLTE(id int) predicate.Access
- func IDNEQ(id int) predicate.Access
- func IDNotIn(ids ...int) predicate.Access
- func Not(p predicate.Access) predicate.Access
- func Or(predicates ...predicate.Access) predicate.Access
- func ProjectID(v int) predicate.Access
- func ProjectIDEQ(v int) predicate.Access
- func ProjectIDGT(v int) predicate.Access
- func ProjectIDGTE(v int) predicate.Access
- func ProjectIDIn(vs ...int) predicate.Access
- func ProjectIDLT(v int) predicate.Access
- func ProjectIDLTE(v int) predicate.Access
- func ProjectIDNEQ(v int) predicate.Access
- func ProjectIDNotIn(vs ...int) predicate.Access
- func RoleEQ(v Role) predicate.Access
- func RoleIn(vs ...Role) predicate.Access
- func RoleNEQ(v Role) predicate.Access
- func RoleNotIn(vs ...Role) predicate.Access
- func RoleValidator(r Role) error
- func UpdatedAt(v time.Time) predicate.Access
- func UpdatedAtEQ(v time.Time) predicate.Access
- func UpdatedAtGT(v time.Time) predicate.Access
- func UpdatedAtGTE(v time.Time) predicate.Access
- func UpdatedAtIn(vs ...time.Time) predicate.Access
- func UpdatedAtLT(v time.Time) predicate.Access
- func UpdatedAtLTE(v time.Time) predicate.Access
- func UpdatedAtNEQ(v time.Time) predicate.Access
- func UpdatedAtNotIn(vs ...time.Time) predicate.Access
- func UserID(v int) predicate.Access
- func UserIDEQ(v int) predicate.Access
- func UserIDGT(v int) predicate.Access
- func UserIDGTE(v int) predicate.Access
- func UserIDIn(vs ...int) predicate.Access
- func UserIDLT(v int) predicate.Access
- func UserIDLTE(v int) predicate.Access
- func UserIDNEQ(v int) predicate.Access
- func UserIDNotIn(vs ...int) predicate.Access
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- type Role
Constants ¶
const ( // Label holds the string label denoting the access type in the database. Label = "access" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // Table holds the table name of the access in the database. Table = "accesses" )
const DefaultRole = RoleUser
RoleUser is the default value of the Role 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, FieldCreatedAt, FieldUpdatedAt, FieldUserID, FieldProjectID, FieldRole, }
Columns holds all SQL columns for access 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 ProjectID ¶
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDEQ ¶
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDGT ¶
ProjectIDGT applies the GT predicate on the "project_id" field.
func ProjectIDGTE ¶
ProjectIDGTE applies the GTE predicate on the "project_id" field.
func ProjectIDIn ¶
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDLT ¶
ProjectIDLT applies the LT predicate on the "project_id" field.
func ProjectIDLTE ¶
ProjectIDLTE applies the LTE predicate on the "project_id" field.
func ProjectIDNEQ ¶
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Access queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.