Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SnippetDocument) predicate.SnippetDocument
- func CreateTime(v time.Time) predicate.SnippetDocument
- func CreateTimeEQ(v time.Time) predicate.SnippetDocument
- func CreateTimeGT(v time.Time) predicate.SnippetDocument
- func CreateTimeGTE(v time.Time) predicate.SnippetDocument
- func CreateTimeIn(vs ...time.Time) predicate.SnippetDocument
- func CreateTimeLT(v time.Time) predicate.SnippetDocument
- func CreateTimeLTE(v time.Time) predicate.SnippetDocument
- func CreateTimeNEQ(v time.Time) predicate.SnippetDocument
- func CreateTimeNotIn(vs ...time.Time) predicate.SnippetDocument
- func Description(v string) predicate.SnippetDocument
- func DescriptionContains(v string) predicate.SnippetDocument
- func DescriptionContainsFold(v string) predicate.SnippetDocument
- func DescriptionEQ(v string) predicate.SnippetDocument
- func DescriptionEqualFold(v string) predicate.SnippetDocument
- func DescriptionGT(v string) predicate.SnippetDocument
- func DescriptionGTE(v string) predicate.SnippetDocument
- func DescriptionHasPrefix(v string) predicate.SnippetDocument
- func DescriptionHasSuffix(v string) predicate.SnippetDocument
- func DescriptionIn(vs ...string) predicate.SnippetDocument
- func DescriptionLT(v string) predicate.SnippetDocument
- func DescriptionLTE(v string) predicate.SnippetDocument
- func DescriptionNEQ(v string) predicate.SnippetDocument
- func DescriptionNotIn(vs ...string) predicate.SnippetDocument
- func HasDocOwner() predicate.SnippetDocument
- func HasDocOwnerWith(preds ...predicate.Member) predicate.SnippetDocument
- func HasDocSnippet() predicate.SnippetDocument
- func HasDocSnippetWith(preds ...predicate.Snippet) predicate.SnippetDocument
- func ID(id int) predicate.SnippetDocument
- func IDEQ(id int) predicate.SnippetDocument
- func IDGT(id int) predicate.SnippetDocument
- func IDGTE(id int) predicate.SnippetDocument
- func IDIn(ids ...int) predicate.SnippetDocument
- func IDLT(id int) predicate.SnippetDocument
- func IDLTE(id int) predicate.SnippetDocument
- func IDNEQ(id int) predicate.SnippetDocument
- func IDNotIn(ids ...int) predicate.SnippetDocument
- func Language(v string) predicate.SnippetDocument
- func LanguageContains(v string) predicate.SnippetDocument
- func LanguageContainsFold(v string) predicate.SnippetDocument
- func LanguageEQ(v string) predicate.SnippetDocument
- func LanguageEqualFold(v string) predicate.SnippetDocument
- func LanguageGT(v string) predicate.SnippetDocument
- func LanguageGTE(v string) predicate.SnippetDocument
- func LanguageHasPrefix(v string) predicate.SnippetDocument
- func LanguageHasSuffix(v string) predicate.SnippetDocument
- func LanguageIn(vs ...string) predicate.SnippetDocument
- func LanguageLT(v string) predicate.SnippetDocument
- func LanguageLTE(v string) predicate.SnippetDocument
- func LanguageNEQ(v string) predicate.SnippetDocument
- func LanguageNotIn(vs ...string) predicate.SnippetDocument
- func Not(p predicate.SnippetDocument) predicate.SnippetDocument
- func Or(predicates ...predicate.SnippetDocument) predicate.SnippetDocument
- func OwnerID(v int) predicate.SnippetDocument
- func OwnerIDEQ(v int) predicate.SnippetDocument
- func OwnerIDIn(vs ...int) predicate.SnippetDocument
- func OwnerIDNEQ(v int) predicate.SnippetDocument
- func OwnerIDNotIn(vs ...int) predicate.SnippetDocument
- func Raw(v string) predicate.SnippetDocument
- func RawContains(v string) predicate.SnippetDocument
- func RawContainsFold(v string) predicate.SnippetDocument
- func RawEQ(v string) predicate.SnippetDocument
- func RawEqualFold(v string) predicate.SnippetDocument
- func RawGT(v string) predicate.SnippetDocument
- func RawGTE(v string) predicate.SnippetDocument
- func RawHasPrefix(v string) predicate.SnippetDocument
- func RawHasSuffix(v string) predicate.SnippetDocument
- func RawIn(vs ...string) predicate.SnippetDocument
- func RawLT(v string) predicate.SnippetDocument
- func RawLTE(v string) predicate.SnippetDocument
- func RawNEQ(v string) predicate.SnippetDocument
- func RawNotIn(vs ...string) predicate.SnippetDocument
- func SnippetID(v int) predicate.SnippetDocument
- func SnippetIDEQ(v int) predicate.SnippetDocument
- func SnippetIDIn(vs ...int) predicate.SnippetDocument
- func SnippetIDNEQ(v int) predicate.SnippetDocument
- func SnippetIDNotIn(vs ...int) predicate.SnippetDocument
- func UpdateTime(v time.Time) predicate.SnippetDocument
- func UpdateTimeEQ(v time.Time) predicate.SnippetDocument
- func UpdateTimeGT(v time.Time) predicate.SnippetDocument
- func UpdateTimeGTE(v time.Time) predicate.SnippetDocument
- func UpdateTimeIn(vs ...time.Time) predicate.SnippetDocument
- func UpdateTimeLT(v time.Time) predicate.SnippetDocument
- func UpdateTimeLTE(v time.Time) predicate.SnippetDocument
- func UpdateTimeNEQ(v time.Time) predicate.SnippetDocument
- func UpdateTimeNotIn(vs ...time.Time) predicate.SnippetDocument
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the snippetdocument type in the database. Label = "snippet_document" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSnippetID holds the string denoting the snippet_id field in the database. FieldSnippetID = "snippet_id" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldLanguage holds the string denoting the language field in the database. FieldLanguage = "language" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldRaw holds the string denoting the raw field in the database. FieldRaw = "raw" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // EdgeDocOwner holds the string denoting the doc_owner edge name in mutations. EdgeDocOwner = "doc_owner" // EdgeDocSnippet holds the string denoting the doc_snippet edge name in mutations. EdgeDocSnippet = "doc_snippet" // Table holds the table name of the snippetdocument in the database. Table = "snippet_docs" // DocOwnerTable is the table the holds the doc_owner relation/edge. DocOwnerTable = "snippet_docs" // DocOwnerInverseTable is the table name for the Member entity. // It exists in this package in order to avoid circular dependency with the "member" package. DocOwnerInverseTable = "member" // DocOwnerColumn is the table column denoting the doc_owner relation/edge. DocOwnerColumn = "owner_id" // DocSnippetTable is the table the holds the doc_snippet relation/edge. DocSnippetTable = "snippet_docs" // DocSnippetInverseTable is the table name for the Snippet entity. // It exists in this package in order to avoid circular dependency with the "snippet" package. DocSnippetInverseTable = "snippets" // DocSnippetColumn is the table column denoting the doc_snippet relation/edge. DocSnippetColumn = "snippet_id" )
Variables ¶
var ( // DefaultLanguage holds the default value on creation for the "language" field. DefaultLanguage string // LanguageValidator is a validator for the "language" field. It is called by the builders before save. LanguageValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time )
var Columns = []string{ FieldID, FieldSnippetID, FieldOwnerID, FieldLanguage, FieldDescription, FieldRaw, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for snippetdocument fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SnippetDocument) predicate.SnippetDocument
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.SnippetDocument
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.SnippetDocument
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.SnippetDocument
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.SnippetDocument
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.SnippetDocument
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.SnippetDocument
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.SnippetDocument
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.SnippetDocument
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.SnippetDocument
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Description ¶
func Description(v string) predicate.SnippetDocument
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.SnippetDocument
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.SnippetDocument
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.SnippetDocument
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.SnippetDocument
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.SnippetDocument
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.SnippetDocument
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.SnippetDocument
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.SnippetDocument
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.SnippetDocument
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.SnippetDocument
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.SnippetDocument
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.SnippetDocument
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.SnippetDocument
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasDocOwner ¶
func HasDocOwner() predicate.SnippetDocument
HasDocOwner applies the HasEdge predicate on the "doc_owner" edge.
func HasDocOwnerWith ¶
func HasDocOwnerWith(preds ...predicate.Member) predicate.SnippetDocument
HasDocOwnerWith applies the HasEdge predicate on the "doc_owner" edge with a given conditions (other predicates).
func HasDocSnippet ¶
func HasDocSnippet() predicate.SnippetDocument
HasDocSnippet applies the HasEdge predicate on the "doc_snippet" edge.
func HasDocSnippetWith ¶
func HasDocSnippetWith(preds ...predicate.Snippet) predicate.SnippetDocument
HasDocSnippetWith applies the HasEdge predicate on the "doc_snippet" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.SnippetDocument
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.SnippetDocument
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.SnippetDocument
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.SnippetDocument
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.SnippetDocument
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.SnippetDocument
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.SnippetDocument
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.SnippetDocument
IDNotIn applies the NotIn predicate on the ID field.
func Language ¶
func Language(v string) predicate.SnippetDocument
Language applies equality check predicate on the "language" field. It's identical to LanguageEQ.
func LanguageContains ¶
func LanguageContains(v string) predicate.SnippetDocument
LanguageContains applies the Contains predicate on the "language" field.
func LanguageContainsFold ¶
func LanguageContainsFold(v string) predicate.SnippetDocument
LanguageContainsFold applies the ContainsFold predicate on the "language" field.
func LanguageEQ ¶
func LanguageEQ(v string) predicate.SnippetDocument
LanguageEQ applies the EQ predicate on the "language" field.
func LanguageEqualFold ¶
func LanguageEqualFold(v string) predicate.SnippetDocument
LanguageEqualFold applies the EqualFold predicate on the "language" field.
func LanguageGT ¶
func LanguageGT(v string) predicate.SnippetDocument
LanguageGT applies the GT predicate on the "language" field.
func LanguageGTE ¶
func LanguageGTE(v string) predicate.SnippetDocument
LanguageGTE applies the GTE predicate on the "language" field.
func LanguageHasPrefix ¶
func LanguageHasPrefix(v string) predicate.SnippetDocument
LanguageHasPrefix applies the HasPrefix predicate on the "language" field.
func LanguageHasSuffix ¶
func LanguageHasSuffix(v string) predicate.SnippetDocument
LanguageHasSuffix applies the HasSuffix predicate on the "language" field.
func LanguageIn ¶
func LanguageIn(vs ...string) predicate.SnippetDocument
LanguageIn applies the In predicate on the "language" field.
func LanguageLT ¶
func LanguageLT(v string) predicate.SnippetDocument
LanguageLT applies the LT predicate on the "language" field.
func LanguageLTE ¶
func LanguageLTE(v string) predicate.SnippetDocument
LanguageLTE applies the LTE predicate on the "language" field.
func LanguageNEQ ¶
func LanguageNEQ(v string) predicate.SnippetDocument
LanguageNEQ applies the NEQ predicate on the "language" field.
func LanguageNotIn ¶
func LanguageNotIn(vs ...string) predicate.SnippetDocument
LanguageNotIn applies the NotIn predicate on the "language" field.
func Not ¶
func Not(p predicate.SnippetDocument) predicate.SnippetDocument
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SnippetDocument) predicate.SnippetDocument
Or groups predicates with the OR operator between them.
func OwnerID ¶
func OwnerID(v int) predicate.SnippetDocument
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDEQ ¶
func OwnerIDEQ(v int) predicate.SnippetDocument
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDIn ¶
func OwnerIDIn(vs ...int) predicate.SnippetDocument
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDNEQ ¶
func OwnerIDNEQ(v int) predicate.SnippetDocument
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
func OwnerIDNotIn(vs ...int) predicate.SnippetDocument
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func Raw ¶
func Raw(v string) predicate.SnippetDocument
Raw applies equality check predicate on the "raw" field. It's identical to RawEQ.
func RawContains ¶
func RawContains(v string) predicate.SnippetDocument
RawContains applies the Contains predicate on the "raw" field.
func RawContainsFold ¶
func RawContainsFold(v string) predicate.SnippetDocument
RawContainsFold applies the ContainsFold predicate on the "raw" field.
func RawEQ ¶
func RawEQ(v string) predicate.SnippetDocument
RawEQ applies the EQ predicate on the "raw" field.
func RawEqualFold ¶
func RawEqualFold(v string) predicate.SnippetDocument
RawEqualFold applies the EqualFold predicate on the "raw" field.
func RawGT ¶
func RawGT(v string) predicate.SnippetDocument
RawGT applies the GT predicate on the "raw" field.
func RawGTE ¶
func RawGTE(v string) predicate.SnippetDocument
RawGTE applies the GTE predicate on the "raw" field.
func RawHasPrefix ¶
func RawHasPrefix(v string) predicate.SnippetDocument
RawHasPrefix applies the HasPrefix predicate on the "raw" field.
func RawHasSuffix ¶
func RawHasSuffix(v string) predicate.SnippetDocument
RawHasSuffix applies the HasSuffix predicate on the "raw" field.
func RawIn ¶
func RawIn(vs ...string) predicate.SnippetDocument
RawIn applies the In predicate on the "raw" field.
func RawLT ¶
func RawLT(v string) predicate.SnippetDocument
RawLT applies the LT predicate on the "raw" field.
func RawLTE ¶
func RawLTE(v string) predicate.SnippetDocument
RawLTE applies the LTE predicate on the "raw" field.
func RawNEQ ¶
func RawNEQ(v string) predicate.SnippetDocument
RawNEQ applies the NEQ predicate on the "raw" field.
func RawNotIn ¶
func RawNotIn(vs ...string) predicate.SnippetDocument
RawNotIn applies the NotIn predicate on the "raw" field.
func SnippetID ¶
func SnippetID(v int) predicate.SnippetDocument
SnippetID applies equality check predicate on the "snippet_id" field. It's identical to SnippetIDEQ.
func SnippetIDEQ ¶
func SnippetIDEQ(v int) predicate.SnippetDocument
SnippetIDEQ applies the EQ predicate on the "snippet_id" field.
func SnippetIDIn ¶
func SnippetIDIn(vs ...int) predicate.SnippetDocument
SnippetIDIn applies the In predicate on the "snippet_id" field.
func SnippetIDNEQ ¶
func SnippetIDNEQ(v int) predicate.SnippetDocument
SnippetIDNEQ applies the NEQ predicate on the "snippet_id" field.
func SnippetIDNotIn ¶
func SnippetIDNotIn(vs ...int) predicate.SnippetDocument
SnippetIDNotIn applies the NotIn predicate on the "snippet_id" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.SnippetDocument
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.SnippetDocument
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.SnippetDocument
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.SnippetDocument
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.SnippetDocument
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.SnippetDocument
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.SnippetDocument
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.SnippetDocument
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.SnippetDocument
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.