aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Build with "go tool" and hackishly bundle code from same package into one ↵EuAndreh2024-08-121-2570/+0
| | | | file each
* go fmt ./...Yasuhiro Matsumoto2024-01-251-25/+25
|
* update go version to 1.19Yasuhiro Matsumoto2024-01-251-15/+15
|
* Rollback on constraint failure (#1071)Joshua Hull2022-09-011-0/+37
| | | Always rollback on a commit error
* Fix TestQueryer test to use exec for multistatement insertionJoshua Hull2022-09-021-10/+18
|
* Fix TestQueryer testJoshua Hull2022-09-021-1/+1
|
* TestQueryer: actually check Rows returnedOliver Giles2022-08-161-10/+12
| | | | | Fixes a test which did not correctly exercise the multi-statement Queryer functionality
* Support returning any from callbacks (#1046)Phil Eaton2022-05-291-0/+57
| | | Support returning any from callbacks
* Add sqlite3_file_control() supportBen Johnson2022-01-291-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 Jones2021-10-261-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 Hofmann2021-10-261-10/+10
|
* return non-nil result when calling exec with empty query (#973)Aviv Klasquin Komissar2021-10-191-0/+20
| | | fixes #963
* make column metadata functionality opt-inJesse Rittner2021-02-181-34/+0
|
* Export sqlite3_column_table_name (#900)Philip O'Toole2021-02-181-0/+34
|
* Support vfs for Open (#877)mattn2020-11-171-0/+38
| | | Closes #876
* sqlite3_test.go: Move Go 1.13 test to sqlite3_go113_test.go (#883)Evan Jones2020-11-171-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 Jones2020-11-161-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 ↵gber2020-05-141-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)rittneje2019-12-171-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 cgoYasuhiro Matsumoto2019-11-181-1/+3
|
* Updated Ping to return ErrBadConnMichaelS112019-06-191-9/+21
| | | | | | Added TestOpenContext Added TestFileCopyTruncate Added ping to doTestOpen
* Print type of resultYasuhiro Matsumoto2019-02-111-1/+1
|
* Add testYasuhiro Matsumoto2019-02-111-0/+20
|
* fixed typoJesse Rittner2018-12-081-1/+1
|
* adding unit testJesse Rittner2018-12-081-0/+58
|
* Merge pull request #643 from akalin/zero-length-blobmattn2018-11-221-0/+31
|\ | | | | Distinguish between NULL and zero-length blobs on query
| * Clean up testFrederick Akalin2018-09-221-2/+4
| |
| * Add failing testFrederick Akalin2018-09-221-0/+29
| |
* | sqlite3_test.go: Simplify return errMario Trangoni2018-11-211-4/+1
| |
* | Add fatal messageFrederick Akalin2018-09-221-1/+1
| |
* | Actually check the value of RunTestsFrederick Akalin2018-09-221-1/+4
|/
* implementation of set_authorizer interfaceGrzegorz Marszałek2018-08-251-0/+41
|
* Use t.Skip for TestUpsert to be compliant with the actual cade base.Yoann Cerda2018-06-121-4/+1
|
* fix upsert log typos.Yoann Cerda2018-06-121-1/+3
|
* bump sqlite3 3.24.0 and add TestUpsert.Yoann Cerda2018-06-121-0/+50
|
* fix/118Gert-Jan Timmer2018-06-121-0/+51
| | | | | | * Added TestMultiBlobs * Removed dead code Fixes #118
* Add zero-length slice testLucas Manuel Rodriguez2018-05-311-0/+4
|
* Add nil check in bind and a testLucas Manuel Rodriguez2018-05-301-0/+15
|
* Merge pull request #549 from mjtrangoni/fix-linter-issuesmattn2018-04-171-7/+4
|\ | | | | Fix linter issues
| * fix small codespell issueMario Trangoni2018-04-171-1/+1
| |
| * fix all gosimple issuesMario Trangoni2018-04-171-6/+3
| |
* | Move RegisterAggregator implementationKenneth Shaw2017-11-051-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 mastermattn2017-08-301-14/+568
|\|
| * Improved TestNilAndEmptyBytesGreg Holt2017-08-211-1/+3
| | | | | | | | I forgot that bytes.Equals treats nil and []byte{} as equal.
| * Added TestNilAndEmptyBytesGreg Holt2017-08-211-0/+54
| |
| * fix testYasuhiro Matsumoto2017-08-021-34/+35
| |
| * ignore errors in teardownYasuhiro Matsumoto2017-08-021-2/+2
| |
| * fix tests on tipYasuhiro Matsumoto2017-08-021-14/+420
| |
| * Add connection option for recursive triggersRoss Light2017-07-091-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/brokensandalsJason Abbott2017-07-031-0/+61
| |