jinzhu/gorm — pull request #169 by jamiefoster (2014-07-15 17:44:59+00:00)
Title: Add support for sqlite3 hook

This is useful for adding backup functionality to SQLite as seen here:

https://github.com/mattn/go-sqlite3/blob/master/_example/hook/hook.go

In that sample, "sqlite3_with_hook_example" is the name of the driver to be registered. I used "sqlite3hook" in my fork as a generic name. Otherwise gorm will use SQLite in compatibility mode.