aboutsummaryrefslogtreecommitdiff
path: root/ext/session/test_session.c
Commit message (Collapse)AuthorAge
* Add new sessions function sqlite3changeset_apply_v3() and its streaming ↵dan2025-07-14
| | | | | equivalent. This allows changesets to be filtered on a per-change basis, not just per-table. FossilOrigin-Name: 10ebd7a119ef1985755ef143a941fbaed1b5ca1c8a71e011c8bbc70e383fd337
* Fix a problem with using streaming iterators with ↵dan2025-05-22
| | | | | sqlite3changegroup_add_change(). FossilOrigin-Name: 3dbde727146d28c316df47c7b5116be7f2476a0a0c893207c2a4ca3ab285cb5e
* Cygwin-centric fixes from Jan Nijtmans.stephan2025-03-06
| | | FossilOrigin-Name: 205979813c7300debb5f1ba270583ef2f08e069d6d01865b5910702889a5c1ed
* GCC 13 has become more quite pedantic about the signature of functions ↵drh2025-01-13
| | | | | | | | | matching the type of pointers through which the functions are called. Make adjustments to extension functions and test procedures to work around this. No changes to the core. FossilOrigin-Name: ed83b79100b4345235aec990303c4526874f0c2f8701160c4639a80633ebaf70
* Fix harmless compiler warnings.drh2024-09-06
| | | FossilOrigin-Name: 60fb8ee153ec293b6b3a4170dafa305e4c16af575aced72daef46116d8dc2bb6
* First attempt at getting the build to work with Tcl 9.0.drh2024-07-30
| | | FossilOrigin-Name: 6e5bb48a74d63fb8c30528f0005d1763cd2dbb882abf86baf1565721e6bfcf84
* Add tests for sqlite3changegroup_add_change().dan2024-05-06
| | | FossilOrigin-Name: 9d67bedc20c3a59e5488f0eaea6a6611940a9cb63f7cf5e687b061cb5d510943
* Add new sessions API sqlite3changegroup_add_change().dan2024-05-04
| | | FossilOrigin-Name: 73647db1ddfdaf40cbf18f1e47c10b4a906489f6d34d7667f0f2ff532f1eb37c
* Fix harmless compiler warnings in test code.drh2023-10-31
| | | FossilOrigin-Name: d1895dd8f5757a339f619f22b29c8a739398ded673bb9c93f1b8eb8a4b38f510
* Add the SQLITE_CHANGESETAPPLY_FKNOACTION flag to sqlite3session.h, for ↵dan2023-10-20
| | | | | passing to sqlite3changeset_apply_v2() to cause all foreign key constraints to behave as if they were declared NO ACTION. FossilOrigin-Name: fc9f82ea084159eaf3dd1757b96d17d1201b00c4e06455a7dcd8067172b25f28
* Fix harmless compiler warning in the test module for sessions.drh2023-10-09
| | | FossilOrigin-Name: 3d5ec99397c183cfb8c5d31e1967e0df8a4d6edbea92bbdf728571e3a6a36d68
* Add tests for the sqlite3changegroup_schema() API.dan2023-10-06
| | | FossilOrigin-Name: 5dab481c101b1523b1cfde92678cbc654ea26d946bf29da372d71c1f89cbaf46
* Allow the sessions module to be configured to capture changes from tables ↵dan2023-04-24
| | | | | with no explicit PRIMARY KEY. FossilOrigin-Name: 8a612f0860126c0c8473b1e65fcabb9a8821d8bf09fdf3f6018acfc99df9af71
* Add the SQLITE_CHANGESETAPPLY_IGNORENOOP flag, which may be passed to ↵dan2023-03-08
| | | | | sqlite3changeset_apply_v2() to have it ignore changes that would be no-ops if applied to the database (e.g. deleting a row that has already been deleted), instead of considering them conflicts. FossilOrigin-Name: cb023fe28560ce0f8c2fd48042553fcdb9db81eba9552be75165de0d46a2645c
* Add the "devtest" makefile target that runs both fuzztest and testrunner.drh2023-02-05
| | | FossilOrigin-Name: c81398c6215d6d1bc7a15b6be9bb1f81effd430ff0a7c86158372accfa77814c
* Fix a comment in ext/session/test_session.c.dan2022-12-13
| | | FossilOrigin-Name: bd814af14b6d67c4f8cf6482a0657f9437811a2820196ea6ccf22514291fe360
* Prevent the sessions rebaser from generating changesets containing UPDATE ↵dan2022-12-13
| | | | | records for which non-PK fields are present in the old.* but not the new.* record. Also update the changeset iterator to work around such changesets. FossilOrigin-Name: f9cd23dffba06b1982c0a5e5362dba53eba768120a2daa985b4f649d3fea1427
* Add the sqlite3session_object_config() API. Current used to enable/disable ↵dan2021-04-22
| | | | | collecting data for sqlite3session_changeset_size(). FossilOrigin-Name: 4d5fd2151e024d11289b6c4fbce2996d8d07b2b5a1c953ef895c237e79d3aa55
* Add the experimental sqlite3session_changeset_size() API.dan2021-04-21
| | | FossilOrigin-Name: b5564a6fd54875db1de884fdc0e5eeabcd6aa5595ad03a8a60843503e830a2d8
* Fix a Tcl object leak in test_session.c.dan2021-03-11
| | | FossilOrigin-Name: 07150cf15ad36c7fc681a911f66db23d610ddf110a7be7f1fcefbd8750cd135a
* Add the sqlite3session_memory_used() API to the sessions module. For ↵dan2020-12-23
| | | | | querying the amount of heap memory currently being used by a session object. FossilOrigin-Name: 823f75c2e448b649cbe9e174be21524ae3f580beedced65701ad49a2dcc5ee19
* Ensure that the table argument passed to Tcl_GetIndexFromObjStruct() in the ↵dan2020-10-26
| | | | | sessions module test code is declared "static". FossilOrigin-Name: 80eba105d6d1b49ba8ca2ad4e14ddec2de0bdc2f6686c2f8a1c1d24fc1fe846f
* Add the sqlite3session_config() interface. For configuring global parametersdan2018-10-26
| | | | | belonging to the sessions module. FossilOrigin-Name: 1e69f3ff057b0be27a9e79842de2485f8299799f309e89bfa7597dd688e0975b
* Add the sqlite3changeset_start_v2() - a new version of _start() that accepts ↵dan2018-10-20
| | | | | a flags parameter - and a streaming equivalent to the sessions module. Also add the SQLITE_CHANGESETSTART_INVERT flag, used with start_v2() to invert a changeset while iterating through it. FossilOrigin-Name: cbedcb9aaefdfe00453efbdf0eac6c15e1f53bbe8fff2e7d534a5adf23be04f5
* Add the SQLITE_CHANGESETAPPLY_INVERT flag to sessions. For inverting and ↵dan2018-10-18
| | | | | applying a changeset in a single step. FossilOrigin-Name: d4b6406e7f5ba06ac73ab9fdef57232b2459e0af12420ed946ebed6aef46f0b1
* Add a "flags" parameter to experimental API sqlite3changeset_apply_v2(). Alsodan2018-04-09
| | | | | add the SQLITE_CHANGESETAPPLY_NOSAVEPOINT flag. FossilOrigin-Name: 3d29631fa7270b18f51de8cfe1285959e42ad9a673d5d2d5c016126f5f1b31a8
* Add simple tests for the sessions module rebase API.dan2018-03-15
| | | FossilOrigin-Name: cf0d1abb44cf170d747e9c11f49ec03a29f00ab4821c613ca1e05b883a568211
* Add largely untested APIs for rebasing changesets.dan2018-03-14
| | | FossilOrigin-Name: 39915b683b3f8d3bf872af1dede96bf2818b488a8638a1d248395023fc4bd0ef
* Add sqlite3_changeset_apply_v2() and apply_v2_strm() to the sessions module.dan2018-03-13
| | | FossilOrigin-Name: 445bfe977d9f3a891e08ef33237862ed047fe83e134ef3ed8b47ee0f5abd8cd6
* Use some of the example code from the sessions documenatation in the ↵dan2016-08-29
| | | | | sessions test cases. FossilOrigin-Name: 6602974d17536bcb904a794bddedffd58926794b
* Add macro necessary for building several extensions when the __stdcall ↵mistachkin2016-07-29
| | | | | calling convention is not in use. FossilOrigin-Name: bc8c9b55ddf5227dc6b2116486f4a19bf54fce2b
* Missed a couple Tcl command deletion callbacks.mistachkin2016-07-28
| | | FossilOrigin-Name: fc5c187602acceedf7152b6927616d134f779a8f
* Use the SQLITE_TCLAPI macro in several extensions that were missed in the ↵mistachkin2016-07-28
| | | | | previous check-in. FossilOrigin-Name: df2543652b835353c03956dfbd3e35e5b191372e
* Allow the 'testfixture.exe' target to be compiled with the __stdcall calling ↵mistachkin2016-07-28
| | | | | convention. FossilOrigin-Name: e8be3dfeabaa31b3490793cf8230faae1204be15
* Even more compiler warning fixes.mistachkin2016-04-12
| | | FossilOrigin-Name: 7faec9ea335c53953338886398b85aef87348a1c
* Modify the sqlite3session_diff() API so that tables with no PRIMARY KEYs are ↵dan2015-04-23
| | | | | ignored. This matches the other sessions APIs. Also change sqlite3session_diff() so that it returns SQLITE_SCHEMA, instead of SQLITE_ERROR, if the tables being compared do not have compatible schemas. FossilOrigin-Name: aada0ad08e3baa10d14d1f3393183110289e068e
* Fix the error message returned by sqlite3session_diff() for tables with no ↵dan2015-04-23
| | | | | PRIMARY KEY. FossilOrigin-Name: 4d34a3d40da210bebb2a2e6dff094f9a39c92798
* Add experimental API sqlite3session_diff().dan2015-04-08
| | | FossilOrigin-Name: c4340b2ea2115ad97dcac036f9034e132ab789e5
* Change the names of the stream interface APIs to be of the formdrh2014-09-27
| | | | | | "_strm" instead of "_str". In other words, added an "m" to the end, to try to make it clear that we are talking about a "stream" and not a "string. FossilOrigin-Name: 1f44bfdc237ee6304f4aa56e5c5d1c0d74fcc944
* Fix a segfault in the streaming API functions triggered by a very long table ↵dan2014-09-27
| | | | | name. FossilOrigin-Name: d2642543eed54da1ac0f757d43dd4d72482eb752
* Add streaming version of sqlite3changeset_concat().dan2014-09-25
| | | FossilOrigin-Name: 88eb6656bdb047a104837a2e15e7fe18c0a7a159
* Add streaming version of sqlite3changeset_invert() to sessions module.dan2014-09-25
| | | FossilOrigin-Name: 8ded6a46794c7bff1c8b790c662ba7e92f576380
* Add streaming version of sqlite3changeset_apply(). Tests and fixes for the ↵dan2014-09-24
| | | | | same and sqlite3changeset_start_str(). FossilOrigin-Name: b917fc146876f764442de08d5ec36e5b4cf5ab52
* Begin adding 'streaming' APIs to sessions module. This is a work in progress.dan2014-09-23
| | | FossilOrigin-Name: 3c7d3d950bbf5f5ed3696ebc61c77ca48bafe2b5
* Add miscellaneous test cases to improve coverage of sessions module.dan2014-08-18
| | | FossilOrigin-Name: 0fac6cfffe628ea02c78ebad065307309ec9eaa1
* Begin adding the sqlite3session_patchset() API to the sessions extension. ↵dan2014-08-15
| | | | | This is an interim commit. FossilOrigin-Name: 60a4565a8c44762a002cd02979317df5ca47e899
* Fix a harmless compiler warning in the sessions test harness.drh2014-03-06
| | | FossilOrigin-Name: d389e20ab07a76d0c4be3801265977fa977a4394
* Enhance the test harness for the sessions interface so that it does notdrh2014-03-06
| | | | | | use SQLite operations that can encounter an OOM error in places where it is unable to report an OOM error back up to the test script. FossilOrigin-Name: bc0e661033b78f27866932244e6204985ae39000
* Add the sqlite3session_table_filter API to the sessions extension.dan2013-08-23
| | | FossilOrigin-Name: b7e4dd889d37c8f57c2d3c7900e802f644aac3ea
* Experimental change to the handling of foreign key constraint violations ↵dan2013-07-03
| | | | | when applying a changeset: all foreign keys, immediate and deferred, are deferred until the end of the transaction (or sub-transaction) opened by the sqlite3changeset_apply(). A single call to the conflict-handler (if any) is made if any FK constraint violations are still present in the database at this point. The conflict-handler may choose to rollback the changeset, or to apply it, constraint violations and all. FossilOrigin-Name: 1d44e5d3c2b1dc958442f9114a960b256e002ed3