Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TableMeta) predicate.TableMeta
- func CreatedAt(v time.Time) predicate.TableMeta
- func CreatedAtEQ(v time.Time) predicate.TableMeta
- func CreatedAtGT(v time.Time) predicate.TableMeta
- func CreatedAtGTE(v time.Time) predicate.TableMeta
- func CreatedAtIn(vs ...time.Time) predicate.TableMeta
- func CreatedAtIsNil() predicate.TableMeta
- func CreatedAtLT(v time.Time) predicate.TableMeta
- func CreatedAtLTE(v time.Time) predicate.TableMeta
- func CreatedAtNEQ(v time.Time) predicate.TableMeta
- func CreatedAtNotIn(vs ...time.Time) predicate.TableMeta
- func CreatedAtNotNil() predicate.TableMeta
- func Description(v string) predicate.TableMeta
- func DescriptionContains(v string) predicate.TableMeta
- func DescriptionContainsFold(v string) predicate.TableMeta
- func DescriptionEQ(v string) predicate.TableMeta
- func DescriptionEqualFold(v string) predicate.TableMeta
- func DescriptionGT(v string) predicate.TableMeta
- func DescriptionGTE(v string) predicate.TableMeta
- func DescriptionHasPrefix(v string) predicate.TableMeta
- func DescriptionHasSuffix(v string) predicate.TableMeta
- func DescriptionIn(vs ...string) predicate.TableMeta
- func DescriptionLT(v string) predicate.TableMeta
- func DescriptionLTE(v string) predicate.TableMeta
- func DescriptionNEQ(v string) predicate.TableMeta
- func DescriptionNotIn(vs ...string) predicate.TableMeta
- func HasColumns() predicate.TableMeta
- func HasColumnsWith(preds ...predicate.TableColumn) predicate.TableMeta
- func HasRows() predicate.TableMeta
- func HasRowsWith(preds ...predicate.TableRow) predicate.TableMeta
- func ID(id int) predicate.TableMeta
- func IDEQ(id int) predicate.TableMeta
- func IDGT(id int) predicate.TableMeta
- func IDGTE(id int) predicate.TableMeta
- func IDIn(ids ...int) predicate.TableMeta
- func IDLT(id int) predicate.TableMeta
- func IDLTE(id int) predicate.TableMeta
- func IDNEQ(id int) predicate.TableMeta
- func IDNotIn(ids ...int) predicate.TableMeta
- func Model(v string) predicate.TableMeta
- func ModelContains(v string) predicate.TableMeta
- func ModelContainsFold(v string) predicate.TableMeta
- func ModelEQ(v string) predicate.TableMeta
- func ModelEqualFold(v string) predicate.TableMeta
- func ModelGT(v string) predicate.TableMeta
- func ModelGTE(v string) predicate.TableMeta
- func ModelHasPrefix(v string) predicate.TableMeta
- func ModelHasSuffix(v string) predicate.TableMeta
- func ModelIn(vs ...string) predicate.TableMeta
- func ModelLT(v string) predicate.TableMeta
- func ModelLTE(v string) predicate.TableMeta
- func ModelNEQ(v string) predicate.TableMeta
- func ModelNotIn(vs ...string) predicate.TableMeta
- func Name(v string) predicate.TableMeta
- func NameContains(v string) predicate.TableMeta
- func NameContainsFold(v string) predicate.TableMeta
- func NameEQ(v string) predicate.TableMeta
- func NameEqualFold(v string) predicate.TableMeta
- func NameGT(v string) predicate.TableMeta
- func NameGTE(v string) predicate.TableMeta
- func NameHasPrefix(v string) predicate.TableMeta
- func NameHasSuffix(v string) predicate.TableMeta
- func NameIn(vs ...string) predicate.TableMeta
- func NameLT(v string) predicate.TableMeta
- func NameLTE(v string) predicate.TableMeta
- func NameNEQ(v string) predicate.TableMeta
- func NameNotIn(vs ...string) predicate.TableMeta
- func Nanoid(v string) predicate.TableMeta
- func NanoidContains(v string) predicate.TableMeta
- func NanoidContainsFold(v string) predicate.TableMeta
- func NanoidEQ(v string) predicate.TableMeta
- func NanoidEqualFold(v string) predicate.TableMeta
- func NanoidGT(v string) predicate.TableMeta
- func NanoidGTE(v string) predicate.TableMeta
- func NanoidHasPrefix(v string) predicate.TableMeta
- func NanoidHasSuffix(v string) predicate.TableMeta
- func NanoidIn(vs ...string) predicate.TableMeta
- func NanoidIsNil() predicate.TableMeta
- func NanoidLT(v string) predicate.TableMeta
- func NanoidLTE(v string) predicate.TableMeta
- func NanoidNEQ(v string) predicate.TableMeta
- func NanoidNotIn(vs ...string) predicate.TableMeta
- func NanoidNotNil() predicate.TableMeta
- func Not(p predicate.TableMeta) predicate.TableMeta
- func Or(predicates ...predicate.TableMeta) predicate.TableMeta
- func UpdatedAt(v time.Time) predicate.TableMeta
- func UpdatedAtEQ(v time.Time) predicate.TableMeta
- func UpdatedAtGT(v time.Time) predicate.TableMeta
- func UpdatedAtGTE(v time.Time) predicate.TableMeta
- func UpdatedAtIn(vs ...time.Time) predicate.TableMeta
- func UpdatedAtIsNil() predicate.TableMeta
- func UpdatedAtLT(v time.Time) predicate.TableMeta
- func UpdatedAtLTE(v time.Time) predicate.TableMeta
- func UpdatedAtNEQ(v time.Time) predicate.TableMeta
- func UpdatedAtNotIn(vs ...time.Time) predicate.TableMeta
- func UpdatedAtNotNil() predicate.TableMeta
- func ValidColumn(column string) bool
- type OrderOption
- func ByColumns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByColumnsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModel(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNanoid(opts ...sql.OrderTermOption) OrderOption
- func ByRows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRowsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the tablemeta type in the database. Label = "table_meta" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // EdgeColumns holds the string denoting the columns edge name in mutations. EdgeColumns = "columns" // EdgeRows holds the string denoting the rows edge name in mutations. EdgeRows = "rows" // Table holds the table name of the tablemeta in the database. Table = "table_meta" // ColumnsTable is the table that holds the columns relation/edge. ColumnsTable = "table_columns" // ColumnsInverseTable is the table name for the TableColumn entity. // It exists in this package in order to avoid circular dependency with the "tablecolumn" package. ColumnsInverseTable = "table_columns" // ColumnsColumn is the table column denoting the columns relation/edge. ColumnsColumn = "table_id" // RowsTable is the table that holds the rows relation/edge. RowsTable = "table_rows" // RowsInverseTable is the table name for the TableRow entity. // It exists in this package in order to avoid circular dependency with the "tablerow" package. RowsInverseTable = "table_rows" // RowsColumn is the table column denoting the rows relation/edge. RowsColumn = "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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string // DefaultModel holds the default value on creation for the "model" field. DefaultModel string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldNanoid, FieldName, FieldDescription, FieldModel, }
Columns holds all SQL columns for tablemeta fields.
Functions ¶
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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasColumns ¶
HasColumns applies the HasEdge predicate on the "columns" edge.
func HasColumnsWith ¶
func HasColumnsWith(preds ...predicate.TableColumn) predicate.TableMeta
HasColumnsWith applies the HasEdge predicate on the "columns" edge with a given conditions (other predicates).
func HasRowsWith ¶
HasRowsWith applies the HasEdge predicate on the "rows" edge with a given conditions (other predicates).
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
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 TableMeta queries.
func ByColumns ¶
func ByColumns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByColumns orders the results by columns terms.
func ByColumnsCount ¶
func ByColumnsCount(opts ...sql.OrderTermOption) OrderOption
ByColumnsCount orders the results by columns count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByModel ¶
func ByModel(opts ...sql.OrderTermOption) OrderOption
ByModel orders the results by the model field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNanoid ¶
func ByNanoid(opts ...sql.OrderTermOption) OrderOption
ByNanoid orders the results by the nanoid field.
func ByRows ¶
func ByRows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRows orders the results by rows terms.
func ByRowsCount ¶
func ByRowsCount(opts ...sql.OrderTermOption) OrderOption
ByRowsCount orders the results by rows count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.