Commit 4d6710be authored by gwenn's avatar gwenn

Sets multi-thread threading mode for database/sql driver.

parent cdc1ffac
......@@ -23,7 +23,6 @@ func init() {
log.Printf("%s: %s, %s\n", d, err, msg)
}, "SQLITE")
}
ConfigThreadingMode(MultiThread)
ConfigMemStatus(false)
}
......@@ -46,9 +45,8 @@ type rowsImpl struct {
// Open opens a new database connection.
// ":memory:" for memory db,
// "" for temp file db
// TODO How to specify open flags? SQLITE_OPEN_NOMUTEX
func (d *Driver) Open(name string) (driver.Conn, error) {
c, err := Open(name)
c, err := Open(name, OpenNoMutex, OpenReadWrite, OpenCreate)
if err != nil {
return nil, err
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment