sqlstructs

package
v0.0.0-...-3223366 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Insert

func Insert(db *sql.DB, table string, item interface{}) error

Insert inserts the struct into the named table.

func UnmarshalRows

func UnmarshalRows(rows *sql.Rows, out interface{}) error

The out parameter must be a pointer to a slice of the type each row should be unmarshaled into.

func UnmarshalRowsToMaps

func UnmarshalRowsToMaps(rows *sql.Rows) ([]map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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