aboutsummaryrefslogtreecommitdiff
path: root/serverkeyapi/storage/sqlite3/server_key_table.go
diff options
context:
space:
mode:
Diffstat (limited to 'serverkeyapi/storage/sqlite3/server_key_table.go')
-rw-r--r--serverkeyapi/storage/sqlite3/server_key_table.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/serverkeyapi/storage/sqlite3/server_key_table.go b/serverkeyapi/storage/sqlite3/server_key_table.go
index b829eae7..f756ef5e 100644
--- a/serverkeyapi/storage/sqlite3/server_key_table.go
+++ b/serverkeyapi/storage/sqlite3/server_key_table.go
@@ -63,14 +63,14 @@ const upsertServerKeysSQL = "" +
type serverKeyStatements struct {
db *sql.DB
- writer sqlutil.TransactionWriter
+ writer sqlutil.Writer
bulkSelectServerKeysStmt *sql.Stmt
upsertServerKeysStmt *sql.Stmt
}
-func (s *serverKeyStatements) prepare(db *sql.DB) (err error) {
+func (s *serverKeyStatements) prepare(db *sql.DB, writer sqlutil.Writer) (err error) {
s.db = db
- s.writer = sqlutil.NewTransactionWriter()
+ s.writer = writer
_, err = db.Exec(serverKeysSchema)
if err != nil {
return