Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Document) predicate.Document
- func Content(v string) predicate.Document
- func ContentContains(v string) predicate.Document
- func ContentContainsFold(v string) predicate.Document
- func ContentEQ(v string) predicate.Document
- func ContentEqualFold(v string) predicate.Document
- func ContentGT(v string) predicate.Document
- func ContentGTE(v string) predicate.Document
- func ContentHasPrefix(v string) predicate.Document
- func ContentHasSuffix(v string) predicate.Document
- func ContentIn(vs ...string) predicate.Document
- func ContentLT(v string) predicate.Document
- func ContentLTE(v string) predicate.Document
- func ContentNEQ(v string) predicate.Document
- func ContentNotIn(vs ...string) predicate.Document
- func CreatedAt(v time.Time) predicate.Document
- func CreatedAtEQ(v time.Time) predicate.Document
- func CreatedAtGT(v time.Time) predicate.Document
- func CreatedAtGTE(v time.Time) predicate.Document
- func CreatedAtIn(vs ...time.Time) predicate.Document
- func CreatedAtLT(v time.Time) predicate.Document
- func CreatedAtLTE(v time.Time) predicate.Document
- func CreatedAtNEQ(v time.Time) predicate.Document
- func CreatedAtNotIn(vs ...time.Time) predicate.Document
- func ID(id int) predicate.Document
- func IDEQ(id int) predicate.Document
- func IDGT(id int) predicate.Document
- func IDGTE(id int) predicate.Document
- func IDIn(ids ...int) predicate.Document
- func IDLT(id int) predicate.Document
- func IDLTE(id int) predicate.Document
- func IDNEQ(id int) predicate.Document
- func IDNotIn(ids ...int) predicate.Document
- func Not(p predicate.Document) predicate.Document
- func Or(predicates ...predicate.Document) predicate.Document
- func TokenizedContent(v string) predicate.Document
- func TokenizedContentContains(v string) predicate.Document
- func TokenizedContentContainsFold(v string) predicate.Document
- func TokenizedContentEQ(v string) predicate.Document
- func TokenizedContentEqualFold(v string) predicate.Document
- func TokenizedContentGT(v string) predicate.Document
- func TokenizedContentGTE(v string) predicate.Document
- func TokenizedContentHasPrefix(v string) predicate.Document
- func TokenizedContentHasSuffix(v string) predicate.Document
- func TokenizedContentIn(vs ...string) predicate.Document
- func TokenizedContentLT(v string) predicate.Document
- func TokenizedContentLTE(v string) predicate.Document
- func TokenizedContentNEQ(v string) predicate.Document
- func TokenizedContentNotIn(vs ...string) predicate.Document
- func UpdatedAt(v time.Time) predicate.Document
- func UpdatedAtEQ(v time.Time) predicate.Document
- func UpdatedAtGT(v time.Time) predicate.Document
- func UpdatedAtGTE(v time.Time) predicate.Document
- func UpdatedAtIn(vs ...time.Time) predicate.Document
- func UpdatedAtLT(v time.Time) predicate.Document
- func UpdatedAtLTE(v time.Time) predicate.Document
- func UpdatedAtNEQ(v time.Time) predicate.Document
- func UpdatedAtNotIn(vs ...time.Time) predicate.Document
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the document type in the database. Label = "document" // 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" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldTokenizedContent holds the string denoting the tokenized_content field in the database. FieldTokenizedContent = "tokenized_content" // Table holds the table name of the document in the database. Table = "documents" )
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldContent, FieldTokenizedContent, }
Columns holds all SQL columns for document fields.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
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 TokenizedContent ¶
TokenizedContent applies equality check predicate on the "tokenized_content" field. It's identical to TokenizedContentEQ.
func TokenizedContentContains ¶
TokenizedContentContains applies the Contains predicate on the "tokenized_content" field.
func TokenizedContentContainsFold ¶
TokenizedContentContainsFold applies the ContainsFold predicate on the "tokenized_content" field.
func TokenizedContentEQ ¶
TokenizedContentEQ applies the EQ predicate on the "tokenized_content" field.
func TokenizedContentEqualFold ¶
TokenizedContentEqualFold applies the EqualFold predicate on the "tokenized_content" field.
func TokenizedContentGT ¶
TokenizedContentGT applies the GT predicate on the "tokenized_content" field.
func TokenizedContentGTE ¶
TokenizedContentGTE applies the GTE predicate on the "tokenized_content" field.
func TokenizedContentHasPrefix ¶
TokenizedContentHasPrefix applies the HasPrefix predicate on the "tokenized_content" field.
func TokenizedContentHasSuffix ¶
TokenizedContentHasSuffix applies the HasSuffix predicate on the "tokenized_content" field.
func TokenizedContentIn ¶
TokenizedContentIn applies the In predicate on the "tokenized_content" field.
func TokenizedContentLT ¶
TokenizedContentLT applies the LT predicate on the "tokenized_content" field.
func TokenizedContentLTE ¶
TokenizedContentLTE applies the LTE predicate on the "tokenized_content" field.
func TokenizedContentNEQ ¶
TokenizedContentNEQ applies the NEQ predicate on the "tokenized_content" field.
func TokenizedContentNotIn ¶
TokenizedContentNotIn applies the NotIn predicate on the "tokenized_content" 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.