aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_test/sqlite3_test.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-08-02fix possibly double Close.Yasuhiro Matsumoto1-0/+0
fixes #448
2017-07-09Add connection option for recursive triggersRoss Light2-0/+55
Similar to foreign keys, the recursive triggers PRAGMA affects the interpretation of all statements on a connection.
2017-07-05SQLITE_THREADSAFE=1Yasuhiro Matsumoto1-1/+1
fixes #274
2017-07-03Incorporate original PR 271 from https://github.com/brokensandalsJason Abbott4-0/+139
2017-06-30Don't convert Unix times to nanoseconds when querying datetime fields. Fixes ↵deepilla2-2/+4
#430.
2017-06-20Fix for cgo panic, issue #428: https://github.com/mattn/go-sqlite3/issues/428Evgeniy Makeev1-7/+4
2017-06-17Sync database-close and statement-closePhilip O'Toole1-1/+14
Potential fix for issue #426.
2017-06-14Use global variable for better performance.Xu Xinran1-3/+4
2017-06-14Treat []byte{} as empty bytes instead of NULL.Xu Xinran1-2/+4
2017-05-29Use "sqlite3" instead of "sqlite" in usage example.Jonathan Hall1-5/+5
And a minor grammar improvement.
2017-04-07Adding unit test for VTable Insert/Update/DeleteKenneth Shaw2-1/+338
2017-04-01Add _foreign_keys connection parameterRoss Light2-3/+72
Fixes #377 Updates #255
2017-04-01Avoid leaking db if setting busy timeout failsRoss Light1-0/+1
2017-03-24Adding hook to vhook to allow vtables to be modifiedKenneth Shaw1-2/+72
This commit changes the vtable 'xUpdate' goModule field to a new 'cXUpdate' callback function which in turns calls a 'goVUpdate' callback. This new callback allows Go defined virtual table implementations satisfying the VTabUpdater interface (also newly defined) a way to delete/insert/update rows in a VTab. Additionally, an anonymous interface is used within the goVUpdate callback looking for 'TableName() string' which, when defined on a VTab is used to provide a better contextual error message to end users if the VTab is read only. Care was taken to follow existing code style/conventions for this addition, and for backwards-compatibility with existing VTab implementations (hence why a new interface was required).
2017-03-24Removed ambitious conn.Close()Marko Kungla1-1/+0
2017-03-24close connection when got errors in OpenYasuhiro Matsumoto1-0/+3
2017-03-21fix breaking compatibility.Yasuhiro Matsumoto4-16/+15
revert cf4bd560f1588d96c502b4c3407fe1a10cef4a28 close #394
2017-03-21fix testYasuhiro Matsumoto1-3/+3
2017-03-21disable extension when loading failedYasuhiro Matsumoto1-0/+1
2017-03-21fix testYasuhiro Matsumoto1-1/+1
2017-03-20fix buildYasuhiro Matsumoto1-2/+2
2017-03-20fix buildYasuhiro Matsumoto3-7/+7
2017-03-20fix buildYasuhiro Matsumoto2-2/+2
2017-03-20return nil when last error is SQLITE_OKYasuhiro Matsumoto1-1/+5
2017-03-05fix testYasuhiro Matsumoto1-0/+1
2017-03-05golintYasuhiro Matsumoto1-4/+5
2017-03-05renameYasuhiro Matsumoto1-0/+0
2017-03-05add test envYasuhiro Matsumoto1-1/+1
2017-03-05vtable is not defaultYasuhiro Matsumoto1-0/+1
2017-03-05refactoringYasuhiro Matsumoto4-197/+202
2017-03-05renameYasuhiro Matsumoto1-0/+0
2017-03-05remove dependency of assertYasuhiro Matsumoto1-14/+36
2017-03-05add gorepocard badgeYasuhiro Matsumoto1-1/+2
2017-03-05golintYasuhiro Matsumoto2-6/+8
2017-03-05remove type ZeroBlobLengthYasuhiro Matsumoto1-2/+1
2017-03-05golintYasuhiro Matsumoto2-9/+9
2017-03-05use pointer receiverYasuhiro Matsumoto2-5/+6
2017-03-05fix import pathYasuhiro Matsumoto1-1/+2
2017-03-04[vtable] Rename Context to SQLiteContextConor Branagan4-14/+14
To not conflict with core "context" package naming.
2017-03-04[vtable] Add pure Go example of GitHub repo vtable.Conor Branagan2-0/+147
2017-03-04Add Go API for virtual tablesConor Branagan5-1/+798
See https://www.sqlite.org/vtab.html for more details. This work was started from https://github.com/gwenn/gosqlite/blob/master/vtab.{c,go} and adds: - Porting the API to go-sqlite3 APIs. - Support for >= Go 1.6 without requiring the `cgocheck` flag to be changed. - Filling out the unfinished callback functions for the `Vtable` struct. - A simple `Context` API layer for ease of use when adding modules. Tests are included.
2017-03-05fix testYasuhiro Matsumoto1-1/+1
2017-03-05not use underscoreYasuhiro Matsumoto1-2/+2
2017-03-05rename functionYasuhiro Matsumoto1-2/+2
2017-03-05add godoc for fixes golintYasuhiro Matsumoto1-3/+17
2017-03-05fix typosYasuhiro Matsumoto1-4/+4
2017-03-05use named fieldYasuhiro Matsumoto1-10/+10
2017-03-02Added available extensions to READMESergey Mudrik1-0/+2
2017-03-01remove 1.6Yasuhiro Matsumoto1-1/+0
2017-03-01test on 1.8Yasuhiro Matsumoto1-1/+2