dataset

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 dataset type in the database.
	Label = "data_set"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldConfig holds the string denoting the config field in the database.
	FieldConfig = "config"
	// EdgeBlock holds the string denoting the block edge name in mutations.
	EdgeBlock = "block"
	// Table holds the table name of the dataset in the database.
	Table = "data_sets"
	// BlockTable is the table the holds the block relation/edge.
	BlockTable = "data_sets"
	// BlockInverseTable is the table name for the ViewBlock entity.
	// It exists in this package in order to avoid circular dependency with the "viewblock" package.
	BlockInverseTable = "view_blocks"
	// BlockColumn is the table column denoting the block relation/edge.
	BlockColumn = "view_block_dataset"
)

Variables

Columns holds all SQL columns for dataset fields.

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

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

View Source
var (
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.DataSet) predicate.DataSet

And groups predicates with the AND operator between them.

func Config

func Config(v string) predicate.DataSet

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

func ConfigContains

func ConfigContains(v string) predicate.DataSet

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

func ConfigContainsFold

func ConfigContainsFold(v string) predicate.DataSet

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

func ConfigEQ

func ConfigEQ(v string) predicate.DataSet

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

func ConfigEqualFold

func ConfigEqualFold(v string) predicate.DataSet

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

func ConfigGT

func ConfigGT(v string) predicate.DataSet

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

func ConfigGTE

func ConfigGTE(v string) predicate.DataSet

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

func ConfigHasPrefix

func ConfigHasPrefix(v string) predicate.DataSet

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

func ConfigHasSuffix

func ConfigHasSuffix(v string) predicate.DataSet

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

func ConfigIn

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

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

func ConfigLT

func ConfigLT(v string) predicate.DataSet

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

func ConfigLTE

func ConfigLTE(v string) predicate.DataSet

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

func ConfigNEQ

func ConfigNEQ(v string) predicate.DataSet

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

func ConfigNotIn

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

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

func HasBlock

func HasBlock() predicate.DataSet

HasBlock applies the HasEdge predicate on the "block" edge.

func HasBlockWith

func HasBlockWith(preds ...predicate.ViewBlock) predicate.DataSet

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

func ID

func ID(id int) predicate.DataSet

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DataSet

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DataSet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DataSet

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DataSet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DataSet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DataSet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.DataSet) predicate.DataSet

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.DataSet

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

func TitleContains

func TitleContains(v string) predicate.DataSet

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.DataSet

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

func TitleEQ

func TitleEQ(v string) predicate.DataSet

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.DataSet

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

func TitleGT

func TitleGT(v string) predicate.DataSet

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

func TitleGTE

func TitleGTE(v string) predicate.DataSet

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.DataSet

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.DataSet

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.DataSet

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

func TitleLTE

func TitleLTE(v string) predicate.DataSet

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

func TitleNEQ

func TitleNEQ(v string) predicate.DataSet

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

func TitleNotIn

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

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

func Type

func Type(v string) predicate.DataSet

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.DataSet

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.DataSet

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.DataSet

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.DataSet

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.DataSet

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.DataSet

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.DataSet

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.DataSet

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.DataSet

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.DataSet

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.DataSet

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.DataSet

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.DataSet

TypeNotIn applies the NotIn predicate on the "type" 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