enti18n

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the enti18n type in the database.
	Label = "ent_i18n"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldLang holds the string denoting the lang field in the database.
	FieldLang = "lang"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldRaw holds the string denoting the raw field in the database.
	FieldRaw = "raw"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldUpdated holds the string denoting the updated field in the database.
	FieldUpdated = "updated"
	// FieldDeleted holds the string denoting the deleted field in the database.
	FieldDeleted = "deleted"
	// Table holds the table name of the enti18n in the database.
	Table = "i18n"
)

Variables

View Source
var (
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() int64
	// DefaultUpdated holds the default value on creation for the "updated" field.
	DefaultUpdated func() int64
	// UpdateDefaultUpdated holds the default value on update for the "updated" field.
	UpdateDefaultUpdated func() int64
)

Columns holds all SQL columns for enti18n fields.

Functions

func And

func And(predicates ...predicate.EntI18n) predicate.EntI18n

And groups predicates with the AND operator between them.

func Created

func Created(v int64) predicate.EntI18n

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v int64) predicate.EntI18n

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v int64) predicate.EntI18n

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v int64) predicate.EntI18n

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...int64) predicate.EntI18n

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v int64) predicate.EntI18n

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v int64) predicate.EntI18n

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v int64) predicate.EntI18n

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...int64) predicate.EntI18n

CreatedNotIn applies the NotIn predicate on the "created" field.

func Deleted

func Deleted(v int64) predicate.EntI18n

Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.

func DeletedEQ

func DeletedEQ(v int64) predicate.EntI18n

DeletedEQ applies the EQ predicate on the "deleted" field.

func DeletedGT

func DeletedGT(v int64) predicate.EntI18n

DeletedGT applies the GT predicate on the "deleted" field.

func DeletedGTE

func DeletedGTE(v int64) predicate.EntI18n

DeletedGTE applies the GTE predicate on the "deleted" field.

func DeletedIn

func DeletedIn(vs ...int64) predicate.EntI18n

DeletedIn applies the In predicate on the "deleted" field.

func DeletedIsNil

func DeletedIsNil() predicate.EntI18n

DeletedIsNil applies the IsNil predicate on the "deleted" field.

func DeletedLT

func DeletedLT(v int64) predicate.EntI18n

DeletedLT applies the LT predicate on the "deleted" field.

func DeletedLTE

func DeletedLTE(v int64) predicate.EntI18n

DeletedLTE applies the LTE predicate on the "deleted" field.

func DeletedNEQ

func DeletedNEQ(v int64) predicate.EntI18n

DeletedNEQ applies the NEQ predicate on the "deleted" field.

func DeletedNotIn

func DeletedNotIn(vs ...int64) predicate.EntI18n

DeletedNotIn applies the NotIn predicate on the "deleted" field.

func DeletedNotNil

func DeletedNotNil() predicate.EntI18n

DeletedNotNil applies the NotNil predicate on the "deleted" field.

func ID

func ID(id int64) predicate.EntI18n

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.EntI18n

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.EntI18n

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.EntI18n

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.EntI18n

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.EntI18n

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.EntI18n

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.EntI18n

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

func KeyContains

func KeyContains(v string) predicate.EntI18n

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

func KeyContainsFold

func KeyContainsFold(v string) predicate.EntI18n

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

func KeyEQ

func KeyEQ(v string) predicate.EntI18n

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

func KeyEqualFold

func KeyEqualFold(v string) predicate.EntI18n

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

func KeyGT

func KeyGT(v string) predicate.EntI18n

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

func KeyGTE

func KeyGTE(v string) predicate.EntI18n

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

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.EntI18n

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

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.EntI18n

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

func KeyIn

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

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

func KeyLT

func KeyLT(v string) predicate.EntI18n

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

func KeyLTE

func KeyLTE(v string) predicate.EntI18n

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

func KeyNEQ

func KeyNEQ(v string) predicate.EntI18n

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

func KeyNotIn

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

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

func Lang

func Lang(v string) predicate.EntI18n

Lang applies equality check predicate on the "lang" field. It's identical to LangEQ.

func LangContains

func LangContains(v string) predicate.EntI18n

LangContains applies the Contains predicate on the "lang" field.

func LangContainsFold

func LangContainsFold(v string) predicate.EntI18n

LangContainsFold applies the ContainsFold predicate on the "lang" field.

func LangEQ

func LangEQ(v string) predicate.EntI18n

LangEQ applies the EQ predicate on the "lang" field.

func LangEqualFold

func LangEqualFold(v string) predicate.EntI18n

LangEqualFold applies the EqualFold predicate on the "lang" field.

func LangGT

func LangGT(v string) predicate.EntI18n

LangGT applies the GT predicate on the "lang" field.

