diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-11-04 15:15:16 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-11-04 15:15:16 +0900 |
commit | 755d5be32c971580a8ae5ed32a6bd5ff774d722d (patch) | |
tree | 827e969d880d28c59f3e7235711afa8a1ddc3b8a /sqlite3.go | |
parent | add PrepareContext (diff) | |
download | golite-755d5be32c971580a8ae5ed32a6bd5ff774d722d.tar.gz golite-755d5be32c971580a8ae5ed32a6bd5ff774d722d.tar.xz |
add BeginContext
Diffstat (limited to 'sqlite3.go')
-rw-r--r-- | sqlite3.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -514,6 +514,10 @@ func (c *SQLiteConn) execQuery(cmd string) (driver.Result, error) { // Begin transaction. func (c *SQLiteConn) Begin() (driver.Tx, error) { + return c.begin(context.Background()) +} + +func (c *SQLiteConn) begin(ctx context.Context) (driver.Tx, error) { if _, err := c.execQuery(c.txlock); err != nil { return nil, err } |