forked from mirror/go-sqlcipher
976f43861f
The ConnectHook field of an SQLiteDriver should return an error in case something bad happened during the hook. The extension example needs to load the extension in a ConnectHook, otherwise the extension is only loaded in a single connection in the pool. By putting the extension loading in the ConnectHook, its called for every connection that is opened by the sql.DB. |
||
---|---|---|
.. | ||
extension | ||
simple |