Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OpenAIToken) predicate.OpenAIToken
- func ID(id int) predicate.OpenAIToken
- func IDEQ(id int) predicate.OpenAIToken
- func IDGT(id int) predicate.OpenAIToken
- func IDGTE(id int) predicate.OpenAIToken
- func IDIn(ids ...int) predicate.OpenAIToken
- func IDLT(id int) predicate.OpenAIToken
- func IDLTE(id int) predicate.OpenAIToken
- func IDNEQ(id int) predicate.OpenAIToken
- func IDNotIn(ids ...int) predicate.OpenAIToken
- func IsActive(v bool) predicate.OpenAIToken
- func IsActiveEQ(v bool) predicate.OpenAIToken
- func IsActiveNEQ(v bool) predicate.OpenAIToken
- func Not(p predicate.OpenAIToken) predicate.OpenAIToken
- func Or(predicates ...predicate.OpenAIToken) predicate.OpenAIToken
- func Token(v string) predicate.OpenAIToken
- func TokenContains(v string) predicate.OpenAIToken
- func TokenContainsFold(v string) predicate.OpenAIToken
- func TokenEQ(v string) predicate.OpenAIToken
- func TokenEqualFold(v string) predicate.OpenAIToken
- func TokenGT(v string) predicate.OpenAIToken
- func TokenGTE(v string) predicate.OpenAIToken
- func TokenHasPrefix(v string) predicate.OpenAIToken
- func TokenHasSuffix(v string) predicate.OpenAIToken
- func TokenIn(vs ...string) predicate.OpenAIToken
- func TokenLT(v string) predicate.OpenAIToken
- func TokenLTE(v string) predicate.OpenAIToken
- func TokenNEQ(v string) predicate.OpenAIToken
- func TokenNotIn(vs ...string) predicate.OpenAIToken
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the openaitoken type in the database. Label = "open_ai_token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldIsActive holds the string denoting the is_active field in the database. FieldIsActive = "is_active" // Table holds the table name of the openaitoken in the database. Table = "open_ai_tokens" )
Variables ¶
var ( // TokenValidator is a validator for the "token" field. It is called by the builders before save. TokenValidator func(string) error // DefaultIsActive holds the default value on creation for the "is_active" field. DefaultIsActive bool )
var Columns = []string{ FieldID, FieldToken, FieldIsActive, }
Columns holds all SQL columns for openaitoken fields.
Functions ¶
func And ¶
func And(predicates ...predicate.OpenAIToken) predicate.OpenAIToken
And groups predicates with the AND operator between them.
func IDGTE ¶
func IDGTE(id int) predicate.OpenAIToken
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.OpenAIToken
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.OpenAIToken
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.OpenAIToken
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.OpenAIToken
IDNotIn applies the NotIn predicate on the ID field.
func IsActive ¶
func IsActive(v bool) predicate.OpenAIToken
IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
func IsActiveEQ ¶
func IsActiveEQ(v bool) predicate.OpenAIToken
IsActiveEQ applies the EQ predicate on the "is_active" field.
func IsActiveNEQ ¶
func IsActiveNEQ(v bool) predicate.OpenAIToken
IsActiveNEQ applies the NEQ predicate on the "is_active" field.
func Not ¶
func Not(p predicate.OpenAIToken) predicate.OpenAIToken
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.OpenAIToken) predicate.OpenAIToken
Or groups predicates with the OR operator between them.
func Token ¶
func Token(v string) predicate.OpenAIToken
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
func TokenContains(v string) predicate.OpenAIToken
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
func TokenContainsFold(v string) predicate.OpenAIToken
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEQ ¶
func TokenEQ(v string) predicate.OpenAIToken
TokenEQ applies the EQ predicate on the "token" field.
func TokenEqualFold ¶
func TokenEqualFold(v string) predicate.OpenAIToken
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenGT ¶
func TokenGT(v string) predicate.OpenAIToken
TokenGT applies the GT predicate on the "token" field.
func TokenGTE ¶
func TokenGTE(v string) predicate.OpenAIToken
TokenGTE applies the GTE predicate on the "token" field.
func TokenHasPrefix ¶
func TokenHasPrefix(v string) predicate.OpenAIToken
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
func TokenHasSuffix(v string) predicate.OpenAIToken
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenIn ¶
func TokenIn(vs ...string) predicate.OpenAIToken
TokenIn applies the In predicate on the "token" field.
func TokenLT ¶
func TokenLT(v string) predicate.OpenAIToken
TokenLT applies the LT predicate on the "token" field.
func TokenLTE ¶
func TokenLTE(v string) predicate.OpenAIToken
TokenLTE applies the LTE predicate on the "token" field.
func TokenNEQ ¶
func TokenNEQ(v string) predicate.OpenAIToken
TokenNEQ applies the NEQ predicate on the "token" field.
func TokenNotIn ¶
func TokenNotIn(vs ...string) predicate.OpenAIToken
TokenNotIn applies the NotIn predicate on the "token" 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 OpenAIToken queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsActive ¶
func ByIsActive(opts ...sql.OrderTermOption) OrderOption
ByIsActive orders the results by the is_active field.
func ByToken ¶
func ByToken(opts ...sql.OrderTermOption) OrderOption
ByToken orders the results by the token field.