proxydocument

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the proxydocument type in the database.
	Label = "proxy_document"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldShow holds the string denoting the show field in the database.
	FieldShow = "show"
	// 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"
	// Table holds the table name of the proxydocument in the database.
	Table = "document"
)

Variables

View Source
var (
	// DefaultTitle holds the default value on creation for the "title" field.
	DefaultTitle string
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags string
	// TagsValidator is a validator for the "tags" field. It is called by the builders before save.
	TagsValidator func(string) error
	// DefaultShow holds the default value on creation for the "show" field.
	DefaultShow bool
	// 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
)

Columns holds all SQL columns for proxydocument fields.

Functions

func And

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.ProxyDocument

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.ProxyDocument

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.ProxyDocument

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.ProxyDocument

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.ProxyDocument

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.ProxyDocument

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.ProxyDocument

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.ProxyDocument

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.ProxyDocument

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.ProxyDocument

ContentIn applies the In predicate on the "content" field.

func ContentIsNil

func ContentIsNil() predicate.ProxyDocument

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.ProxyDocument

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.ProxyDocument

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.ProxyDocument

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.ProxyDocument

ContentNotIn applies the NotIn predicate on the "content" field.

func ContentNotNil

func ContentNotNil() predicate.ProxyDocument

ContentNotNil applies the NotNil predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ProxyDocument

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ProxyDocument

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ProxyDocument

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ProxyDocument

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.ProxyDocument

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ProxyDocument

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProxyDocument

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProxyDocument

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.ProxyDocument

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.ProxyDocument

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.ProxyDocument

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.ProxyDocument

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.ProxyDocument

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.ProxyDocument

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.ProxyDocument

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.ProxyDocument

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.ProxyDocument

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Show

Show applies equality check predicate on the "show" field. It's identical to ShowEQ.

func ShowEQ

func ShowEQ(v bool) predicate.ProxyDocument

ShowEQ applies the EQ predicate on the "show" field.

func ShowNEQ

func ShowNEQ(v bool) predicate.ProxyDocument

ShowNEQ applies the NEQ predicate on the "show" field.

func Tags

Tags applies equality check predicate on the "tags" field. It's identical to TagsEQ.

func TagsContains

func TagsContains(v string) predicate.ProxyDocument

TagsContains applies the Contains predicate on the "tags" field.

func TagsContainsFold

func TagsContainsFold(v string) predicate.ProxyDocument

TagsContainsFold applies the ContainsFold predicate on the "tags" field.

func TagsEQ

func TagsEQ(v string) predicate.ProxyDocument

TagsEQ applies the EQ predicate on the "tags" field.

func TagsEqualFold

func TagsEqualFold(v string) predicate.ProxyDocument

TagsEqualFold applies the EqualFold predicate on the "tags" field.

func TagsGT

func TagsGT(v string) predicate.ProxyDocument

TagsGT applies the GT predicate on the "tags" field.

func TagsGTE

func TagsGTE(v string) predicate.ProxyDocument

TagsGTE applies the GTE predicate on the "tags" field.

func TagsHasPrefix

func TagsHasPrefix(v string) predicate.ProxyDocument

TagsHasPrefix applies the HasPrefix predicate on the "tags" field.

func TagsHasSuffix

func TagsHasSuffix(v string) predicate.ProxyDocument

TagsHasSuffix applies the HasSuffix predicate on the "tags" field.

func TagsIn

func TagsIn(vs ...string) predicate.ProxyDocument

TagsIn applies the In predicate on the "tags" field.

func TagsLT

func TagsLT(v string) predicate.ProxyDocument

TagsLT applies the LT predicate on the "tags" field.

func TagsLTE

func TagsLTE(v string) predicate.ProxyDocument

TagsLTE applies the LTE predicate on the "tags" field.

func TagsNEQ

func TagsNEQ(v string) predicate.ProxyDocument

TagsNEQ applies the NEQ predicate on the "tags" field.

func TagsNotIn

func TagsNotIn(vs ...string) predicate.ProxyDocument

TagsNotIn applies the NotIn predicate on the "tags" field.

func Title

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.ProxyDocument

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.ProxyDocument

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.ProxyDocument

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.ProxyDocument

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.ProxyDocument

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.ProxyDocument

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.ProxyDocument

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.ProxyDocument

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.ProxyDocument

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.ProxyDocument

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.ProxyDocument

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.ProxyDocument

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.ProxyDocument

TitleNotIn applies the NotIn predicate on the "title" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ProxyDocument

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ProxyDocument

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ProxyDocument

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ProxyDocument

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.ProxyDocument

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ProxyDocument

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProxyDocument

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProxyDocument

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyDocument

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ProxyDocument queries.

func ByContent

func ByContent(opts ...sql.OrderTermOption) OrderOption

ByContent orders the results by the content field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByShow

func ByShow(opts ...sql.OrderTermOption) OrderOption

ByShow orders the results by the show field.

func ByTags

func ByTags(opts ...sql.OrderTermOption) OrderOption

ByTags orders the results by the tags field.

func ByTitle

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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