func LangGTE

func LangGTE(v string) predicate.EntI18n

LangGTE applies the GTE predicate on the "lang" field.

func LangHasPrefix

func LangHasPrefix(v string) predicate.EntI18n

LangHasPrefix applies the HasPrefix predicate on the "lang" field.

func LangHasSuffix

func LangHasSuffix(v string) predicate.EntI18n

LangHasSuffix applies the HasSuffix predicate on the "lang" field.

func LangIn

func LangIn(vs ...string) predicate.EntI18n

LangIn applies the In predicate on the "lang" field.

func LangLT

func LangLT(v string) predicate.EntI18n

LangLT applies the LT predicate on the "lang" field.

func LangLTE

func LangLTE(v string) predicate.EntI18n

LangLTE applies the LTE predicate on the "lang" field.

func LangNEQ

func LangNEQ(v string) predicate.EntI18n

LangNEQ applies the NEQ predicate on the "lang" field.

func LangNotIn

func LangNotIn(vs ...string) predicate.EntI18n

LangNotIn applies the NotIn predicate on the "lang" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.EntI18n) predicate.EntI18n

Or groups predicates with the OR operator between them.

func Raw

func Raw(v string) predicate.EntI18n

Raw applies equality check predicate on the "raw" field. It's identical to RawEQ.

func RawContains

func RawContains(v string) predicate.EntI18n

RawContains applies the Contains predicate on the "raw" field.

func RawContainsFold

func RawContainsFold(v string) predicate.EntI18n

RawContainsFold applies the ContainsFold predicate on the "raw" field.

func RawEQ

func RawEQ(v string) predicate.EntI18n

RawEQ applies the EQ predicate on the "raw" field.

func RawEqualFold

func RawEqualFold(v string) predicate.EntI18n

RawEqualFold applies the EqualFold predicate on the "raw" field.

func RawGT

func RawGT(v string) predicate.EntI18n

RawGT applies the GT predicate on the "raw" field.

func RawGTE

func RawGTE(v string) predicate.EntI18n

RawGTE applies the GTE predicate on the "raw" field.

func RawHasPrefix

func RawHasPrefix(v string) predicate.EntI18n

RawHasPrefix applies the HasPrefix predicate on the "raw" field.

func RawHasSuffix

func RawHasSuffix(v string) predicate.EntI18n

RawHasSuffix applies the HasSuffix predicate on the "raw" field.

func RawIn

func RawIn(vs ...string) predicate.EntI18n

RawIn applies the In predicate on the "raw" field.

func RawLT

func RawLT(v string) predicate.EntI18n

RawLT applies the LT predicate on the "raw" field.

func RawLTE

func RawLTE(v string) predicate.EntI18n

RawLTE applies the LTE predicate on the "raw" field.

func RawNEQ

func RawNEQ(v string) predicate.EntI18n

RawNEQ applies the NEQ predicate on the "raw" field.

func RawNotIn

func RawNotIn(vs ...string) predicate.EntI18n

RawNotIn applies the NotIn predicate on the "raw" field.

func Updated

func Updated(v int64) predicate.EntI18n

Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.

func UpdatedEQ

func UpdatedEQ(v int64) predicate.EntI18n

UpdatedEQ applies the EQ predicate on the "updated" field.

func UpdatedGT

func UpdatedGT(v int64) predicate.EntI18n

UpdatedGT applies the GT predicate on the "updated" field.

func UpdatedGTE

func UpdatedGTE(v int64) predicate.EntI18n

UpdatedGTE applies the GTE predicate on the "updated" field.

func UpdatedIn

func UpdatedIn(vs ...int64) predicate.EntI18n

UpdatedIn applies the In predicate on the "updated" field.

func UpdatedLT

func UpdatedLT(v int64) predicate.EntI18n

UpdatedLT applies the LT predicate on the "updated" field.

func UpdatedLTE

func UpdatedLTE(v int64) predicate.EntI18n

UpdatedLTE applies the LTE predicate on the "updated" field.

func UpdatedNEQ

func UpdatedNEQ(v int64) predicate.EntI18n

UpdatedNEQ applies the NEQ predicate on the "updated" field.

func UpdatedNotIn

func UpdatedNotIn(vs ...int64) predicate.EntI18n

UpdatedNotIn applies the NotIn predicate on the "updated" 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 EntI18n queries.

func ByCreated

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

ByCreated orders the results by the created field.

func ByDeleted

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

ByDeleted orders the results by the deleted 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 ByLang

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

ByLang orders the results by the lang field.

func ByRaw

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

ByRaw orders the results by the raw field.

func ByUpdated

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

ByUpdated orders the results by the updated field.

Jump to

Keyboard shortcuts

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