aboutsummaryrefslogtreecommitdiff
path: root/_example/extension/sqlite3_mod_regexp.c
diff options
context:
space:
mode:
authorCarlos Castillo <cookieo9@gmail.com>2013-08-24 20:04:51 -0700
committerCarlos Castillo <cookieo9@gmail.com>2013-08-24 20:04:51 -0700
commit976f43861ffde82e2f0939793124b172d2ebd2ec (patch)
tree40ef04fc05b79faf1187f34c9e4029e28e2049b3 /_example/extension/sqlite3_mod_regexp.c
parentRename because travis bringup error (diff)
downloadgolite-976f43861ffde82e2f0939793124b172d2ebd2ec.tar.gz
golite-976f43861ffde82e2f0939793124b172d2ebd2ec.tar.xz
Added error return to ConnectHook and fixed extension example
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.
Diffstat (limited to '_example/extension/sqlite3_mod_regexp.c')
0 files changed, 0 insertions, 0 deletions