Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Snippet) predicate.Snippet
- func CreateTime(v time.Time) predicate.Snippet
- func CreateTimeEQ(v time.Time) predicate.Snippet
- func CreateTimeGT(v time.Time) predicate.Snippet
- func CreateTimeGTE(v time.Time) predicate.Snippet
- func CreateTimeIn(vs ...time.Time) predicate.Snippet
- func CreateTimeLT(v time.Time) predicate.Snippet
- func CreateTimeLTE(v time.Time) predicate.Snippet
- func CreateTimeNEQ(v time.Time) predicate.Snippet
- func CreateTimeNotIn(vs ...time.Time) predicate.Snippet
- func FolderID(v int) predicate.Snippet
- func FolderIDEQ(v int) predicate.Snippet
- func FolderIDGT(v int) predicate.Snippet
- func FolderIDGTE(v int) predicate.Snippet
- func FolderIDIn(vs ...int) predicate.Snippet
- func FolderIDIsNil() predicate.Snippet
- func FolderIDLT(v int) predicate.Snippet
- func FolderIDLTE(v int) predicate.Snippet
- func FolderIDNEQ(v int) predicate.Snippet
- func FolderIDNotIn(vs ...int) predicate.Snippet
- func FolderIDNotNil() predicate.Snippet
- func HasSnippetDocs() predicate.Snippet
- func HasSnippetDocsWith(preds ...predicate.SnippetDocument) predicate.Snippet
- func HasSnippetTags() predicate.Snippet
- func HasSnippetTagsWith(preds ...predicate.SnippetTag) predicate.Snippet
- func ID(id int) predicate.Snippet
- func IDEQ(id int) predicate.Snippet
- func IDGT(id int) predicate.Snippet
- func IDGTE(id int) predicate.Snippet
- func IDIn(ids ...int) predicate.Snippet
- func IDLT(id int) predicate.Snippet
- func IDLTE(id int) predicate.Snippet
- func IDNEQ(id int) predicate.Snippet
- func IDNotIn(ids ...int) predicate.Snippet
- func Not(p predicate.Snippet) predicate.Snippet
- func Or(predicates ...predicate.Snippet) predicate.Snippet
- func OwnerID(v int) predicate.Snippet
- func OwnerIDEQ(v int) predicate.Snippet
- func OwnerIDGT(v int) predicate.Snippet
- func OwnerIDGTE(v int) predicate.Snippet
- func OwnerIDIn(vs ...int) predicate.Snippet
- func OwnerIDLT(v int) predicate.Snippet
- func OwnerIDLTE(v int) predicate.Snippet
- func OwnerIDNEQ(v int) predicate.Snippet
- func OwnerIDNotIn(vs ...int) predicate.Snippet
- func Sn(v string) predicate.Snippet
- func SnContains(v string) predicate.Snippet
- func SnContainsFold(v string) predicate.Snippet
- func SnEQ(v string) predicate.Snippet
- func SnEqualFold(v string) predicate.Snippet
- func SnGT(v string) predicate.Snippet
- func SnGTE(v string) predicate.Snippet
- func SnHasPrefix(v string) predicate.Snippet
- func SnHasSuffix(v string) predicate.Snippet
- func SnIn(vs ...string) predicate.Snippet
- func SnLT(v string) predicate.Snippet
- func SnLTE(v string) predicate.Snippet
- func SnNEQ(v string) predicate.Snippet
- func SnNotIn(vs ...string) predicate.Snippet
- func Title(v string) predicate.Snippet
- func TitleContains(v string) predicate.Snippet
- func TitleContainsFold(v string) predicate.Snippet
- func TitleEQ(v string) predicate.Snippet
- func TitleEqualFold(v string) predicate.Snippet
- func TitleGT(v string) predicate.Snippet
- func TitleGTE(v string) predicate.Snippet
- func TitleHasPrefix(v string) predicate.Snippet
- func TitleHasSuffix(v string) predicate.Snippet
- func TitleIn(vs ...string) predicate.Snippet
- func TitleIsNil() predicate.Snippet
- func TitleLT(v string) predicate.Snippet
- func TitleLTE(v string) predicate.Snippet
- func TitleNEQ(v string) predicate.Snippet
- func TitleNotIn(vs ...string) predicate.Snippet
- func TitleNotNil() predicate.Snippet
- func UpdateTime(v time.Time) predicate.Snippet
- func UpdateTimeEQ(v time.Time) predicate.Snippet
- func UpdateTimeGT(v time.Time) predicate.Snippet
- func UpdateTimeGTE(v time.Time) predicate.Snippet
- func UpdateTimeIn(vs ...time.Time) predicate.Snippet
- func UpdateTimeLT(v time.Time) predicate.Snippet
- func UpdateTimeLTE(v time.Time) predicate.Snippet
- func UpdateTimeNEQ(v time.Time) predicate.Snippet
- func UpdateTimeNotIn(vs ...time.Time) predicate.Snippet
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the snippet type in the database. Label = "snippet" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSn holds the string denoting the sn field in the database. FieldSn = "sn" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldFolderID holds the string denoting the folder_id field in the database. FieldFolderID = "folder_id" // 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" // EdgeSnippetDocs holds the string denoting the snippet_docs edge name in mutations. EdgeSnippetDocs = "snippet_docs" // EdgeSnippetTags holds the string denoting the snippet_tags edge name in mutations. EdgeSnippetTags = "snippet_tags" // Table holds the table name of the snippet in the database. Table = "snippets" // SnippetDocsTable is the table that holds the snippet_docs relation/edge. SnippetDocsTable = "snippet_docs" // SnippetDocsInverseTable is the table name for the SnippetDocument entity. // It exists in this package in order to avoid circular dependency with the "snippetdocument" package. SnippetDocsInverseTable = "snippet_docs" // SnippetDocsColumn is the table column denoting the snippet_docs relation/edge. SnippetDocsColumn = "snippet_id" // SnippetTagsTable is the table that holds the snippet_tags relation/edge. SnippetTagsTable = "snippet_tags" // SnippetTagsInverseTable is the table name for the SnippetTag entity. // It exists in this package in order to avoid circular dependency with the "snippettag" package. SnippetTagsInverseTable = "snippet_tags" // SnippetTagsColumn is the table column denoting the snippet_tags relation/edge. SnippetTagsColumn = "snippet_id" )
Variables ¶
var ( // DefaultSn holds the default value on creation for the "sn" field. DefaultSn func() string // SnValidator is a validator for the "sn" field. It is called by the builders before save. SnValidator func(string) error // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator 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, FieldSn, FieldOwnerID, FieldTitle, FieldFolderID, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for snippet fields.
var ForeignKeys = []string{
"member_member_snippets",
"snippet_folder_snippets",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "snippets" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func FolderID ¶
FolderID applies equality check predicate on the "folder_id" field. It's identical to FolderIDEQ.
func FolderIDEQ ¶
FolderIDEQ applies the EQ predicate on the "folder_id" field.
func FolderIDGT ¶
FolderIDGT applies the GT predicate on the "folder_id" field.
func FolderIDGTE ¶
FolderIDGTE applies the GTE predicate on the "folder_id" field.
func FolderIDIn ¶
FolderIDIn applies the In predicate on the "folder_id" field.
func FolderIDIsNil ¶
FolderIDIsNil applies the IsNil predicate on the "folder_id" field.
func FolderIDLT ¶
FolderIDLT applies the LT predicate on the "folder_id" field.
func FolderIDLTE ¶
FolderIDLTE applies the LTE predicate on the "folder_id" field.
func FolderIDNEQ ¶
FolderIDNEQ applies the NEQ predicate on the "folder_id" field.
func FolderIDNotIn ¶
FolderIDNotIn applies the NotIn predicate on the "folder_id" field.
func FolderIDNotNil ¶
FolderIDNotNil applies the NotNil predicate on the "folder_id" field.
func HasSnippetDocs ¶
HasSnippetDocs applies the HasEdge predicate on the "snippet_docs" edge.
func HasSnippetDocsWith ¶
func HasSnippetDocsWith(preds ...predicate.SnippetDocument) predicate.Snippet
HasSnippetDocsWith applies the HasEdge predicate on the "snippet_docs" edge with a given conditions (other predicates).
func HasSnippetTags ¶ added in v1.0.9
HasSnippetTags applies the HasEdge predicate on the "snippet_tags" edge.
func HasSnippetTagsWith ¶ added in v1.0.9
func HasSnippetTagsWith(preds ...predicate.SnippetTag) predicate.Snippet
HasSnippetTagsWith applies the HasEdge predicate on the "snippet_tags" edge with a given conditions (other predicates).
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDGTE ¶ added in v1.0.10
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDLTE ¶ added in v1.0.10
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func SnContains ¶
SnContains applies the Contains predicate on the "sn" field.
func SnContainsFold ¶
SnContainsFold applies the ContainsFold predicate on the "sn" field.
func SnEqualFold ¶
SnEqualFold applies the EqualFold predicate on the "sn" field.
func SnHasPrefix ¶
SnHasPrefix applies the HasPrefix predicate on the "sn" field.
func SnHasSuffix ¶
SnHasSuffix applies the HasSuffix predicate on the "sn" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIsNil ¶
TitleIsNil applies the IsNil predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotNil ¶
TitleNotNil applies the NotNil predicate on the "title" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
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.