Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TableRow) predicate.TableRow
- func CellsIsNil() predicate.TableRow
- func CellsNotNil() predicate.TableRow
- func CreatedAt(v time.Time) predicate.TableRow
- func CreatedAtEQ(v time.Time) predicate.TableRow
- func CreatedAtGT(v time.Time) predicate.TableRow
- func CreatedAtGTE(v time.Time) predicate.TableRow
- func CreatedAtIn(vs ...time.Time) predicate.TableRow
- func CreatedAtIsNil() predicate.TableRow
- func CreatedAtLT(v time.Time) predicate.TableRow
- func CreatedAtLTE(v time.Time) predicate.TableRow
- func CreatedAtNEQ(v time.Time) predicate.TableRow
- func CreatedAtNotIn(vs ...time.Time) predicate.TableRow
- func CreatedAtNotNil() predicate.TableRow
- func HasTablemeta() predicate.TableRow
- func HasTablemetaWith(preds ...predicate.TableMeta) predicate.TableRow
- func ID(id int) predicate.TableRow
- func IDEQ(id int) predicate.TableRow
- func IDGT(id int) predicate.TableRow
- func IDGTE(id int) predicate.TableRow
- func IDIn(ids ...int) predicate.TableRow
- func IDLT(id int) predicate.TableRow
- func IDLTE(id int) predicate.TableRow
- func IDNEQ(id int) predicate.TableRow
- func IDNotIn(ids ...int) predicate.TableRow
- func Nanoid(v string) predicate.TableRow
- func NanoidContains(v string) predicate.TableRow
- func NanoidContainsFold(v string) predicate.TableRow
- func NanoidEQ(v string) predicate.TableRow
- func NanoidEqualFold(v string) predicate.TableRow
- func NanoidGT(v string) predicate.TableRow
- func NanoidGTE(v string) predicate.TableRow
- func NanoidHasPrefix(v string) predicate.TableRow
- func NanoidHasSuffix(v string) predicate.TableRow
- func NanoidIn(vs ...string) predicate.TableRow
- func NanoidIsNil() predicate.TableRow
- func NanoidLT(v string) predicate.TableRow
- func NanoidLTE(v string) predicate.TableRow
- func NanoidNEQ(v string) predicate.TableRow
- func NanoidNotIn(vs ...string) predicate.TableRow
- func NanoidNotNil() predicate.TableRow
- func Not(p predicate.TableRow) predicate.TableRow
- func Or(predicates ...predicate.TableRow) predicate.TableRow
- func UpdatedAt(v time.Time) predicate.TableRow
- func UpdatedAtEQ(v time.Time) predicate.TableRow
- func UpdatedAtGT(v time.Time) predicate.TableRow
- func UpdatedAtGTE(v time.Time) predicate.TableRow
- func UpdatedAtIn(vs ...time.Time) predicate.TableRow
- func UpdatedAtIsNil() predicate.TableRow
- func UpdatedAtLT(v time.Time) predicate.TableRow
- func UpdatedAtLTE(v time.Time) predicate.TableRow
- func UpdatedAtNEQ(v time.Time) predicate.TableRow
- func UpdatedAtNotIn(vs ...time.Time) predicate.TableRow
- func UpdatedAtNotNil() predicate.TableRow
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldNanoid, FieldCells, }
Columns holds all SQL columns for tablerow fields.
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 CellsIsNil ¶
CellsIsNil applies the IsNil predicate on the "cells" field.
func CellsNotNil ¶
CellsNotNil applies the NotNil predicate on the "cells" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func HasTablemeta ¶
HasTablemeta applies the HasEdge predicate on the "tablemeta" edge.
func HasTablemetaWith ¶
HasTablemetaWith applies the HasEdge predicate on the "tablemeta" edge with a given conditions (other predicates).
func Nanoid ¶
Nanoid applies equality check predicate on the "nanoid" field. It's identical to NanoidEQ.
func NanoidContains ¶
NanoidContains applies the Contains predicate on the "nanoid" field.
func NanoidContainsFold ¶
NanoidContainsFold applies the ContainsFold predicate on the "nanoid" field.
func NanoidEqualFold ¶
NanoidEqualFold applies the EqualFold predicate on the "nanoid" field.
func NanoidHasPrefix ¶
NanoidHasPrefix applies the HasPrefix predicate on the "nanoid" field.
func NanoidHasSuffix ¶
NanoidHasSuffix applies the HasSuffix predicate on the "nanoid" field.
func NanoidIsNil ¶
NanoidIsNil applies the IsNil predicate on the "nanoid" field.
func NanoidNotIn ¶
NanoidNotIn applies the NotIn predicate on the "nanoid" field.
func NanoidNotNil ¶
NanoidNotNil applies the NotNil predicate on the "nanoid" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" 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 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.