* set error to pParse and preserve internal invariant about possible error inside the condition
* fix potential memory leak
* slightly adjust code
* small fix
* avoid pKey leak and simplify code
* build bundles
* propagate schema name (iDb) for vector index to support working not only with main DB
* add basic test
* sometimes zDbSName can be null and this is fine
* avoid test from writing files to disk
* build bundles
* integrate diskann to the sqlite code
* cleanup code a bit and add more comments
* make parsing code resilient to spaces inside FLOAT typename
* fixup
* fix bugs related to deletes in diskann
* small cleanup
* rename macro
* slightly cleanup vtab code
* slightly improve vectorIndex code
* make code less hacky
* add strange test
* build bundles
* return unit test for diskann pieces
* add one more test
* don't run search on first insertion
* review fixes
* disable index creation in non-normal parse modes
* build bundles
* diskann vector binary format
* remove changes from another branch
* build bundles
* fix bundle
* add const to the signatures
* build bundles
* slightly change interface for BlobSpot
* build bundles
* add isInitialized flag to the BlobSpot
* fix comment
* fix method name in the header file
* review fixes
* build bundles
* add basic functions for working with f32/f64 vectors
* add header file
* fix comment style
* add generic code for working with vectors
* register vector functions
* fix edge cases in vector extract impl
* add static flag for vector (will be used later)
* add basic TCL-based tests
* guard vector functions with SQLITE_OMIT_VECTOR
* adjust build scripts
* delete libsql_vector_idx from this branch
* add one more test
* update bundles
* fix asserts
* fix constants (#define-s are universal but const int doesn't recognized by all compilers)
* update bundles
* review fixes
* build bundles
* add comment about linking math library
* add alter column test
* apply alter column only to the table and ignore indices/triggers/views etc
* fix tests
* update bundle
* add test in rust_suite
* make sure pager is valid
We have had a segfault issue recently because the pager passed down
to the c code was null. That happened because libsql-server had
encryption disabled, while libsql had encryption enabled.
To prevent issues like that in the future, the C code should be checking
if the arguments it needs are valid.
Because this function returned a pointer, we now change it so that it
can return an integer, with the pointer as a return argument.
* update generated code
We have generated code in-tree. We should either remove it, or keep it
in sync. For now, just keeping it in sync.
This patch is just the result of running tests, and seeing what changes.
* libsql: Make encryption cipher configurable
Introduce a `EncryptionConfig` struct to configure both encrytion cipher
and key. Needed to support multiple ciphers.
Fixes#951
* libsql-ffi: Switch to SQLCipher as the default cipher
Fixes#893