Documentation ¶
Index ¶
- func CompareHash(pwd string, hash string) bool
- func DoSQL(db *sqlx.DB, stmt string, args ...interface{}) error
- func Hash(pwd string) (string, error)
- func IToB(b bool) int
- func NewDatabase() *sqlx.DB
- func NewTestDatabase() *sqlx.DB
- func RetryExec(db *sqlx.DB, sql string, args ...interface{}) (int64, error)
- func RetryExecTillNoRows(db *sqlx.DB, sql string, args ...interface{}) error
- func RetryTransaction(tx *sqlx.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestDatabase ¶
NewTestDatabase creates a connection to a test database on 127.0.0.1:3306 with no password
func RetryExecTillNoRows ¶
RetryExecTillNoRows retries the exec until we get no error (deadlocks) and no results are returned
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.