diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-11-04 15:11:24 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-11-04 15:11:24 +0900 |
commit | 025b917610cf628e9be1dcf9386525d0dbc22659 (patch) | |
tree | d07015c8f2199a5dce8e647bda486c42e34bb90a /sqlite3_go18.go | |
parent | build tag (diff) | |
download | golite-025b917610cf628e9be1dcf9386525d0dbc22659.tar.gz golite-025b917610cf628e9be1dcf9386525d0dbc22659.tar.xz |
add PrepareContext
Diffstat (limited to 'sqlite3_go18.go')
-rw-r--r-- | sqlite3_go18.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sqlite3_go18.go b/sqlite3_go18.go index 28a1bbf..5832a92 100644 --- a/sqlite3_go18.go +++ b/sqlite3_go18.go @@ -33,6 +33,10 @@ func (c *SQLiteConn) ExecContext(ctx context.Context, query string, args []drive return c.exec(ctx, query, list) } +func (c *SQLiteConn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) { + return c.prepare(ctx, query) +} + func (s *SQLiteStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) { list := make([]namedValue, len(args)) for i, nv := range args { |