Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB interface {
Exec(query string, args ...interface{}) (sql.Result, error)
Prepare(query string) (*sql.Stmt, error)
Query(query string, args ...interface{}) (*sql.Rows, error)
QueryRow(query string, args ...interface{}) *sql.Row
}
DB is an interface that is satisfied by an sql.DB or an sql.Transaction
type Transaction ¶
Transaction can do anything a Query can do plus Commit, Rollback, or Stmt
Click to show internal directories.
Click to hide internal directories.