aboutsummaryrefslogtreecommitdiff
path: root/example (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mvmattn2013-08-283-169/+0
|
* Use sqlite3.c in all platformsmattn2013-08-282-3/+7
|
* Changed extension support to load from a string list of extensionsCarlos Castillo2013-08-241-27/+2
| | | | | | | | | | | | | | By loading extensions this way, it's not possible to later load extensions using db.Exec, which improves security, and makes it much easier to load extensions correctly. The zero value for the slice (the empty slice) loads no extensions by default. The extension example has been updated to use this much simpler system. The ConnectHook field is still in SQLiteDriver in case it's needed for other driver-wide initialization. Updates #71 of mattn/go-sqlite3.
* Added error return to ConnectHook and fixed extension exampleCarlos Castillo2013-08-241-2/+32
| | | | | | | | | | 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.
* Rename because travis bringup errormattn2013-08-231-0/+0
|
* Fixes typomattn2013-08-231-1/+5
|
* Possible to register custom drivermattn2013-08-231-1/+3
|
* Add example for sqlite3 extensionmattn2013-08-231-0/+27
|
* Add example for sqlite3_with_extensionsmattn2013-08-231-0/+32
|
* mvmattn2013-08-231-23/+12
|
* add example code using bulk insert.mattn2012-12-261-0/+27
|
* use fmt.Println()mattn2012-12-071-2/+2
|
* remove Makefile.mattn2012-05-151-6/+0
|
* add example of Prepare()/QueryRow(). add db.Close(). close #7mattn2012-02-231-2/+16
|
* Updating exampleScott Lawrence2012-01-201-1/+1
|
* transaction.mattn2011-11-131-2/+7
|
* gofmt.mattn2011-11-111-60/+60
|
* first import.mattn2011-11-112-0/+66