sqly

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteQueryFromFile

func ExecuteQueryFromFile(DB *sql.DB, queryFile string) error

func ExecuteQueryFromFiles added in v0.1.1

func ExecuteQueryFromFiles(DB *sql.DB, queryFiles []string) error

func Select

func Select(DB *sql.DB, onRows onRowsFunc, query string, args ...interface{}) error

func SelectRow

func SelectRow(DB *sql.DB, onRow onRowFunc, query string, args ...interface{}) error

func SelectRowLegacy added in v0.1.2

func SelectRowLegacy(DB *sql.DB, onRow onRowFunc, query string, args ...interface{}) error

SelectRowLegacy is a bit slower compared to SelectRow . See the benchmarkets in retrieve_test.go to understand better

Types

This section is empty.

Jump to

Keyboard shortcuts

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