Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EntI18n) predicate.EntI18n
- func Created(v int64) predicate.EntI18n
- func CreatedEQ(v int64) predicate.EntI18n
- func CreatedGT(v int64) predicate.EntI18n
- func CreatedGTE(v int64) predicate.EntI18n
- func CreatedIn(vs ...int64) predicate.EntI18n
- func CreatedLT(v int64) predicate.EntI18n
- func CreatedLTE(v int64) predicate.EntI18n
- func CreatedNEQ(v int64) predicate.EntI18n
- func CreatedNotIn(vs ...int64) predicate.EntI18n
- func Deleted(v int64) predicate.EntI18n
- func DeletedEQ(v int64) predicate.EntI18n
- func DeletedGT(v int64) predicate.EntI18n
- func DeletedGTE(v int64) predicate.EntI18n
- func DeletedIn(vs ...int64) predicate.EntI18n
- func DeletedIsNil() predicate.EntI18n
- func DeletedLT(v int64) predicate.EntI18n
- func DeletedLTE(v int64) predicate.EntI18n
- func DeletedNEQ(v int64) predicate.EntI18n
- func DeletedNotIn(vs ...int64) predicate.EntI18n
- func DeletedNotNil() predicate.EntI18n
- func ID(id int64) predicate.EntI18n
- func IDEQ(id int64) predicate.EntI18n
- func IDGT(id int64) predicate.EntI18n
- func IDGTE(id int64) predicate.EntI18n
- func IDIn(ids ...int64) predicate.EntI18n
- func IDLT(id int64) predicate.EntI18n
- func IDLTE(id int64) predicate.EntI18n
- func IDNEQ(id int64) predicate.EntI18n
- func IDNotIn(ids ...int64) predicate.EntI18n
- func Key(v string) predicate.EntI18n
- func KeyContains(v string) predicate.EntI18n
- func KeyContainsFold(v string) predicate.EntI18n
- func KeyEQ(v string) predicate.EntI18n
- func KeyEqualFold(v string) predicate.EntI18n
- func KeyGT(v string) predicate.EntI18n
- func KeyGTE(v string) predicate.EntI18n
- func KeyHasPrefix(v string) predicate.EntI18n
- func KeyHasSuffix(v string) predicate.EntI18n
- func KeyIn(vs ...string) predicate.EntI18n
- func KeyLT(v string) predicate.EntI18n
- func KeyLTE(v string) predicate.EntI18n
- func KeyNEQ(v string) predicate.EntI18n
- func KeyNotIn(vs ...string) predicate.EntI18n
- func Lang(v string) predicate.EntI18n
- func LangContains(v string) predicate.EntI18n
- func LangContainsFold(v string) predicate.EntI18n
- func LangEQ(v string) predicate.EntI18n
- func LangEqualFold(v string) predicate.EntI18n
- func LangGT(v string) predicate.EntI18n
- func LangGTE(v string) predicate.EntI18n
- func LangHasPrefix(v string) predicate.EntI18n
- func LangHasSuffix(v string) predicate.EntI18n
- func LangIn(vs ...string) predicate.EntI18n
- func LangLT(v string) predicate.EntI18n
- func LangLTE(v string) predicate.EntI18n
- func LangNEQ(v string) predicate.EntI18n
- func LangNotIn(vs ...string) predicate.EntI18n
- func Not(p predicate.EntI18n) predicate.EntI18n
- func Or(predicates ...predicate.EntI18n) predicate.EntI18n
- func Raw(v string) predicate.EntI18n
- func RawContains(v string) predicate.EntI18n
- func RawContainsFold(v string) predicate.EntI18n
- func RawEQ(v string) predicate.EntI18n
- func RawEqualFold(v string) predicate.EntI18n
- func RawGT(v string) predicate.EntI18n
- func RawGTE(v string) predicate.EntI18n
- func RawHasPrefix(v string) predicate.EntI18n
- func RawHasSuffix(v string) predicate.EntI18n
- func RawIn(vs ...string) predicate.EntI18n
- func RawLT(v string) predicate.EntI18n
- func RawLTE(v string) predicate.EntI18n
- func RawNEQ(v string) predicate.EntI18n
- func RawNotIn(vs ...string) predicate.EntI18n
- func Updated(v int64) predicate.EntI18n
- func UpdatedEQ(v int64) predicate.EntI18n
- func UpdatedGT(v int64) predicate.EntI18n
- func UpdatedGTE(v int64) predicate.EntI18n
- func UpdatedIn(vs ...int64) predicate.EntI18n
- func UpdatedLT(v int64) predicate.EntI18n
- func UpdatedLTE(v int64) predicate.EntI18n
- func UpdatedNEQ(v int64) predicate.EntI18n
- func UpdatedNotIn(vs ...int64) predicate.EntI18n
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByDeleted(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByLang(opts ...sql.OrderTermOption) OrderOption
- func ByRaw(opts ...sql.OrderTermOption) OrderOption
- func ByUpdated(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldLang, FieldKey, FieldRaw, FieldCreated, FieldUpdated, FieldDeleted, }
Columns holds all SQL columns for enti18n fields.
Functions ¶
func Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func Deleted ¶
Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
func DeletedGTE ¶
DeletedGTE applies the GTE predicate on the "deleted" field.
func DeletedIsNil ¶
DeletedIsNil applies the IsNil predicate on the "deleted" field.
func DeletedLTE ¶
DeletedLTE applies the LTE predicate on the "deleted" field.
func DeletedNEQ ¶
DeletedNEQ applies the NEQ predicate on the "deleted" field.
func DeletedNotIn ¶
DeletedNotIn applies the NotIn predicate on the "deleted" field.
func DeletedNotNil ¶
DeletedNotNil applies the NotNil predicate on the "deleted" field.
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func LangContains ¶
LangContains applies the Contains predicate on the "lang" field.
func LangContainsFold ¶
LangContainsFold applies the ContainsFold predicate on the "lang" field.
func LangEqualFold ¶
LangEqualFold applies the EqualFold predicate on the "lang" field.
func LangHasPrefix ¶
LangHasPrefix applies the HasPrefix predicate on the "lang" field.
func LangHasSuffix ¶
LangHasSuffix applies the HasSuffix predicate on the "lang" field.
func RawContains ¶
RawContains applies the Contains predicate on the "raw" field.
func RawContainsFold ¶
RawContainsFold applies the ContainsFold predicate on the "raw" field.
func RawEqualFold ¶
RawEqualFold applies the EqualFold predicate on the "raw" field.
func RawHasPrefix ¶
RawHasPrefix applies the HasPrefix predicate on the "raw" field.
func RawHasSuffix ¶
RawHasSuffix applies the HasSuffix predicate on the "raw" field.
func Updated ¶
Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.
func UpdatedGTE ¶
UpdatedGTE applies the GTE predicate on the "updated" field.
func UpdatedLTE ¶
UpdatedLTE applies the LTE predicate on the "updated" field.
func UpdatedNEQ ¶
UpdatedNEQ applies the NEQ predicate on the "updated" field.
func UpdatedNotIn ¶
UpdatedNotIn applies the NotIn predicate on the "updated" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.