Documentation
¶
Index ¶
- func BytesToString(b []byte) string
- func CheckTxIsolation(tx *sql.Tx, level string) error
- func ExecSQL(d *sql.DB, query string, param ...interface{}) error
- func HTTPGet(url string) (body []byte, err error)
- func HTTPPostJSON(url string, body string) error
- func QueryRowSQL(d *sql.DB, query string, param ...interface{}) *sql.Row
- func QuerySQL(d *sql.DB, query string, param ...interface{}) (*sql.Rows, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts zero terminated byte array to string Whole array is used when there is no zero in the string
func CheckTxIsolation ¶
CheckTxIsolation return nil if transaction isolation is "level"
func HTTPPostJSON ¶
HTTPPostJSON posts given JSON message to give URL
func QueryRowSQL ¶
QueryRowSQL executes SQL query which return single row
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.