view

package
v0.0.0-...-bf2c6c7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the view type in the database.
	Label = "view"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDesc holds the string denoting the desc field in the database.
	FieldDesc = "desc"
	// FieldConfig holds the string denoting the config field in the database.
	FieldConfig = "config"
	// EdgeBg holds the string denoting the bg edge name in mutations.
	EdgeBg = "bg"
	// EdgeBlocks holds the string denoting the blocks edge name in mutations.
	EdgeBlocks = "blocks"
	// EdgeShare holds the string denoting the share edge name in mutations.
	EdgeShare = "share"
	// Table holds the table name of the view in the database.
	Table = "views"
	// BgTable is the table the holds the bg relation/edge.
	BgTable = "views"
	// BgInverseTable is the table name for the Assets entity.
	// It exists in this package in order to avoid circular dependency with the "assets" package.
	BgInverseTable = "assets"
	// BgColumn is the table column denoting the bg relation/edge.
	BgColumn = "assets_view"
	// BlocksTable is the table the holds the blocks relation/edge.
	BlocksTable = "view_blocks"
	// BlocksInverseTable is the table name for the ViewBlock entity.
	// It exists in this package in order to avoid circular dependency with the "viewblock" package.
	BlocksInverseTable = "view_blocks"
	// BlocksColumn is the table column denoting the blocks relation/edge.
	BlocksColumn = "view_blocks"
	// ShareTable is the table the holds the share relation/edge.
	ShareTable = "shares"
	// ShareInverseTable is the table name for the Share entity.
	// It exists in this package in order to avoid circular dependency with the "share" package.
	ShareInverseTable = "shares"
	// ShareColumn is the table column denoting the share relation/edge.
	ShareColumn = "view_share"
)

Variables

Columns holds all SQL columns for view fields.

View Source
var (
	// DescValidator is a validator for the "desc" field. It is called by the builders before save.
	DescValidator func(string) error
)
View Source
var ForeignKeys = []string{
	"assets_view",
}

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

Functions

func And

func And(predicates ...predicate.View) predicate.View

And groups predicates with the AND operator between them.

func Config

func Config(v string) predicate.View

Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.

func ConfigContains

func ConfigContains(v string) predicate.View

ConfigContains applies the Contains predicate on the "config" field.

func ConfigContainsFold

func ConfigContainsFold(v string) predicate.View

ConfigContainsFold applies the ContainsFold predicate on the "config" field.

func ConfigEQ

func ConfigEQ(v string) predicate.View

ConfigEQ applies the EQ predicate on the "config" field.

func ConfigEqualFold

func ConfigEqualFold(v string) predicate.View

ConfigEqualFold applies the EqualFold predicate on the "config" field.

func ConfigGT

func ConfigGT(v string) predicate.View

ConfigGT applies the GT predicate on the "config" field.

func ConfigGTE

func ConfigGTE(v string) predicate.View

ConfigGTE applies the GTE predicate on the "config" field.

func ConfigHasPrefix

func ConfigHasPrefix(v string) predicate.View

ConfigHasPrefix applies the HasPrefix predicate on the "config" field.

func ConfigHasSuffix

func ConfigHasSuffix(v string) predicate.View

ConfigHasSuffix applies the HasSuffix predicate on the "config" field.

func ConfigIn

func ConfigIn(vs ...string) predicate.View

ConfigIn applies the In predicate on the "config" field.

func ConfigLT

func ConfigLT(v string) predicate.View

ConfigLT applies the LT predicate on the "config" field.

func ConfigLTE

func ConfigLTE(v string) predicate.View

ConfigLTE applies the LTE predicate on the "config" field.

func ConfigNEQ

func ConfigNEQ(v string) predicate.View

ConfigNEQ applies the NEQ predicate on the "config" field.

func ConfigNotIn

func ConfigNotIn(vs ...string) predicate.View

ConfigNotIn applies the NotIn predicate on the "config" field.

func Desc

func Desc(v string) predicate.View

Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.

func DescContains

func DescContains(v string) predicate.View

DescContains applies the Contains predicate on the "desc" field.

func DescContainsFold

func DescContainsFold(v string) predicate.View

DescContainsFold applies the ContainsFold predicate on the "desc" field.

func DescEQ

func DescEQ(v string) predicate.View

DescEQ applies the EQ predicate on the "desc" field.

func DescEqualFold

func DescEqualFold(v string) predicate.View

DescEqualFold applies the EqualFold predicate on the "desc" field.

func DescGT

func DescGT(v string) predicate.View

DescGT applies the GT predicate on the "desc" field.

func DescGTE

func DescGTE(v string) predicate.View

DescGTE applies the GTE predicate on the "desc" field.

func DescHasPrefix

func DescHasPrefix(v string) predicate.View

DescHasPrefix applies the HasPrefix predicate on the "desc" field.

func DescHasSuffix

func DescHasSuffix(v string) predicate.View

DescHasSuffix applies the HasSuffix predicate on the "desc" field.

func DescIn

func DescIn(vs ...string) predicate.View

DescIn applies the In predicate on the "desc" field.

func DescLT

func DescLT(v string) predicate.View

DescLT applies the LT predicate on the "desc" field.

func DescLTE

func DescLTE(v string) predicate.View

DescLTE applies the LTE predicate on the "desc" field.

func DescNEQ

func DescNEQ(v string) predicate.View

DescNEQ applies the NEQ predicate on the "desc" field.

func DescNotIn

func DescNotIn(vs ...string) predicate.View

DescNotIn applies the NotIn predicate on the "desc" field.

func HasBg

func HasBg() predicate.View

HasBg applies the HasEdge predicate on the "bg" edge.

func HasBgWith

func HasBgWith(preds ...predicate.Assets) predicate.View

HasBgWith applies the HasEdge predicate on the "bg" edge with a given conditions (other predicates).

func HasBlocks

func HasBlocks() predicate.View

HasBlocks applies the HasEdge predicate on the "blocks" edge.

func HasBlocksWith

func HasBlocksWith(preds ...predicate.ViewBlock) predicate.View

HasBlocksWith applies the HasEdge predicate on the "blocks" edge with a given conditions (other predicates).

func HasShare

func HasShare() predicate.View

HasShare applies the HasEdge predicate on the "share" edge.

func HasShareWith

func HasShareWith(preds ...predicate.Share) predicate.View

HasShareWith applies the HasEdge predicate on the "share" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.View

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.View

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.View

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.View

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.View

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.View

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.View

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.View

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.View

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.View) predicate.View

Or groups predicates with the OR operator between them.

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