runtime

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecDb added in v0.4.9

func ExecDb[T any](db *sql.DB, obj T, execHandler func(*sql.DB, T) (sql.Result, error)) error

Execute database query

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

func QueryRowDb[T any](db *sql.DB, obj T, queryRowHandler func(*sql.DB, T) *sql.Row) *sql.Row

Execute database query

func TemplateParse

func TemplateParse[T any](content fs.FS, templateFile string, obj T) (output string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL