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 ExpiredAt(v time.Time) predicate.Token
- func ExpiredAtEQ(v time.Time) predicate.Token
- func ExpiredAtGT(v time.Time) predicate.Token
- func ExpiredAtGTE(v time.Time) predicate.Token
- func ExpiredAtIn(vs ...time.Time) predicate.Token
- func ExpiredAtLT(v time.Time) predicate.Token
- func ExpiredAtLTE(v time.Time) predicate.Token
- func ExpiredAtNEQ(v time.Time) predicate.Token
- func ExpiredAtNotIn(vs ...time.Time) 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 Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) predicate.Token
- func Source(v string) predicate.Token
- func SourceContains(v string) predicate.Token
- func SourceContainsFold(v string) predicate.Token
- func SourceEQ(v string) predicate.Token
- func SourceEqualFold(v string) predicate.Token
- func SourceGT(v string) predicate.Token
- func SourceGTE(v string) predicate.Token
- func SourceHasPrefix(v string) predicate.Token
- func SourceHasSuffix(v string) predicate.Token
- func SourceIn(vs ...string) predicate.Token
- func SourceLT(v string) predicate.Token
- func SourceLTE(v string) predicate.Token
- func SourceNEQ(v string) predicate.Token
- func SourceNotIn(vs ...string) predicate.Token
- func Status(v uint8) predicate.Token
- func StatusEQ(v uint8) predicate.Token
- func StatusGT(v uint8) predicate.Token
- func StatusGTE(v uint8) predicate.Token
- func StatusIn(vs ...uint8) predicate.Token
- func StatusIsNil() predicate.Token
- func StatusLT(v uint8) predicate.Token
- func StatusLTE(v uint8) predicate.Token
- func StatusNEQ(v uint8) predicate.Token
- func StatusNotIn(vs ...uint8) predicate.Token
- func StatusNotNil() 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 UUID(v uuid.UUID) predicate.Token
- func UUIDEQ(v uuid.UUID) predicate.Token
- func UUIDGT(v uuid.UUID) predicate.Token
- func UUIDGTE(v uuid.UUID) predicate.Token
- func UUIDIn(vs ...uuid.UUID) predicate.Token
- func UUIDLT(v uuid.UUID) predicate.Token
- func UUIDLTE(v uuid.UUID) predicate.Token
- func UUIDNEQ(v uuid.UUID) predicate.Token
- func UUIDNotIn(vs ...uuid.UUID) 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
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySource(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByUUID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // 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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldExpiredAt holds the string denoting the expired_at field in the database. FieldExpiredAt = "expired_at" // Table holds the table name of the token in the database. Table = "sys_tokens" )
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 // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus uint8 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldUUID, FieldToken, FieldSource, FieldExpiredAt, }
Columns holds all SQL columns for token 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 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 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 Source ¶
Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
func SourceContains ¶
SourceContains applies the Contains predicate on the "source" field.
func SourceContainsFold ¶
SourceContainsFold applies the ContainsFold predicate on the "source" field.
func SourceEqualFold ¶
SourceEqualFold applies the EqualFold predicate on the "source" field.
func SourceHasPrefix ¶
SourceHasPrefix applies the HasPrefix predicate on the "source" field.
func SourceHasSuffix ¶
SourceHasSuffix applies the HasSuffix predicate on the "source" field.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" 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 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 ¶
type OrderOption ¶ added in v1.0.0
OrderOption defines the ordering options for the Token queries.
func ByCreatedAt ¶ added in v1.0.0
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiredAt ¶ added in v1.0.0
func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
ByExpiredAt orders the results by the expired_at field.
func ByID ¶ added in v1.0.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySource ¶ added in v1.0.0
func BySource(opts ...sql.OrderTermOption) OrderOption
BySource orders the results by the source field.
func ByStatus ¶ added in v1.0.0
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByToken ¶ added in v1.0.0
func ByToken(opts ...sql.OrderTermOption) OrderOption
ByToken orders the results by the token field.
func ByUUID ¶ added in v1.0.0
func ByUUID(opts ...sql.OrderTermOption) OrderOption
ByUUID orders the results by the uuid field.
func ByUpdatedAt ¶ added in v1.0.0
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.