aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix error on Execer. Close #124mattn2014-06-261-42/+45
|
* Implements Execer/Queryer. Close #60, #82, #113mattn2014-06-251-74/+61
|
* Merge pull request #116 from c14n/mastermattn2014-06-251-2/+4
|\ | | | | Enable extended error codes.
| * Enable extended error codes.Christoph Martin2014-04-011-2/+4
| |
* | Remove dead code in SQLiteRows.Bind. Close #119mattn2014-06-251-8/+0
|/
* tiny typo fixtpltnt2014-02-181-1/+1
|
* Next(): populate Row with []byte instead of string, as per driver docmpl2013-12-051-1/+1
| | | | | Fix on behalf of bradfitz, see http://golang.org/pkg/database/sql/driver/#Rows
* Provide more detailed error messagesRobert Knight2013-11-191-13/+19
| | | | | | | | | Use the sqlite3_errmsg() API to retrieve more specific error messages. eg. Attempting to exec 'CREATE TABLE ExistingTableName (...)' will now report 'table already exists: ExistingTableName' rather than 'SQL logic error or missing database'
* Merge pull request #88 from hattya/close_v2mattn2013-10-241-6/+1
|\ | | | | Use sqlite3_close_v2()
| * Use sqlite3_close_v2()Akinori Hattori2013-10-241-6/+1
| |
* | sqlite3_column_blob() returns NULL for zero-length BLOBAkinori Hattori2013-10-241-0/+4
|/
* Include errno.h when build on cygwin. Closes #87mattn2013-10-021-0/+4
|
* Disable Execer/Queryer until database/sql/driver implement QueryRow: #82mattn2013-09-121-59/+61
|
* Execer/Queryer should use transactionmattn2013-09-121-0/+14
|
* Fixes Queryermattn2013-09-091-5/+8
|
* Fixes Execer/Queryermattn2013-09-091-18/+19
|
* Close rows if not nilmattn2013-09-091-1/+3
|
* Must not close statementmattn2013-09-091-2/+2
|
* Implements Queryermattn2013-09-091-1/+24
|
* Remove debug messagemattn2013-09-091-1/+0
|
* Implements Execermattn2013-09-091-4/+30
|
* Start work on introducing machine-readable error codes.Jochen Voss2013-08-301-11/+15
| | | | | | This commit introduces a new type 'ErrNo', implementing the error interface. Constants for all sqlite3 error codes are provided in the new source file "error.go".
* Changed extension support to load from a string list of extensionsCarlos Castillo2013-08-241-12/+30
| | | | | | | | | | | | | | 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/+4
| | | | | | | | | | 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.
* Fixes typomattn2013-08-231-6/+6
|
* Add AutoCommitmattn2013-08-231-0/+4
|
* Possible to register custom drivermattn2013-08-231-5/+11
|
* Add new driver name 'sqlite3_with_extensions'mattn2013-08-231-1/+12
|
* Rervert ff8e6729ce0628c3da97bd8e85c636f3645c2516mattn2013-08-141-15/+11
|
* Fixes package namemattn2013-08-131-1/+1
|
* Start work on introducing machine-readable error codes.Jochen Voss2013-08-131-11/+15
| | | | | | This commit introduces a new type 'ErrNo', implementing the error interface. Constants for all sqlite3 error codes are provided in the new source file "error.go".
* call sqlite3_column_blob() before sqlite3_column_bytes()David Hill2013-08-021-1/+1
| | | | | | | | sqlite3 documentation states sqlite3_column_blob could modify the the content and recommends the "safest and easiest" policy is to invoke sqlite3_column_blob() followed by sqlite3_column_bytes() from: http://www.sqlite.org/c3ref/column_blob.html
* go fmtmattn2013-05-111-2/+2
|
* the SQLiteResult refers to the connection after it should no longer be ↵Russ Cox2013-05-111-4/+10
| | | | referring to the connection. The fix is to fetch the answers before Exec returns, just in case someone wants them.
* Treat int as 64bitmattn2013-04-091-1/+1
|
* Add int32 type, close #55mattn2013-04-081-0/+2
|
* Fix #54mattn2013-04-061-0/+8
|
* Fixed #37mattn2013-02-131-1/+4
|
* Some older version of sqlite3 does not have SQLITE_OPEN_URI.mattn2013-02-031-3/+11
|
* Add comments.mattn2013-01-311-18/+44
|
* add flag SQLITE_OPEN_URI to open. closes #38mattn2013-01-291-1/+2
|
* Support more of the timestamp formats undestood by SQLiteMicah Stetson2012-12-291-0/+4
|
* Support time values with nanosecond precisionMicah Stetson2012-12-291-13/+14
|
* Convert times to UTC before storageMicah Stetson2012-12-291-1/+1
|
* Fix #33 and #34Micah Stetson2012-12-291-15/+15
|
* check destination type whether it's *time.Time or not.mattn2012-12-261-7/+14
|
* No return error when invalid datetime.mattn2012-12-261-1/+1
|
* fixed last_id/changes. it seems long alignment values.mattn2012-12-071-4/+16
|
* Add support for extracting `2006-01-02 15:04:05.000` formatted datetime.Dobrosław Żybort2012-11-291-2/+6
|
* Add support for extracting 2006-01-02 formatted timestamps.lye2012-11-031-1/+5
| | | | | | | | | | | | SQLite3 stores timestamps very naively -- they're completely untyped, and can contain any value. The previous implementation always inserts values in the 'datetime' format, and returns an error when attempting to extract a field with a different format. Some legacy databases, unfortunately, were generated using the 'date' SQLite3 function, which produces rows in the '2006-01-02' format. This patch adds a special case so that these rows can be extracted without error.