Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProductMeta = drel.ModelMeta[Product]{ Table: "products", Columns: []string{"id", "name", "price", "category", "in_stock", "created_at", "updated_at"}, PKColumn: "id", Scan: scanProduct, Snapshot: snapshotProduct, Diff: diffProduct, PKValue: productPKValue, InsertColumns: productInsertColumns, ScanReturning: productScanReturning, ColumnValue: productColumnValue, NormalizeKey: productNormalizeKey, }
View Source
var Products = struct { ID drel.OrderedColumn[int] Name drel.StringColumn Price drel.OrderedColumn[int] Category drel.StringColumn InStock drel.BoolColumn CreatedAt drel.TimeColumn UpdatedAt drel.TimeColumn }{ ID: drel.NewOrderedCol[int]("id"), Name: drel.NewStringCol("name"), Price: drel.NewOrderedCol[int]("price"), Category: drel.NewStringCol("category"), InStock: drel.NewBoolCol("in_stock"), CreatedAt: drel.NewTimeCol("created_at"), UpdatedAt: drel.NewTimeCol("updated_at"), }
Functions ¶
This section is empty.
Types ¶
type ProductRepository ¶
type ProductRepository struct {
*drel.Repository[Product]
}
type TxProductRepository ¶
type TxProductRepository struct {
*drel.TxRepository[Product]
}
type UoWProductRepository ¶ added in v0.3.0
type UoWProductRepository struct {
*drel.UoWRepository[Product]
}
Click to show internal directories.
Click to hide internal directories.