3 Commits

Author SHA1 Message Date
Reza Mohammadi
9340b97a0b Utilize go1.8 context support in database/sql
Fixes #1231

The related go1.8 release notes: https://golang.org/doc/go1.8#database_sql
2017-11-18 18:04:41 +03:30
Russ Egan
45f1a95051 Replace all use of *sql.DB with sqlCommon
Exporting sqlCommon as SQLCommon.

This allows passing alternate implementations of the database connection, or wrapping the connection with middleware.  This change didn't change any usages of the database variables.  All usages were already only using the functions defined in SQLCommon.

This does cause a breaking change in Dialect, since *sql.DB was referenced in the interface.
2017-03-14 17:02:14 -04:00
Jinzhu
15583e6017 rename some files 2014-01-28 16:29:42 +08:00