Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix error on Execer. Close #124 | mattn | 2014-06-26 | 1 | -42/+45 | |
| | ||||||
* | Implements Execer/Queryer. Close #60, #82, #113 | mattn | 2014-06-25 | 1 | -74/+61 | |
| | ||||||
* | Merge pull request #116 from c14n/master | mattn | 2014-06-25 | 1 | -2/+4 | |
|\ | | | | | Enable extended error codes. | |||||
| * | Enable extended error codes. | Christoph Martin | 2014-04-01 | 1 | -2/+4 | |
| | | ||||||
* | | Remove dead code in SQLiteRows.Bind. Close #119 | mattn | 2014-06-25 | 1 | -8/+0 | |
|/ | ||||||
* | tiny typo fix | tpltnt | 2014-02-18 | 1 | -1/+1 | |
| | ||||||
* | Next(): populate Row with []byte instead of string, as per driver doc | mpl | 2013-12-05 | 1 | -1/+1 | |
| | | | | | Fix on behalf of bradfitz, see http://golang.org/pkg/database/sql/driver/#Rows | |||||
* | Provide more detailed error messages | Robert Knight | 2013-11-19 | 1 | -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_v2 | mattn | 2013-10-24 | 1 | -6/+1 | |
|\ | | | | | Use sqlite3_close_v2() | |||||
| * | Use sqlite3_close_v2() | Akinori Hattori | 2013-10-24 | 1 | -6/+1 | |
| | | ||||||
* | | sqlite3_column_blob() returns NULL for zero-length BLOB | Akinori Hattori | 2013-10-24 | 1 | -0/+4 | |
|/ | ||||||
* | Include errno.h when build on cygwin. Closes #87 | mattn | 2013-10-02 | 1 | -0/+4 | |
| | ||||||
* | Disable Execer/Queryer until database/sql/driver implement QueryRow: #82 | mattn | 2013-09-12 | 1 | -59/+61 | |
| | ||||||
* | Execer/Queryer should use transaction | mattn | 2013-09-12 | 1 | -0/+14 | |
| | ||||||
* | Fixes Queryer | mattn | 2013-09-09 | 1 | -5/+8 | |
| | ||||||
* | Fixes Execer/Queryer | mattn | 2013-09-09 | 1 | -18/+19 | |
| | ||||||
* | Close rows if not nil | mattn | 2013-09-09 | 1 | -1/+3 | |
| | ||||||
* | Must not close statement | mattn | 2013-09-09 | 1 | -2/+2 | |
| | ||||||
* | Implements Queryer | mattn | 2013-09-09 | 1 | -1/+24 | |
| | ||||||
* | Remove debug message | mattn | 2013-09-09 | 1 | -1/+0 | |
| | ||||||
* | Implements Execer | mattn | 2013-09-09 | 1 | -4/+30 | |
| | ||||||
* | Start work on introducing machine-readable error codes. | Jochen Voss | 2013-08-30 | 1 | -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 extensions | Carlos Castillo | 2013-08-24 | 1 | -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 example | Carlos Castillo | 2013-08-24 | 1 | -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 typo | mattn | 2013-08-23 | 1 | -6/+6 | |
| | ||||||
* | Add AutoCommit | mattn | 2013-08-23 | 1 | -0/+4 | |
| | ||||||
* | Possible to register custom driver | mattn | 2013-08-23 | 1 | -5/+11 | |
| | ||||||
* | Add new driver name 'sqlite3_with_extensions' | mattn | 2013-08-23 | 1 | -1/+12 | |
| | ||||||
* | Rervert ff8e6729ce0628c3da97bd8e85c636f3645c2516 | mattn | 2013-08-14 | 1 | -15/+11 | |
| | ||||||
* | Fixes package name | mattn | 2013-08-13 | 1 | -1/+1 | |
| | ||||||
* | Start work on introducing machine-readable error codes. | Jochen Voss | 2013-08-13 | 1 | -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 Hill | 2013-08-02 | 1 | -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 fmt | mattn | 2013-05-11 | 1 | -2/+2 | |
| | ||||||
* | the SQLiteResult refers to the connection after it should no longer be ↵ | Russ Cox | 2013-05-11 | 1 | -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 64bit | mattn | 2013-04-09 | 1 | -1/+1 | |
| | ||||||
* | Add int32 type, close #55 | mattn | 2013-04-08 | 1 | -0/+2 | |
| | ||||||
* | Fix #54 | mattn | 2013-04-06 | 1 | -0/+8 | |
| | ||||||
* | Fixed #37 | mattn | 2013-02-13 | 1 | -1/+4 | |
| | ||||||
* | Some older version of sqlite3 does not have SQLITE_OPEN_URI. | mattn | 2013-02-03 | 1 | -3/+11 | |
| | ||||||
* | Add comments. | mattn | 2013-01-31 | 1 | -18/+44 | |
| | ||||||
* | add flag SQLITE_OPEN_URI to open. closes #38 | mattn | 2013-01-29 | 1 | -1/+2 | |
| | ||||||
* | Support more of the timestamp formats undestood by SQLite | Micah Stetson | 2012-12-29 | 1 | -0/+4 | |
| | ||||||
* | Support time values with nanosecond precision | Micah Stetson | 2012-12-29 | 1 | -13/+14 | |
| | ||||||
* | Convert times to UTC before storage | Micah Stetson | 2012-12-29 | 1 | -1/+1 | |
| | ||||||
* | Fix #33 and #34 | Micah Stetson | 2012-12-29 | 1 | -15/+15 | |
| | ||||||
* | check destination type whether it's *time.Time or not. | mattn | 2012-12-26 | 1 | -7/+14 | |
| | ||||||
* | No return error when invalid datetime. | mattn | 2012-12-26 | 1 | -1/+1 | |
| | ||||||
* | fixed last_id/changes. it seems long alignment values. | mattn | 2012-12-07 | 1 | -4/+16 | |
| | ||||||
* | Add support for extracting `2006-01-02 15:04:05.000` formatted datetime. | Dobrosław Żybort | 2012-11-29 | 1 | -2/+6 | |
| | ||||||
* | Add support for extracting 2006-01-02 formatted timestamps. | lye | 2012-11-03 | 1 | -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. |