func (db *Database) Prepare(query string) (*sql.Stmt, error) {
	if db.transaction != nil {
		log.Debug("preparing statement on existing transaction")
		return db.transaction.Prepare(query)
	}
	log.Debug("preparing statement on raw connection")
	return db.connection.Prepare(query)
}
// Prepare prepares a statement; if there's a transction in place, the statement
// is prepared against it, otherwise it is prepared against the DB connection.
Prepare prepares a statement; if there's a transction in place, the statement
is prepared against it, otherwise it is prepared against the DB connection.
// Prepare prepares a statement ; if there ' s a transction in place the statement // is prepared against it otherwise it is prepared against the DB connection .
func (db *Database) Prepare(query string) (*sql.Stmt, error) {
	if db.transaction != nil {
		log.Debug("preparing statement on existing transaction")
		return db.transaction.Prepare(query)
	}
	log.Debug("preparing statement on raw connection")
	return db.connection.Prepare(query)
}
func ( db * Database ) Prepare ( query string ) ( * sql . Stmt , error ) { if db . transaction != nil { log . Debug ( " " ) return db . transaction . Prepare ( query ) } log . Debug ( " " ) return db . connection . Prepare ( query ) }
Prepare prepares a statement; if there's a transction in place, the statement
is prepared against it, otherwise it is prepared against the DB connection.
Prepare prepares a statement ; if there ' s a transction in place the statement is prepared against it otherwise it is prepared against the DB connection .