gosqltools

package module
v0.0.0-...-22777e7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 3 Imported by: 0

README

gosqltools

Useful tools for Go Language when using database/sql module

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseQueryResult

func ParseQueryResult(result map[string]interface{}, t reflect.Type, v reflect.Value)

Types

type SqlDataSource

type SqlDataSource struct {
	DB *sql.DB
}

func (SqlDataSource) QueryRunner

func (ds SqlDataSource) QueryRunner(querySql string, args ...interface{}) (int, []interface{}, error)

func (SqlDataSource) QueryToStruct

func (ds SqlDataSource) QueryToStruct(querySql string, target interface{}, args ...interface{}) (int, interface{}, error)

Jump to

Keyboard shortcuts

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