Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Reflection) predicate.Reflection
- func Content(v string) predicate.Reflection
- func ContentContains(v string) predicate.Reflection
- func ContentContainsFold(v string) predicate.Reflection
- func ContentEQ(v string) predicate.Reflection
- func ContentEqualFold(v string) predicate.Reflection
- func ContentGT(v string) predicate.Reflection
- func ContentGTE(v string) predicate.Reflection
- func ContentHasPrefix(v string) predicate.Reflection
- func ContentHasSuffix(v string) predicate.Reflection
- func ContentIn(vs ...string) predicate.Reflection
- func ContentLT(v string) predicate.Reflection
- func ContentLTE(v string) predicate.Reflection
- func ContentNEQ(v string) predicate.Reflection
- func ContentNotIn(vs ...string) predicate.Reflection
- func CreatedAt(v time.Time) predicate.Reflection
- func CreatedAtEQ(v time.Time) predicate.Reflection
- func CreatedAtGT(v time.Time) predicate.Reflection
- func CreatedAtGTE(v time.Time) predicate.Reflection
- func CreatedAtIn(vs ...time.Time) predicate.Reflection
- func CreatedAtLT(v time.Time) predicate.Reflection
- func CreatedAtLTE(v time.Time) predicate.Reflection
- func CreatedAtNEQ(v time.Time) predicate.Reflection
- func CreatedAtNotIn(vs ...time.Time) predicate.Reflection
- func Generation(v int) predicate.Reflection
- func GenerationEQ(v int) predicate.Reflection
- func GenerationGT(v int) predicate.Reflection
- func GenerationGTE(v int) predicate.Reflection
- func GenerationIn(vs ...int) predicate.Reflection
- func GenerationLT(v int) predicate.Reflection
- func GenerationLTE(v int) predicate.Reflection
- func GenerationNEQ(v int) predicate.Reflection
- func GenerationNotIn(vs ...int) predicate.Reflection
- func ID(id uuid.UUID) predicate.Reflection
- func IDEQ(id uuid.UUID) predicate.Reflection
- func IDGT(id uuid.UUID) predicate.Reflection
- func IDGTE(id uuid.UUID) predicate.Reflection
- func IDIn(ids ...uuid.UUID) predicate.Reflection
- func IDLT(id uuid.UUID) predicate.Reflection
- func IDLTE(id uuid.UUID) predicate.Reflection
- func IDNEQ(id uuid.UUID) predicate.Reflection
- func IDNotIn(ids ...uuid.UUID) predicate.Reflection
- func Not(p predicate.Reflection) predicate.Reflection
- func Or(predicates ...predicate.Reflection) predicate.Reflection
- func SessionKey(v string) predicate.Reflection
- func SessionKeyContains(v string) predicate.Reflection
- func SessionKeyContainsFold(v string) predicate.Reflection
- func SessionKeyEQ(v string) predicate.Reflection
- func SessionKeyEqualFold(v string) predicate.Reflection
- func SessionKeyGT(v string) predicate.Reflection
- func SessionKeyGTE(v string) predicate.Reflection
- func SessionKeyHasPrefix(v string) predicate.Reflection
- func SessionKeyHasSuffix(v string) predicate.Reflection
- func SessionKeyIn(vs ...string) predicate.Reflection
- func SessionKeyLT(v string) predicate.Reflection
- func SessionKeyLTE(v string) predicate.Reflection
- func SessionKeyNEQ(v string) predicate.Reflection
- func SessionKeyNotIn(vs ...string) predicate.Reflection
- func TokenCount(v int) predicate.Reflection
- func TokenCountEQ(v int) predicate.Reflection
- func TokenCountGT(v int) predicate.Reflection
- func TokenCountGTE(v int) predicate.Reflection
- func TokenCountIn(vs ...int) predicate.Reflection
- func TokenCountLT(v int) predicate.Reflection
- func TokenCountLTE(v int) predicate.Reflection
- func TokenCountNEQ(v int) predicate.Reflection
- func TokenCountNotIn(vs ...int) predicate.Reflection
- func ValidColumn(column string) bool
- type OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGeneration(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySessionKey(opts ...sql.OrderTermOption) OrderOption
- func ByTokenCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the reflection type in the database. Label = "reflection" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSessionKey holds the string denoting the session_key field in the database. FieldSessionKey = "session_key" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldTokenCount holds the string denoting the token_count field in the database. FieldTokenCount = "token_count" // FieldGeneration holds the string denoting the generation field in the database. FieldGeneration = "generation" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the reflection in the database. Table = "reflections" )
Variables ¶
var ( // SessionKeyValidator is a validator for the "session_key" field. It is called by the builders before save. SessionKeyValidator func(string) error // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error // DefaultTokenCount holds the default value on creation for the "token_count" field. DefaultTokenCount int // DefaultGeneration holds the default value on creation for the "generation" field. DefaultGeneration int // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldSessionKey, FieldContent, FieldTokenCount, FieldGeneration, FieldCreatedAt, }
Columns holds all SQL columns for reflection fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Reflection) predicate.Reflection
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.Reflection
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.Reflection
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.Reflection
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.Reflection
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.Reflection
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.Reflection
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.Reflection
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.Reflection
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.Reflection
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.Reflection
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.Reflection
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.Reflection
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.Reflection
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.Reflection
ContentNotIn applies the NotIn predicate on the "content" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Reflection
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Reflection
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Reflection
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Reflection
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Reflection
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Reflection
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Reflection
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Reflection
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Reflection
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Generation ¶
func Generation(v int) predicate.Reflection
Generation applies equality check predicate on the "generation" field. It's identical to GenerationEQ.
func GenerationEQ ¶
func GenerationEQ(v int) predicate.Reflection
GenerationEQ applies the EQ predicate on the "generation" field.
func GenerationGT ¶
func GenerationGT(v int) predicate.Reflection
GenerationGT applies the GT predicate on the "generation" field.
func GenerationGTE ¶
func GenerationGTE(v int) predicate.Reflection
GenerationGTE applies the GTE predicate on the "generation" field.
func GenerationIn ¶
func GenerationIn(vs ...int) predicate.Reflection
GenerationIn applies the In predicate on the "generation" field.
func GenerationLT ¶
func GenerationLT(v int) predicate.Reflection
GenerationLT applies the LT predicate on the "generation" field.
func GenerationLTE ¶
func GenerationLTE(v int) predicate.Reflection
GenerationLTE applies the LTE predicate on the "generation" field.
func GenerationNEQ ¶
func GenerationNEQ(v int) predicate.Reflection
GenerationNEQ applies the NEQ predicate on the "generation" field.
func GenerationNotIn ¶
func GenerationNotIn(vs ...int) predicate.Reflection
GenerationNotIn applies the NotIn predicate on the "generation" field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Reflection
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Reflection
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Reflection
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Reflection
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Reflection
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Reflection
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Reflection
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Reflection
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Reflection) predicate.Reflection
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Reflection) predicate.Reflection
Or groups predicates with the OR operator between them.
func SessionKey ¶
func SessionKey(v string) predicate.Reflection
SessionKey applies equality check predicate on the "session_key" field. It's identical to SessionKeyEQ.
func SessionKeyContains ¶
func SessionKeyContains(v string) predicate.Reflection
SessionKeyContains applies the Contains predicate on the "session_key" field.
func SessionKeyContainsFold ¶
func SessionKeyContainsFold(v string) predicate.Reflection
SessionKeyContainsFold applies the ContainsFold predicate on the "session_key" field.
func SessionKeyEQ ¶
func SessionKeyEQ(v string) predicate.Reflection
SessionKeyEQ applies the EQ predicate on the "session_key" field.
func SessionKeyEqualFold ¶
func SessionKeyEqualFold(v string) predicate.Reflection
SessionKeyEqualFold applies the EqualFold predicate on the "session_key" field.
func SessionKeyGT ¶
func SessionKeyGT(v string) predicate.Reflection
SessionKeyGT applies the GT predicate on the "session_key" field.
func SessionKeyGTE ¶
func SessionKeyGTE(v string) predicate.Reflection
SessionKeyGTE applies the GTE predicate on the "session_key" field.
func SessionKeyHasPrefix ¶
func SessionKeyHasPrefix(v string) predicate.Reflection
SessionKeyHasPrefix applies the HasPrefix predicate on the "session_key" field.
func SessionKeyHasSuffix ¶
func SessionKeyHasSuffix(v string) predicate.Reflection
SessionKeyHasSuffix applies the HasSuffix predicate on the "session_key" field.
func SessionKeyIn ¶
func SessionKeyIn(vs ...string) predicate.Reflection
SessionKeyIn applies the In predicate on the "session_key" field.
func SessionKeyLT ¶
func SessionKeyLT(v string) predicate.Reflection
SessionKeyLT applies the LT predicate on the "session_key" field.
func SessionKeyLTE ¶
func SessionKeyLTE(v string) predicate.Reflection
SessionKeyLTE applies the LTE predicate on the "session_key" field.
func SessionKeyNEQ ¶
func SessionKeyNEQ(v string) predicate.Reflection
SessionKeyNEQ applies the NEQ predicate on the "session_key" field.
func SessionKeyNotIn ¶
func SessionKeyNotIn(vs ...string) predicate.Reflection
SessionKeyNotIn applies the NotIn predicate on the "session_key" field.
func TokenCount ¶
func TokenCount(v int) predicate.Reflection
TokenCount applies equality check predicate on the "token_count" field. It's identical to TokenCountEQ.
func TokenCountEQ ¶
func TokenCountEQ(v int) predicate.Reflection
TokenCountEQ applies the EQ predicate on the "token_count" field.
func TokenCountGT ¶
func TokenCountGT(v int) predicate.Reflection
TokenCountGT applies the GT predicate on the "token_count" field.
func TokenCountGTE ¶
func TokenCountGTE(v int) predicate.Reflection
TokenCountGTE applies the GTE predicate on the "token_count" field.
func TokenCountIn ¶
func TokenCountIn(vs ...int) predicate.Reflection
TokenCountIn applies the In predicate on the "token_count" field.
func TokenCountLT ¶
func TokenCountLT(v int) predicate.Reflection
TokenCountLT applies the LT predicate on the "token_count" field.
func TokenCountLTE ¶
func TokenCountLTE(v int) predicate.Reflection
TokenCountLTE applies the LTE predicate on the "token_count" field.
func TokenCountNEQ ¶
func TokenCountNEQ(v int) predicate.Reflection
TokenCountNEQ applies the NEQ predicate on the "token_count" field.
func TokenCountNotIn ¶
func TokenCountNotIn(vs ...int) predicate.Reflection
TokenCountNotIn applies the NotIn predicate on the "token_count" 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 Reflection queries.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGeneration ¶
func ByGeneration(opts ...sql.OrderTermOption) OrderOption
ByGeneration orders the results by the generation field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySessionKey ¶
func BySessionKey(opts ...sql.OrderTermOption) OrderOption
BySessionKey orders the results by the session_key field.
func ByTokenCount ¶
func ByTokenCount(opts ...sql.OrderTermOption) OrderOption
ByTokenCount orders the results by the token_count field.