aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* fixes raceYasuhiro Matsumoto2017-02-111-4/+8
|
* close statementYasuhiro Matsumoto2017-01-071-0/+1
|
* fix race conditionYasuhiro Matsumoto2017-01-031-3/+3
|
* fix named argsYasuhiro Matsumoto2016-12-091-1/+1
|
* use prepare instead of PrepareYasuhiro Matsumoto2016-11-091-2/+2
|
* fix buildYasuhiro Matsumoto2016-11-081-1/+1
|
* fix buildYasuhiro Matsumoto2016-11-081-3/+3
|
* revert Multiple Result SetYasuhiro Matsumoto2016-11-081-23/+1
|
* fix trace callback.Yasuhiro Matsumoto2016-11-081-1/+1
|
* fix trace callback.Yasuhiro Matsumoto2016-11-081-23/+33
| | | | Close #352
* Fix data race introduced on 605d9d08andrefsp2016-11-071-1/+0
| | | | | This commit will fix a data race introduced on 605d9d08 and also make sure travis CI will now check for data races.
* cancelYasuhiro Matsumoto2016-11-061-0/+12
|
* cancelYasuhiro Matsumoto2016-11-061-1/+25
|
* go vet && golintYasuhiro Matsumoto2016-11-051-25/+25
|
* add BeginContextYasuhiro Matsumoto2016-11-041-0/+4
|
* add PrepareContextYasuhiro Matsumoto2016-11-041-0/+4
|
* support named paramsYasuhiro Matsumoto2016-11-041-28/+20
|
* context featuresYasuhiro Matsumoto2016-11-041-11/+63
|
* remove -Wno-c99-extensionYasuhiro Matsumoto2016-10-281-1/+1
| | | | Close #343
* Added CFLAG config to ignore deprecationsJudson2016-10-041-0/+1
|
* fix buildYasuhiro Matsumoto2016-09-081-183/+0
|
* fix buildYasuhiro Matsumoto2016-09-081-1/+6
|
* Provide access to sqlite3_trace_v2().A.N2016-09-071-0/+52
|
* Merge pull request #300 from sqweek/issue184mattn2016-07-151-0/+6
|\ | | | | Fix inconsistent tx state with database/sql.
| * Fix inconsistent tx state with database/sql.sqweek2016-04-181-0/+6
| | | | | | | | | | | | | | | | | | The semantics of sql.Tx.Commit impose that the transaction is finished and cleaned up by the time the driver's Commit function returns. However sqlite3 leaves the transaction open if COMMIT fails due to an SQLITE_BUSY error, so *we* must clean it up. Closes #184.
* | Set SQLITE_DETERMINISTIC if undefinedZbigniew Mandziejewicz2016-04-231-0/+4
|/
* Move sqlite3 amalgation files a directory up.David Bariod2016-04-021-0/+4
| | | | | | The purpose is to ease the use of vendoring files like godep. The C sqlite3 files have been added a go compilation conditional flag Fix #293
* Add SQLiteRows.DeclTypes() methodZac Medico2016-03-061-6/+12
|
* Fix minor typos in commentsPhilip O Toole2016-02-231-3/+3
|
* Merge pull request #267 from ianlancetaylor/go16mattn2016-02-011-4/+4
|\ | | | | bind: pass &v[0] in direct call to C
| * bind: pass &v[0] in direct call to CIan Lance Taylor2016-01-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Go 1.6, the cgo checking rules are more precise when they see an address operation as an argument to the C function. When you pass &v[0] to a C function, the cgo check just verifies that v itself does not contain any pointers. When you write `p := &v[0]` and then pass p to the C function, the cgo check is conservative: it verifies that the entire memory block to which p points does not contain any pointers. When the bind function is called by code that passes a slice that is part of a larger struct, this means that the cgo check will look at the entire larger struct, not just the slice. This can cause a surprising run time failure. Avoid this problem by rewriting the code slightly to pass &v[0] in the call to the C function itself. In particular this fixes the tests of github.com/jmoiron/sqlx when using Go 1.6.
* | callback: use handles rather than passing Go pointersIan Lance Taylor2016-01-291-2/+3
|/ | | | | | | | | The cgo pointer passing rules forbid passing a Go pointer to C if that pointer points to memory containing other Go pointers. This is true even if the Go pointer is converted to uintptr. This change fixes the code to use a handle instead, and to look up the handle in the callback function.
* avoid cgoCheckPointer. ref https://github.com/golang/go/issues/12416Yasuhiro Matsumoto2015-12-301-2/+16
|
* Merge branch 'master' of https://github.com/mattn/go-sqlite3Yasuhiro Matsumoto2015-11-021-11/+11
|\
| * Store/retrieve timezones for time.Time values.Augusto Roman2015-10-091-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the timezone information for a provided value was discarded and the value always stored as in UTC. However, sqlite allows specifying the timezone offsets and handles those values appropriately. This change stores the timezone information and parses it out if present, otherwise it defaults to UTC as before. One additional bugfix: Previously, a unix timestamp in seconds was parsed in the local timezone (rather than UTC), in contrast to a unix timestamp in milliseconds that was parsed in UTC. While fixing that extra bug, I cleaned up the parsing code -- no need to convert to a string and then parse it back again and risk a parse error, just to check the number of digits. The tests were extended to cover non-UTC timezones storage & retrieval, meaningful unix timestamps, and correct handling of a trailing Z.
* | Merge branch 'pr/207'Yasuhiro Matsumoto2015-11-021-1/+1
|\ \ | |/ |/|
| * Fix doc commentLars Buitinck2015-06-051-1/+1
| |
* | Add FTS4 unicode61 tokenizer supportlooi2015-09-211-1/+1
| |
* | Merge pull request #229 from danderson/mastermattn2015-09-161-3/+320
|\ \ | | | | | | Implement support for calling Go functions from SQLite
| * | Implement support for aggregation functions implemented in Go.David Anderson2015-09-151-33/+210
| | |
| * | Add support for interface{} arguments in Go SQLite functions.David Anderson2015-08-211-5/+8
| | | | | | | | | | | | | | | This enabled support for functions like Foo(a interface{}) and Bar(a ...interface{}).
| * | Implement support for variadic functions.David Anderson2015-08-211-10/+42
| | | | | | | | | | | | | | | Currently, the variadic part must all be the same type, because there's no "generic" arg converter.
| * | Move argument converters to callback.go, and optimize return value handling.David Anderson2015-08-211-104/+18
| | | | | | | | | | | | | | | | | | A call now doesn't have to do any reflection, it just blindly invokes a bunch of argument and return value handlers to execute the translation, and the safety of the translation is determined at registration time.
| * | Implement support for passing Go functions as custom functions to SQLite.David Anderson2015-08-211-0/+191
| | | | | | | | | | | | Fixes #226.
* | | introduce ability to pass sqlite_omit_load_extensionJessica Frazelle2015-09-041-17/+2
|/ / | | | | | | | | | | | | sqlite_omit_load_extension is a go build tag which behaves much like its C counterpart SQLITE_OMIT_LOAD_EXTENSION Signed-off-by: Jessica Frazelle <acidburn@docker.com>
* / Add fix for go-sqlite3 truncating 64-bit integers when compiled by 32-bit ↵kiwih2015-08-071-8/+8
|/ | | | mingw-gcc on windows by converting 'long' variable types to 'long long' in sqlite3.go
* Z suffix should be no-opYasuhiro Matsumoto2015-04-151-0/+1
|
* Merge pull request #194 from hallyn/tximm.2mattn2015-04-141-4/+23
|\ | | | | Add a txlock option when opening databases
| * Add a txlock option when opening databases (v2)Serge Hallyn2015-04-131-4/+23
| | | | | | | | | | | | | | | | | | | | | | When specified, changes the default locking at a tx.Begin. Changelog (v2): Add a testcase to ensure _txlock is properly handled. Closes #189 Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
* | Fix NULs in text.Egon Elbre2015-04-121-1/+3
|/ | | | | | NUL character is a valid symbols in UTF8. Fixes #195