Documentation
¶
Index ¶
- Constants
- Variables
- func NewUserDBRepo(d bsq.CreateDialect) (entity.Repo[User, entity.ID32], error)
- func RunCreateScript(cmd sqlize.CtxCmd, drop bool) error
- type ExampleDialect
- func (dlc ExampleDialect) Create(ctx context.Context, cmd sqlize.Cmd, query string, args ...any) (id any, err error)
- func (ExampleDialect) FromSQLmap(f *reflect.StructField) func(any) any
- func (dlc ExampleDialect) NewQuery(defn ...any) (*bsq.Query, error)
- func (ExampleDialect) ToSQLmap(f *reflect.StructField) func(any) any
- type User
Constants ¶
View Source
const Driver = "sqlize-exampledriver"
use logging DB driver to see whats going on
Variables ¶
View Source
var DBschema bsq.Model
View Source
var Dialect = ExampleDialect{ StandardSQL: bsq.StdSQL, }
View Source
var TGroups = struct { bsq.Table ID, Name bsq.Column }{ Table: bsq.Table{Name: "groups"}, }
Functions ¶
func NewUserDBRepo ¶
Types ¶
type ExampleDialect ¶
type ExampleDialect struct{ bsq.StandardSQL }
func (ExampleDialect) FromSQLmap ¶
func (ExampleDialect) FromSQLmap(f *reflect.StructField) func(any) any
func (ExampleDialect) NewQuery ¶
func (dlc ExampleDialect) NewQuery(defn ...any) (*bsq.Query, error)
func (ExampleDialect) ToSQLmap ¶
func (ExampleDialect) ToSQLmap(f *reflect.StructField) func(any) any
Click to show internal directories.
Click to hide internal directories.