data

package
v0.97.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the data type in the database.
	Label = "data"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUID holds the string denoting the uid field in the database.
	FieldUID = "uid"
	// FieldTopic holds the string denoting the topic field in the database.
	FieldTopic = "topic"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// 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 data in the database.
	Table = "data"
)

Variables

View Source
var (
	// UIDValidator is a validator for the "uid" field. It is called by the builders before save.
	UIDValidator func(string) error
	// TopicValidator is a validator for the "topic" field. It is called by the builders before save.
	TopicValidator func(string) error
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// 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 data fields.

Functions

func And

func And(predicates ...predicate.Data) predicate.Data

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Data

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Data

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Data

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Data

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Data

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Data

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Data

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

func CreatedAtNotIn

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

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

func ID

func ID(id int64) predicate.Data

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Data

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Data

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Data

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Data

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Data

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Data

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Data

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Data

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Data

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Data

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Data

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Data

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Data

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Data

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Data

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Data

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Data

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Data

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Data

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Data

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Data) predicate.Data

Or groups predicates with the OR operator between them.

func Topic

func Topic(v string) predicate.Data

Topic applies equality check predicate on the "topic" field. It's identical to TopicEQ.

func TopicContains

func TopicContains(v string) predicate.Data

TopicContains applies the Contains predicate on the "topic" field.

func TopicContainsFold

func TopicContainsFold(v string) predicate.Data

TopicContainsFold applies the ContainsFold predicate on the "topic" field.

func TopicEQ

func TopicEQ(v string) predicate.Data

TopicEQ applies the EQ predicate on the "topic" field.

func TopicEqualFold

func TopicEqualFold(v string) predicate.Data

TopicEqualFold applies the EqualFold predicate on the "topic" field.

func TopicGT

func TopicGT(v string) predicate.Data

TopicGT applies the GT predicate on the "topic" field.

func TopicGTE

func TopicGTE(v string) predicate.Data

TopicGTE applies the GTE predicate on the "topic" field.

func TopicHasPrefix

func TopicHasPrefix(v string) predicate.Data

TopicHasPrefix applies the HasPrefix predicate on the "topic" field.

func TopicHasSuffix

func TopicHasSuffix(v string) predicate.Data

TopicHasSuffix applies the HasSuffix predicate on the "topic" field.

func TopicIn

func TopicIn(vs ...string) predicate.Data

TopicIn applies the In predicate on the "topic" field.

func TopicLT

func TopicLT(v string) predicate.Data

TopicLT applies the LT predicate on the "topic" field.

func TopicLTE

func TopicLTE(v string) predicate.Data

TopicLTE applies the LTE predicate on the "topic" field.

func TopicNEQ

func TopicNEQ(v string) predicate.Data

TopicNEQ applies the NEQ predicate on the "topic" field.

func TopicNotIn

func TopicNotIn(vs ...string) predicate.Data

TopicNotIn applies the NotIn predicate on the "topic" field.

func UID

func UID(v string) predicate.Data

UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.

func UIDContains

func UIDContains(v string) predicate.Data

UIDContains applies the Contains predicate on the "uid" field.

func UIDContainsFold

func UIDContainsFold(v string) predicate.Data

UIDContainsFold applies the ContainsFold predicate on the "uid" field.

func UIDEQ

func UIDEQ(v string) predicate.Data

UIDEQ applies the EQ predicate on the "uid" field.

func UIDEqualFold

func UIDEqualFold(v string) predicate.Data

UIDEqualFold applies the EqualFold predicate on the "uid" field.

func UIDGT

func UIDGT(v string) predicate.Data

UIDGT applies the GT predicate on the "uid" field.

func UIDGTE

func UIDGTE(v string) predicate.Data

UIDGTE applies the GTE predicate on the "uid" field.

func UIDHasPrefix

func UIDHasPrefix(v string) predicate.Data

UIDHasPrefix applies the HasPrefix predicate on the "uid" field.

func UIDHasSuffix

func UIDHasSuffix(v string) predicate.Data

UIDHasSuffix applies the HasSuffix predicate on the "uid" field.

func UIDIn

func UIDIn(vs ...string) predicate.Data

UIDIn applies the In predicate on the "uid" field.

func UIDLT

func UIDLT(v string) predicate.Data

UIDLT applies the LT predicate on the "uid" field.

func UIDLTE

func UIDLTE(v string) predicate.Data

UIDLTE applies the LTE predicate on the "uid" field.

func UIDNEQ

func UIDNEQ(v string) predicate.Data

UIDNEQ applies the NEQ predicate on the "uid" field.

func UIDNotIn

func UIDNotIn(vs ...string) predicate.Data

UIDNotIn applies the NotIn predicate on the "uid" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Data

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Data

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Data

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Data

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Data

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Data

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Data

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

func UpdatedAtNotIn

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

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 Data queries.

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 ByKey

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

ByKey orders the results by the key field.

func ByTopic

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

ByTopic orders the results by the topic field.

func ByUID

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

ByUID orders the results by the uid 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