snippetdocument

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// 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"
	// DocSnippetTable is the table that 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

View Source
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
)

Columns holds all SQL columns for snippetdocument fields.

View Source
var ForeignKeys = []string{
	"member_member_snippet_docs",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "snippet_docs" table and are not defined as standalone fields in the schema.

Functions

func And

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 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 ID

ID filters vertices based on their ID field.

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

Not applies the not operator on the given predicate.

func Or

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 OwnerIDGT added in v1.0.10

func OwnerIDGT(v int) predicate.SnippetDocument

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE added in v1.0.10

func OwnerIDGTE(v int) predicate.SnippetDocument

OwnerIDGTE applies the GTE 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 OwnerIDLT added in v1.0.10

func OwnerIDLT(v int) predicate.SnippetDocument

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE added in v1.0.10

func OwnerIDLTE(v int) predicate.SnippetDocument

OwnerIDLTE applies the LTE 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

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

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

RawGT applies the GT predicate on the "raw" field.

func RawGTE

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

RawLT applies the LT predicate on the "raw" field.

func RawLTE

RawLTE applies the LTE predicate on the "raw" field.

func RawNEQ

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL