Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Build with "go tool" and hackishly bundle code from same package into one ↵ | EuAndreh | 2024-08-12 | 1 | -2570/+0 |
| | | | | file each | ||||
* | go fmt ./... | Yasuhiro Matsumoto | 2024-01-25 | 1 | -25/+25 |
| | |||||
* | update go version to 1.19 | Yasuhiro Matsumoto | 2024-01-25 | 1 | -15/+15 |
| | |||||
* | Rollback on constraint failure (#1071) | Joshua Hull | 2022-09-01 | 1 | -0/+37 |
| | | | Always rollback on a commit error | ||||
* | Fix TestQueryer test to use exec for multistatement insertion | Joshua Hull | 2022-09-02 | 1 | -10/+18 |
| | |||||
* | Fix TestQueryer test | Joshua Hull | 2022-09-02 | 1 | -1/+1 |
| | |||||
* | TestQueryer: actually check Rows returned | Oliver Giles | 2022-08-16 | 1 | -10/+12 |
| | | | | | Fixes a test which did not correctly exercise the multi-statement Queryer functionality | ||||
* | Support returning any from callbacks (#1046) | Phil Eaton | 2022-05-29 | 1 | -0/+57 |
| | | | Support returning any from callbacks | ||||
* | Add sqlite3_file_control() support | Ben Johnson | 2022-01-29 | 1 | -0/+38 |
| | | | | | | | This commit adds the SQLiteConn.FileControlInt() method which calls the underlying sqlite3_file_control() function with an int argument. This can be used for low-level operations on SQLite databases such as persisting the WAL file after database close. | ||||
* | sqlite3_test.go: Fix go test -run=...: Use standard sub-tests (#881) | Evan Jones | 2021-10-26 | 1 | -22/+38 |
| | | | | | | | | | | | Selecting only some tests with go test -run=... does not work, because some of the tests are executed using testing.RunTests(). That function is documented as "an internal function". This changes TestSuite to use the testing subtests feature instead. This has a behaviour change: the benchmarks now need to be selected at the command line with the standard go test -bench=. flag. This will also set up the test database twice when running benchmarks, rather than once. | ||||
* | Use single-quotes around string literals. (#934) | Michael Hofmann | 2021-10-26 | 1 | -10/+10 |
| | |||||
* | return non-nil result when calling exec with empty query (#973) | Aviv Klasquin Komissar | 2021-10-19 | 1 | -0/+20 |
| | | | fixes #963 | ||||
* | make column metadata functionality opt-in | Jesse Rittner | 2021-02-18 | 1 | -34/+0 |
| | |||||
* | Export sqlite3_column_table_name (#900) | Philip O'Toole | 2021-02-18 | 1 | -0/+34 |
| | |||||
* | Support vfs for Open (#877) | mattn | 2020-11-17 | 1 | -0/+38 |
| | | | Closes #876 | ||||
* | sqlite3_test.go: Move Go 1.13 test to sqlite3_go113_test.go (#883) | Evan Jones | 2020-11-17 | 1 | -30/+0 |
| | | | | | | | | | Commit 4f7abea96e added a test that uses Conn.Raw, which was added in Go >= 1.13. The go-sqlite3 project runs tests with Go >= 1.11. Remove the test from sqlite3_test.go, so it only runs with the correct versions of Go. Instead of adding a new test, modify the existing test that already uses Conn.Raw() to check the type of driverConn. | ||||
* | doc.go: you can use Conn.Raw to get *SQLiteConn (#882) | Evan Jones | 2020-11-16 | 1 | -0/+30 |
| | | | | This can be easier that registering a new driver, in some cases. Add a test to verify that this works. | ||||
* | Enable all prefixes for named parameters and allow for unused named ↵ | gber | 2020-05-14 | 1 | -0/+39 |
| | | | | | | | | | | | | | parameters (#811) * Allow unused named parameters Try to bind all named parameters and ignore those not used. * Allow "@" and "$" for named parameters * Add tests for named parameters Co-authored-by: Guido Berhoerster <guido+go-sqlite3@berhoerster.name> | ||||
* | add SystemErrno to Error (#740) | rittneje | 2019-12-17 | 1 | -2/+2 |
| | | | | | | | | * adding SystemErrno to Error, and fixing error logic when open fails * fix for old versions of libsqlite3 that do not have sqlite3_system_errno defined * fixing pre-processor logic | ||||
* | Add build constraints for non cgo | Yasuhiro Matsumoto | 2019-11-18 | 1 | -1/+3 |
| | |||||
* | Updated Ping to return ErrBadConn | MichaelS11 | 2019-06-19 | 1 | -9/+21 |
| | | | | | | Added TestOpenContext Added TestFileCopyTruncate Added ping to doTestOpen | ||||
* | Print type of result | Yasuhiro Matsumoto | 2019-02-11 | 1 | -1/+1 |
| | |||||
* | Add test | Yasuhiro Matsumoto | 2019-02-11 | 1 | -0/+20 |
| | |||||
* | fixed typo | Jesse Rittner | 2018-12-08 | 1 | -1/+1 |
| | |||||
* | adding unit test | Jesse Rittner | 2018-12-08 | 1 | -0/+58 |
| | |||||
* | Merge pull request #643 from akalin/zero-length-blob | mattn | 2018-11-22 | 1 | -0/+31 |
|\ | | | | | Distinguish between NULL and zero-length blobs on query | ||||
| * | Clean up test | Frederick Akalin | 2018-09-22 | 1 | -2/+4 |
| | | |||||
| * | Add failing test | Frederick Akalin | 2018-09-22 | 1 | -0/+29 |
| | | |||||
* | | sqlite3_test.go: Simplify return err | Mario Trangoni | 2018-11-21 | 1 | -4/+1 |
| | | |||||
* | | Add fatal message | Frederick Akalin | 2018-09-22 | 1 | -1/+1 |
| | | |||||
* | | Actually check the value of RunTests | Frederick Akalin | 2018-09-22 | 1 | -1/+4 |
|/ | |||||
* | implementation of set_authorizer interface | Grzegorz Marszałek | 2018-08-25 | 1 | -0/+41 |
| | |||||
* | Use t.Skip for TestUpsert to be compliant with the actual cade base. | Yoann Cerda | 2018-06-12 | 1 | -4/+1 |
| | |||||
* | fix upsert log typos. | Yoann Cerda | 2018-06-12 | 1 | -1/+3 |
| | |||||
* | bump sqlite3 3.24.0 and add TestUpsert. | Yoann Cerda | 2018-06-12 | 1 | -0/+50 |
| | |||||
* | fix/118 | Gert-Jan Timmer | 2018-06-12 | 1 | -0/+51 |
| | | | | | | * Added TestMultiBlobs * Removed dead code Fixes #118 | ||||
* | Add zero-length slice test | Lucas Manuel Rodriguez | 2018-05-31 | 1 | -0/+4 |
| | |||||
* | Add nil check in bind and a test | Lucas Manuel Rodriguez | 2018-05-30 | 1 | -0/+15 |
| | |||||
* | Merge pull request #549 from mjtrangoni/fix-linter-issues | mattn | 2018-04-17 | 1 | -7/+4 |
|\ | | | | | Fix linter issues | ||||
| * | fix small codespell issue | Mario Trangoni | 2018-04-17 | 1 | -1/+1 |
| | | |||||
| * | fix all gosimple issues | Mario Trangoni | 2018-04-17 | 1 | -6/+3 |
| | | |||||
* | | Move RegisterAggregator implementation | Kenneth Shaw | 2017-11-05 | 1 | -0/+60 |
| | | | | | | | | | | | | | | | | | | | | | | The SQLiteConn.RegisterAggregator implementation was defined in sqlite3_trace.go file, which is guarded with a build constraint. This change simply moves RegisterAggregator to the main sqlite3.go file, and moves accompanying unit tests. The rationale for this move is that it was not possible for downstream using packages to use RegisterAggregator without also specifying (and notifying the user) the 'trace' build tag. | ||||
* | | Merge branch 'master' into master | mattn | 2017-08-30 | 1 | -14/+568 |
|\| | |||||
| * | Improved TestNilAndEmptyBytes | Greg Holt | 2017-08-21 | 1 | -1/+3 |
| | | | | | | | | I forgot that bytes.Equals treats nil and []byte{} as equal. | ||||
| * | Added TestNilAndEmptyBytes | Greg Holt | 2017-08-21 | 1 | -0/+54 |
| | | |||||
| * | fix test | Yasuhiro Matsumoto | 2017-08-02 | 1 | -34/+35 |
| | | |||||
| * | ignore errors in teardown | Yasuhiro Matsumoto | 2017-08-02 | 1 | -2/+2 |
| | | |||||
| * | fix tests on tip | Yasuhiro Matsumoto | 2017-08-02 | 1 | -14/+420 |
| | | |||||
| * | Add connection option for recursive triggers | Ross Light | 2017-07-09 | 1 | -0/+29 |
| | | | | | | | | | | Similar to foreign keys, the recursive triggers PRAGMA affects the interpretation of all statements on a connection. | ||||
| * | Incorporate original PR 271 from https://github.com/brokensandals | Jason Abbott | 2017-07-03 | 1 | -0/+61 |
| | |