Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountMeta = drel.ModelMeta[Account]{ Table: "accounts", Columns: []string{"id", "name", "role", "priority", "created_at", "updated_at"}, PKColumn: "id", Scan: scanAccount, Snapshot: snapshotAccount, Diff: diffAccount, PKValue: accountPKValue, InsertColumns: accountInsertColumns, ScanReturning: accountScanReturning, ColumnValue: accountColumnValue, NormalizeKey: accountNormalizeKey, }
View Source
var Accounts = struct { ID drel.OrderedColumn[int] Name drel.StringColumn Role drel.ComparableColumn[Role] Priority drel.ComparableColumn[Priority] CreatedAt drel.TimeColumn UpdatedAt drel.TimeColumn }{ ID: drel.NewOrderedCol[int]("id"), Name: drel.NewStringCol("name"), Role: drel.NewComparableCol[Role]("role"), Priority: drel.NewComparableCol[Priority]("priority"), CreatedAt: drel.NewTimeCol("created_at"), UpdatedAt: drel.NewTimeCol("updated_at"), }
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepository struct {
*drel.Repository[Account]
}
type TxAccountRepository ¶
type TxAccountRepository struct {
*drel.TxRepository[Account]
}
Click to show internal directories.
Click to hide internal directories.