Documentation ¶
Index ¶
- Constants
- Variables
- func RowsToInterface(rows *sql.Rows) ([]map[string]interface{}, string, int)
- func Run1(db *sql.DB, q string, arg ...interface{}) error
- func SelData2(db *sql.DB, q string, data ...interface{}) ([]map[string]interface{}, error)
- func SelQ(db *sql.DB, q string, data ...interface{}) (Rows *sql.Rows, err error)
- type MyDb
Constants ¶
View Source
const ISO8601 = "2006-01-02T15:04:05.99999Z07:00"
ISO format for date/time
View Source
const ISO8601output = "2006-01-02T15:04:05.99999-0700"
Variables ¶
View Source
var DbBeginQuote = `"`
View Source
var DbEndQuote = `"`
Functions ¶
func RowsToInterface ¶
-------------------------------------------------------------------------------------------------
func Run1 ¶
-------------------------------------------------------------------------------------------------
Types ¶
type MyDb ¶
func ConnectToAnyDb ¶
ConeectToAnyDb connects to postgres/oracle/odbc/mariadb and sets the database if applicable. "odbc" should be used for Microsoft SQL Server. Some databases, postgres for example, defer the actual connection until the first query.
Click to show internal directories.
Click to hide internal directories.