Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Token) predicate.Token
- func CreatedAt(v time.Time) predicate.Token
- func CreatedAtEQ(v time.Time) predicate.Token
- func CreatedAtGT(v time.Time) predicate.Token
- func CreatedAtGTE(v time.Time) predicate.Token
- func CreatedAtIn(vs ...time.Time) predicate.Token
- func CreatedAtLT(v time.Time) predicate.Token
- func CreatedAtLTE(v time.Time) predicate.Token
- func CreatedAtNEQ(v time.Time) predicate.Token
- func CreatedAtNotIn(vs ...time.Time) predicate.Token
- func DeletedAt(v time.Time) predicate.Token
- func DeletedAtEQ(v time.Time) predicate.Token
- func DeletedAtGT(v time.Time) predicate.Token
- func DeletedAtGTE(v time.Time) predicate.Token
- func DeletedAtIn(vs ...time.Time) predicate.Token
- func DeletedAtIsNil() predicate.Token
- func DeletedAtLT(v time.Time) predicate.Token
- func DeletedAtLTE(v time.Time) predicate.Token
- func DeletedAtNEQ(v time.Time) predicate.Token
- func DeletedAtNotIn(vs ...time.Time) predicate.Token
- func DeletedAtNotNil() predicate.Token
- func HasOwner() predicate.Token
- func HasOwnerWith(preds ...predicate.User) predicate.Token
- func ID(id uuid.UUID) predicate.Token
- func IDEQ(id uuid.UUID) predicate.Token
- func IDGT(id uuid.UUID) predicate.Token
- func IDGTE(id uuid.UUID) predicate.Token
- func IDIn(ids ...uuid.UUID) predicate.Token
- func IDLT(id uuid.UUID) predicate.Token
- func IDLTE(id uuid.UUID) predicate.Token
- func IDNEQ(id uuid.UUID) predicate.Token
- func IDNotIn(ids ...uuid.UUID) predicate.Token
- func Name(v string) predicate.Token
- func NameContains(v string) predicate.Token
- func NameContainsFold(v string) predicate.Token
- func NameEQ(v string) predicate.Token
- func NameEqualFold(v string) predicate.Token
- func NameGT(v string) predicate.Token
- func NameGTE(v string) predicate.Token
- func NameHasPrefix(v string) predicate.Token
- func NameHasSuffix(v string) predicate.Token
- func NameIn(vs ...string) predicate.Token
- func NameLT(v string) predicate.Token
- func NameLTE(v string) predicate.Token
- func NameNEQ(v string) predicate.Token
- func NameNotIn(vs ...string) predicate.Token
- func Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) predicate.Token
- func Token(v string) predicate.Token
- func TokenContains(v string) predicate.Token
- func TokenContainsFold(v string) predicate.Token
- func TokenEQ(v string) predicate.Token
- func TokenEqualFold(v string) predicate.Token
- func TokenGT(v string) predicate.Token
- func TokenGTE(v string) predicate.Token
- func TokenHasPrefix(v string) predicate.Token
- func TokenHasSuffix(v string) predicate.Token
- func TokenIn(vs ...string) predicate.Token
- func TokenLT(v string) predicate.Token
- func TokenLTE(v string) predicate.Token
- func TokenNEQ(v string) predicate.Token
- func TokenNotIn(vs ...string) predicate.Token
- func Type(v string) predicate.Token
- func TypeContains(v string) predicate.Token
- func TypeContainsFold(v string) predicate.Token
- func TypeEQ(v string) predicate.Token
- func TypeEqualFold(v string) predicate.Token
- func TypeGT(v string) predicate.Token
- func TypeGTE(v string) predicate.Token
- func TypeHasPrefix(v string) predicate.Token
- func TypeHasSuffix(v string) predicate.Token
- func TypeIn(vs ...string) predicate.Token
- func TypeLT(v string) predicate.Token
- func TypeLTE(v string) predicate.Token
- func TypeNEQ(v string) predicate.Token
- func TypeNotIn(vs ...string) predicate.Token
- func UpdatedAt(v time.Time) predicate.Token
- func UpdatedAtEQ(v time.Time) predicate.Token
- func UpdatedAtGT(v time.Time) predicate.Token
- func UpdatedAtGTE(v time.Time) predicate.Token
- func UpdatedAtIn(vs ...time.Time) predicate.Token
- func UpdatedAtLT(v time.Time) predicate.Token
- func UpdatedAtLTE(v time.Time) predicate.Token
- func UpdatedAtNEQ(v time.Time) predicate.Token
- func UpdatedAtNotIn(vs ...time.Time) predicate.Token
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the token type in the database. Label = "token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the token in the database. Table = "tokens" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "tokens" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_tokens" )
Variables ¶
var ( // DefaultType holds the default value on creation for the "type" field. DefaultType string // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // 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, FieldType, FieldName, FieldToken, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for token fields.
var ForeignKeys = []string{
"user_tokens",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tokens" table and are not defined as standalone fields in the schema.
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" 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.