Documentation ¶
Index ¶
- func ExecDb[T any](db *sql.DB, obj T, execHandler func(*sql.DB, T) (sql.Result, error)) error
- func QueryDb[T any](db *sql.DB, obj T, queryHandler func(*sql.DB, T) (*sql.Rows, error)) (*sql.Rows, error)
- func QueryRowDb[T any](db *sql.DB, obj T, queryRowHandler func(*sql.DB, T) *sql.Row) *sql.Row
- func TemplateParse[T any](content fs.FS, templateFile string, obj T) (output string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryDb ¶ added in v0.5.0
func QueryDb[T any](db *sql.DB, obj T, queryHandler func(*sql.DB, T) (*sql.Rows, error)) (*sql.Rows, error)
Execute database query
func QueryRowDb ¶ added in v0.4.9
Execute database query
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.