Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Admin) predicate.Admin
- func CreatedAt(v time.Time) predicate.Admin
- func CreatedAtEQ(v time.Time) predicate.Admin
- func CreatedAtGT(v time.Time) predicate.Admin
- func CreatedAtGTE(v time.Time) predicate.Admin
- func CreatedAtIn(vs ...time.Time) predicate.Admin
- func CreatedAtLT(v time.Time) predicate.Admin
- func CreatedAtLTE(v time.Time) predicate.Admin
- func CreatedAtNEQ(v time.Time) predicate.Admin
- func CreatedAtNotIn(vs ...time.Time) predicate.Admin
- func ID(id uuid.UUID) predicate.Admin
- func IDEQ(id uuid.UUID) predicate.Admin
- func IDGT(id uuid.UUID) predicate.Admin
- func IDGTE(id uuid.UUID) predicate.Admin
- func IDIn(ids ...uuid.UUID) predicate.Admin
- func IDLT(id uuid.UUID) predicate.Admin
- func IDLTE(id uuid.UUID) predicate.Admin
- func IDNEQ(id uuid.UUID) predicate.Admin
- func IDNotIn(ids ...uuid.UUID) predicate.Admin
- func Not(p predicate.Admin) predicate.Admin
- func Or(predicates ...predicate.Admin) predicate.Admin
- func PasswordHash(v []byte) predicate.Admin
- func PasswordHashEQ(v []byte) predicate.Admin
- func PasswordHashGT(v []byte) predicate.Admin
- func PasswordHashGTE(v []byte) predicate.Admin
- func PasswordHashIn(vs ...[]byte) predicate.Admin
- func PasswordHashLT(v []byte) predicate.Admin
- func PasswordHashLTE(v []byte) predicate.Admin
- func PasswordHashNEQ(v []byte) predicate.Admin
- func PasswordHashNotIn(vs ...[]byte) predicate.Admin
- func Pseudo(v string) predicate.Admin
- func PseudoContains(v string) predicate.Admin
- func PseudoContainsFold(v string) predicate.Admin
- func PseudoEQ(v string) predicate.Admin
- func PseudoEqualFold(v string) predicate.Admin
- func PseudoGT(v string) predicate.Admin
- func PseudoGTE(v string) predicate.Admin
- func PseudoHasPrefix(v string) predicate.Admin
- func PseudoHasSuffix(v string) predicate.Admin
- func PseudoIn(vs ...string) predicate.Admin
- func PseudoLT(v string) predicate.Admin
- func PseudoLTE(v string) predicate.Admin
- func PseudoNEQ(v string) predicate.Admin
- func PseudoNotIn(vs ...string) predicate.Admin
- func UpdatedAt(v time.Time) predicate.Admin
- func UpdatedAtEQ(v time.Time) predicate.Admin
- func UpdatedAtGT(v time.Time) predicate.Admin
- func UpdatedAtGTE(v time.Time) predicate.Admin
- func UpdatedAtIn(vs ...time.Time) predicate.Admin
- func UpdatedAtLT(v time.Time) predicate.Admin
- func UpdatedAtLTE(v time.Time) predicate.Admin
- func UpdatedAtNEQ(v time.Time) predicate.Admin
- func UpdatedAtNotIn(vs ...time.Time) predicate.Admin
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the admin type in the database. Label = "admin" // 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" // FieldPseudo holds the string denoting the pseudo field in the database. FieldPseudo = "pseudo" // FieldPasswordHash holds the string denoting the password_hash field in the database. FieldPasswordHash = "password_hash" // Table holds the table name of the admin in the database. Table = "admins" )
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldPseudo, FieldPasswordHash, }
Columns holds all SQL columns for admin 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 PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func Pseudo ¶
Pseudo applies equality check predicate on the "pseudo" field. It's identical to PseudoEQ.
func PseudoContains ¶
PseudoContains applies the Contains predicate on the "pseudo" field.
func PseudoContainsFold ¶
PseudoContainsFold applies the ContainsFold predicate on the "pseudo" field.
func PseudoEqualFold ¶
PseudoEqualFold applies the EqualFold predicate on the "pseudo" field.
func PseudoHasPrefix ¶
PseudoHasPrefix applies the HasPrefix predicate on the "pseudo" field.
func PseudoHasSuffix ¶
PseudoHasSuffix applies the HasSuffix predicate on the "pseudo" field.
func PseudoNotIn ¶
PseudoNotIn applies the NotIn predicate on the "pseudo" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.