dataset

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the dataset type in the database.
	Label = "dataset"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldNanoid holds the string denoting the nanoid field in the database.
	FieldNanoid = "nanoid"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldIndexer holds the string denoting the indexer field in the database.
	FieldIndexer = "indexer"
	// FieldValues holds the string denoting the values field in the database.
	FieldValues = "values"
	// Table holds the table name of the dataset in the database.
	Table = "datasets"
)

Variables

View Source
var (
	// 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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
)

Columns holds all SQL columns for dataset fields.

Functions

func And

func And(predicates ...predicate.Dataset) predicate.Dataset

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Dataset

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Dataset

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Dataset

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Dataset

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Dataset

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Dataset

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Dataset

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Dataset

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Dataset

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func Description

func Description(v string) predicate.Dataset

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Dataset

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Dataset

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Dataset

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Dataset

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Dataset

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Dataset

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Dataset

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Dataset

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Dataset

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Dataset

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Dataset

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Dataset

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Dataset

DescriptionNotIn applies the NotIn predicate on the "description" field.

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 IndexerIsNil

func IndexerIsNil() predicate.Dataset

IndexerIsNil applies the IsNil predicate on the "indexer" field.

func IndexerNotNil

func IndexerNotNil() predicate.Dataset

IndexerNotNil applies the NotNil predicate on the "indexer" field.

func Name

func Name(v string) predicate.Dataset

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Dataset

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Dataset

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Dataset

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Dataset

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Dataset

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Dataset

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Dataset

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Dataset

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Dataset

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Dataset

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Dataset

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Dataset

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Dataset

NameNotIn applies the NotIn predicate on the "name" field.

func Nanoid

func Nanoid(v string) predicate.Dataset

Nanoid applies equality check predicate on the "nanoid" field. It's identical to NanoidEQ.

func NanoidContains

func NanoidContains(v string) predicate.Dataset

NanoidContains applies the Contains predicate on the "nanoid" field.

func NanoidContainsFold

func NanoidContainsFold(v string) predicate.Dataset

NanoidContainsFold applies the ContainsFold predicate on the "nanoid" field.

func NanoidEQ

func NanoidEQ(v string) predicate.Dataset

NanoidEQ applies the EQ predicate on the "nanoid" field.

func NanoidEqualFold

func NanoidEqualFold(v string) predicate.Dataset

NanoidEqualFold applies the EqualFold predicate on the "nanoid" field.

func NanoidGT

func NanoidGT(v string) predicate.Dataset

NanoidGT applies the GT predicate on the "nanoid" field.

func NanoidGTE

func NanoidGTE(v string) predicate.Dataset

NanoidGTE applies the GTE predicate on the "nanoid" field.

func NanoidHasPrefix

func NanoidHasPrefix(v string) predicate.Dataset

NanoidHasPrefix applies the HasPrefix predicate on the "nanoid" field.

func NanoidHasSuffix

func NanoidHasSuffix(v string) predicate.Dataset

NanoidHasSuffix applies the HasSuffix predicate on the "nanoid" field.

func NanoidIn

func NanoidIn(vs ...string) predicate.Dataset

NanoidIn applies the In predicate on the "nanoid" field.

func NanoidIsNil

func NanoidIsNil() predicate.Dataset

NanoidIsNil applies the IsNil predicate on the "nanoid" field.

func NanoidLT

func NanoidLT(v string) predicate.Dataset

NanoidLT applies the LT predicate on the "nanoid" field.

func NanoidLTE

func NanoidLTE(v string) predicate.Dataset

NanoidLTE applies the LTE predicate on the "nanoid" field.

func NanoidNEQ

func NanoidNEQ(v string) predicate.Dataset

NanoidNEQ applies the NEQ predicate on the "nanoid" field.

func NanoidNotIn

func NanoidNotIn(vs ...string) predicate.Dataset

NanoidNotIn applies the NotIn predicate on the "nanoid" field.

func NanoidNotNil

func NanoidNotNil() predicate.Dataset

NanoidNotNil applies the NotNil predicate on the "nanoid" 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 Path

func Path(v string) predicate.Dataset

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.Dataset

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.Dataset

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.Dataset

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.Dataset

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.Dataset

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.Dataset

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.Dataset

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.Dataset

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.Dataset

PathIn applies the In predicate on the "path" field.

func PathIsNil

func PathIsNil() predicate.Dataset

PathIsNil applies the IsNil predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.Dataset

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.Dataset

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.Dataset

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.Dataset

PathNotIn applies the NotIn predicate on the "path" field.

func PathNotNil

func PathNotNil() predicate.Dataset

PathNotNil applies the NotNil predicate on the "path" field.

func TypeEQ

func TypeEQ(v Type) predicate.Dataset

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

func TypeIn

func TypeIn(vs ...Type) predicate.Dataset

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

func TypeNEQ

func TypeNEQ(v Type) predicate.Dataset

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

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Dataset

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Dataset

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Dataset

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Dataset

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Dataset

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Dataset

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Dataset

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Dataset

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Dataset

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Dataset

UpdatedAtNotNil applies the NotNil 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).

func ValuesIsNil

func ValuesIsNil() predicate.Dataset

ValuesIsNil applies the IsNil predicate on the "values" field.

func ValuesNotNil

func ValuesNotNil() predicate.Dataset

ValuesNotNil applies the NotNil predicate on the "values" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Dataset queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByNanoid

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

ByNanoid orders the results by the nanoid field.

func ByPath

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

ByPath orders the results by the path field.

func ByType

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

ByType orders the results by the type field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeList  Type = "list"
	TypeCsv   Type = "csv"
	TypeImage Type = "image"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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