tablerow

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tablerow type in the database.
	Label = "table_row"
	// 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"
	// FieldCells holds the string denoting the cells field in the database.
	FieldCells = "cells"
	// EdgeTablemeta holds the string denoting the tablemeta edge name in mutations.
	EdgeTablemeta = "tablemeta"
	// Table holds the table name of the tablerow in the database.
	Table = "table_rows"
	// TablemetaTable is the table that holds the tablemeta relation/edge.
	TablemetaTable = "table_rows"
	// TablemetaInverseTable is the table name for the TableMeta entity.
	// It exists in this package in order to avoid circular dependency with the "tablemeta" package.
	TablemetaInverseTable = "table_meta"
	// TablemetaColumn is the table column denoting the tablemeta relation/edge.
	TablemetaColumn = "table_meta_rows"
)

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
)

Columns holds all SQL columns for tablerow fields.

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

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

Functions

func And

func And(predicates ...predicate.TableRow) predicate.TableRow

And groups predicates with the AND operator between them.

func CellsIsNil

func CellsIsNil() predicate.TableRow

CellsIsNil applies the IsNil predicate on the "cells" field.

func CellsNotNil

func CellsNotNil() predicate.TableRow

CellsNotNil applies the NotNil predicate on the "cells" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.TableRow

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.TableRow

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.TableRow

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.TableRow

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.TableRow

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.TableRow

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.TableRow

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.TableRow

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.TableRow

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

func HasTablemeta

func HasTablemeta() predicate.TableRow

HasTablemeta applies the HasEdge predicate on the "tablemeta" edge.

func HasTablemetaWith

func HasTablemetaWith(preds ...predicate.TableMeta) predicate.TableRow

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

func ID

func ID(id int) predicate.TableRow

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.TableRow

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.TableRow

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.TableRow

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.TableRow

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.TableRow

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.TableRow

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Nanoid

func Nanoid(v string) predicate.TableRow

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

func NanoidContains

func NanoidContains(v string) predicate.TableRow

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

func NanoidContainsFold

func NanoidContainsFold(v string) predicate.TableRow

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

func NanoidEQ

func NanoidEQ(v string) predicate.TableRow

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

func NanoidEqualFold

func NanoidEqualFold(v string) predicate.TableRow

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

func NanoidGT

func NanoidGT(v string) predicate.TableRow

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

func NanoidGTE

func NanoidGTE(v string) predicate.TableRow

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

func NanoidHasPrefix

func NanoidHasPrefix(v string) predicate.TableRow

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

func NanoidHasSuffix

func NanoidHasSuffix(v string) predicate.TableRow

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

func NanoidIn

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

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

func NanoidIsNil

func NanoidIsNil() predicate.TableRow

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

func NanoidLT

func NanoidLT(v string) predicate.TableRow

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

func NanoidLTE

func NanoidLTE(v string) predicate.TableRow

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

func NanoidNEQ

func NanoidNEQ(v string) predicate.TableRow

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

func NanoidNotIn

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

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

func NanoidNotNil

func NanoidNotNil() predicate.TableRow

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.TableRow

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.TableRow

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.TableRow

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.TableRow

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.TableRow

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.TableRow

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.TableRow

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.TableRow

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.TableRow

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the TableRow 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 ByNanoid

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

ByNanoid orders the results by the nanoid field.

func ByTablemetaField

func ByTablemetaField(field string, opts ...sql.OrderTermOption) OrderOption

ByTablemetaField orders the results by tablemeta 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