0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-27 17:52:08 +00:00
Commit Graph

18 Commits

Author SHA1 Message Date
0d8ca0c715 rename BFLOAT16 to FLOATB16 everywhere 2024-08-22 12:59:26 +04:00
74346590f3 implement and integrate bfloat16 2024-08-22 12:32:49 +04:00
f8128d27e6 float16 implementation 2024-08-22 00:48:30 +04:00
8a2a019b1b add implementation of float8 vector type (int8 quantization) 2024-08-13 16:22:40 +04:00
7a0fa8c19f rename vector1bit.c -> vectorfloat1bit.c 2024-08-13 11:33:58 +04:00
39e30ead5e add 1bit vector type 2024-08-08 14:56:42 +04:00
9ed72eb5ae Merge upstream SQLite 3.45.1
This merges the version-3.45.1 tag from upstream SQLite git repository
to libSQL with the following conflicts resolved:

Conflicts:
      README.md
      ext/jni/src/org/sqlite/jni/capi/ConfigSqllogCallback.java
      libsql-sqlite3/configure
      libsql-sqlite3/doc/jsonb.md
      libsql-sqlite3/ext/fts5/test/fts5faultH.test
      libsql-sqlite3/ext/fts5/test/fts5origintext.test
      libsql-sqlite3/ext/fts5/test/fts5origintext2.test
      libsql-sqlite3/ext/fts5/test/fts5origintext3.test
      libsql-sqlite3/ext/fts5/test/fts5origintext4.test
      libsql-sqlite3/ext/fts5/test/fts5origintext5.test
      libsql-sqlite3/ext/fts5/test/fts5secure8.test
      libsql-sqlite3/ext/fts5/test/fts5tokenizer2.test
      libsql-sqlite3/ext/fts5/test/fts5trigram2.test
      libsql-sqlite3/ext/jni/src/org/sqlite/jni/annotation/Experimental.java
      libsql-sqlite3/ext/jni/src/org/sqlite/jni/capi/ConfigSqlLogCallback.java
      libsql-sqlite3/ext/jni/src/org/sqlite/jni/capi/ConfigSqllogCallback.java
      libsql-sqlite3/ext/jni/src/org/sqlite/jni/wrapper1/WindowFunction.java
      libsql-sqlite3/ext/wasm/GNUmakefile
      libsql-sqlite3/ext/wasm/batch-runner-sahpool.html
      libsql-sqlite3/ext/wasm/batch-runner-sahpool.js
      libsql-sqlite3/src/pager.c
      libsql-sqlite3/src/shell.c.in
      libsql-sqlite3/src/sqliteInt.h
      libsql-sqlite3/src/wal.c
      libsql-sqlite3/test/fts3integrity.test
      libsql-sqlite3/test/json/jsonb-q1.txt
      libsql-sqlite3/test/json106.test
      libsql-sqlite3/test/json107.test
      libsql-sqlite3/test/jsonb01.test
      libsql-sqlite3/test/mmapcorrupt.test
      libsql-sqlite3/test/releasetest_data.tcl
      libsql-sqlite3/test/shell9.test
      libsql-sqlite3/test/wapp.tcl
      libsql-sqlite3/test/wapptest.tcl
2024-07-25 13:45:06 +03:00
37fc1a1d88 integrate diskann to the sqlite code ()
* 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
2024-07-19 16:57:11 +00:00
e2d12b0ac1 Vector aux functions ()
* implement auxilary functions for vector index

* fix some render method names

* build bundles

* review fixes

* build bundles
2024-07-17 08:11:38 +00:00
d08d663fa3 diskann vector binary format ()
* 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
2024-07-16 09:25:55 +00:00
be1fca578f feat(vector): add basic functions (vector/vector_extract etc) ()
* 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
2024-07-08 08:27:33 +00:00
d89f0b4d8c wasi: add virtual WAL stub
On top of a special VFS, `make wasi` now also compiles-in
a specialized virtual WAL methods module. It doesn't do anything
right now (just falls back to the regular implementation),
but can be used to call back to the host, inject hooks, etc.
2023-11-29 09:27:24 +01:00
1445e42483 wasi: add poor man's microbenchmark 2023-11-28 09:00:49 +01:00
b1bbbf05c7 wasi: add vfs.c to the build path 2023-11-26 14:17:16 +01:00
cc9bcb1e15 wasm: add make wasi command
It is not directly tested or usable yet, and depends on having
wasi-libc library available at /usr/share/wasi-sysroot.

Still, it compiled, so it's a nice start.

`make wasi` produces `libsql.wasm` module.
Future work includes using this module to run a WebAssembly app
in a runtime that supports WASI, using `libsql.wasm` as the database
implementation.

The patch is based on splitting SQLITE_OMIT_WAL into SQLITE_OMIT_SHARED_MEM,
so that we can still compile WAL mode, just without shared memory,
so still usable with exclusive mode or via libSQL's virtual WAL.
2023-11-23 19:55:56 +01:00
0dfca64aa3 Merge tag 'version-3.44.0' into HEAD 2023-11-15 14:46:34 +01:00
e7ca93a902 fix ci 2023-10-16 15:25:18 +02:00
bf899d0b9a restructure repository 2023-10-16 13:58:16 +02:00