Update Connection

* Add Config

#598
This commit is contained in:
Gert-Jan Timmer 2018-06-27 16:42:55 +02:00
parent ca65b399cb
commit 283f0f8809
2 changed files with 2 additions and 0 deletions

View File

@ -767,6 +767,7 @@ func (cfg *Config) createConnection() (driver.Conn, error) {
// Create basic connection
conn := &SQLiteConn{
cfg: cfg,
db: db,
tz: cfg.TimeZone,
txlock: cfg.TransactionLock.Value(),

View File

@ -37,6 +37,7 @@ var (
// SQLiteConn implement sql.Conn.
type SQLiteConn struct {
cfg *Config
mu sync.Mutex
db *C.sqlite3
tz *time.Location