Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Term) predicate.Term
- func CreatedAt(v time.Time) predicate.Term
- func CreatedAtEQ(v time.Time) predicate.Term
- func CreatedAtGT(v time.Time) predicate.Term
- func CreatedAtGTE(v time.Time) predicate.Term
- func CreatedAtIn(vs ...time.Time) predicate.Term
- func CreatedAtLT(v time.Time) predicate.Term
- func CreatedAtLTE(v time.Time) predicate.Term
- func CreatedAtNEQ(v time.Time) predicate.Term
- func CreatedAtNotIn(vs ...time.Time) predicate.Term
- func ID(id uuid.UUID) predicate.Term
- func IDEQ(id uuid.UUID) predicate.Term
- func IDGT(id uuid.UUID) predicate.Term
- func IDGTE(id uuid.UUID) predicate.Term
- func IDIn(ids ...uuid.UUID) predicate.Term
- func IDLT(id uuid.UUID) predicate.Term
- func IDLTE(id uuid.UUID) predicate.Term
- func IDNEQ(id uuid.UUID) predicate.Term
- func IDNotIn(ids ...uuid.UUID) predicate.Term
- func Not(p predicate.Term) predicate.Term
- func Or(predicates ...predicate.Term) predicate.Term
- func PostingListCompressed(v []byte) predicate.Term
- func PostingListCompressedEQ(v []byte) predicate.Term
- func PostingListCompressedGT(v []byte) predicate.Term
- func PostingListCompressedGTE(v []byte) predicate.Term
- func PostingListCompressedIn(vs ...[]byte) predicate.Term
- func PostingListCompressedLT(v []byte) predicate.Term
- func PostingListCompressedLTE(v []byte) predicate.Term
- func PostingListCompressedNEQ(v []byte) predicate.Term
- func PostingListCompressedNotIn(vs ...[]byte) predicate.Term
- func UpdatedAt(v time.Time) predicate.Term
- func UpdatedAtEQ(v time.Time) predicate.Term
- func UpdatedAtGT(v time.Time) predicate.Term
- func UpdatedAtGTE(v time.Time) predicate.Term
- func UpdatedAtIn(vs ...time.Time) predicate.Term
- func UpdatedAtLT(v time.Time) predicate.Term
- func UpdatedAtLTE(v time.Time) predicate.Term
- func UpdatedAtNEQ(v time.Time) predicate.Term
- func UpdatedAtNotIn(vs ...time.Time) predicate.Term
- func ValidColumn(column string) bool
- func Word(v string) predicate.Term
- func WordContains(v string) predicate.Term
- func WordContainsFold(v string) predicate.Term
- func WordEQ(v string) predicate.Term
- func WordEqualFold(v string) predicate.Term
- func WordGT(v string) predicate.Term
- func WordGTE(v string) predicate.Term
- func WordHasPrefix(v string) predicate.Term
- func WordHasSuffix(v string) predicate.Term
- func WordIn(vs ...string) predicate.Term
- func WordLT(v string) predicate.Term
- func WordLTE(v string) predicate.Term
- func WordNEQ(v string) predicate.Term
- func WordNotIn(vs ...string) predicate.Term
Constants ¶
const ( // Label holds the string label denoting the term type in the database. Label = "term" // FieldID holds the string denoting the id field in the database. FieldID = "uuid" // 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" // FieldWord holds the string denoting the word field in the database. FieldWord = "word" // FieldPostingListCompressed holds the string denoting the posting_list_compressed field in the database. FieldPostingListCompressed = "posting_list_compressed" // Table holds the table name of the term in the database. Table = "terms" )
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 // PostingListCompressedValidator is a validator for the "posting_list_compressed" field. It is called by the builders before save. PostingListCompressedValidator func([]byte) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWord, FieldPostingListCompressed, }
Columns holds all SQL columns for term 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 PostingListCompressed ¶
PostingListCompressed applies equality check predicate on the "posting_list_compressed" field. It's identical to PostingListCompressedEQ.
func PostingListCompressedEQ ¶
PostingListCompressedEQ applies the EQ predicate on the "posting_list_compressed" field.
func PostingListCompressedGT ¶
PostingListCompressedGT applies the GT predicate on the "posting_list_compressed" field.
func PostingListCompressedGTE ¶
PostingListCompressedGTE applies the GTE predicate on the "posting_list_compressed" field.
func PostingListCompressedIn ¶
PostingListCompressedIn applies the In predicate on the "posting_list_compressed" field.
func PostingListCompressedLT ¶
PostingListCompressedLT applies the LT predicate on the "posting_list_compressed" field.
func PostingListCompressedLTE ¶
PostingListCompressedLTE applies the LTE predicate on the "posting_list_compressed" field.
func PostingListCompressedNEQ ¶
PostingListCompressedNEQ applies the NEQ predicate on the "posting_list_compressed" field.
func PostingListCompressedNotIn ¶
PostingListCompressedNotIn applies the NotIn predicate on the "posting_list_compressed" 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).
func WordContains ¶
WordContains applies the Contains predicate on the "word" field.
func WordContainsFold ¶
WordContainsFold applies the ContainsFold predicate on the "word" field.
func WordEqualFold ¶
WordEqualFold applies the EqualFold predicate on the "word" field.
func WordHasPrefix ¶
WordHasPrefix applies the HasPrefix predicate on the "word" field.
func WordHasSuffix ¶
WordHasSuffix applies the HasSuffix predicate on the "word" field.
Types ¶
This section is empty.