0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-18 23:26:58 +00:00

Commit Graph

  • eb78d56ec5 Add assert()s to FTS5 to fix static analyzer warnings. drh 2023-12-14 16:34:47 +00:00
  • 4a5c96ace3 Fix harmless compiler warnings in JSON and FTS5. drh 2023-12-14 15:38:57 +00:00
  • e6289d6dd0 Improve the error message returned by an fts5 'rebuild' command on an external content table if there is a problem with the content table or view. dan 2023-12-14 15:31:35 +00:00
  • 8a861a81e8 Enhance aggregate order-by so that it transmits subtype information through the sorter. Fix for the deficiency reported by [forum:/forumpost/87347ad2fb5a8f76|forum post 87347ad2fb5a8f76]. drh 2023-12-14 15:11:39 +00:00
  • 34175537ba Format Jonah Lund 2023-12-14 15:51:01 +01:00
  • 07117f8118 Pass subtype information through the aggregate ORDER BY sorter for aggregate functions that use subtype information. drh 2023-12-14 13:58:50 +00:00
  • 9e488a5a40 In CLI, fix .read inability to open 2GB+ files on WIN32. larrybr 2023-12-13 20:37:20 +00:00
  • 47ec93eb5c Merge pull request #787 from tursodatabase/lucio/bump-prom Piotr Sarna 2023-12-13 20:13:40 +00:00
  • 8aad8e53db server: fix metrics overflow panic Lucio Franco 2023-12-13 14:55:01 -05:00
  • 0c0f4ab1be switch to associated type for hrana stream lucio/libsql-cursor Lucio Franco 2023-12-13 13:51:35 -05:00
  • ab3ad95644 Added most primitive types Jonah Lund 2023-12-13 18:38:09 +01:00
  • 3e4195c60d Avoid invoking sqlite3ExprColUsage() on an unresolve column reference. dbsqlfuzz fc34aa62df4de103705d11b807074687ffafbda5. drh 2023-12-13 16:45:18 +00:00
  • 9e2e780e69 Merge pull request #786 from tursodatabase/lucio/add-hrana-stream-expired-test Lucio Franco 2023-12-13 16:42:17 +00:00
  • 2801221bac chore: remove extra println Lucio Franco 2023-12-13 11:33:27 -05:00
  • a13cc66e0c chore: update gitignore to ignore test files Lucio Franco 2023-12-13 11:23:02 -05:00
  • f41979578c server: add stream rexpired hrana test Lucio Franco 2023-12-13 11:22:24 -05:00
  • f7c78a2408 Bug fix in the JSONB validator. dbsqlfuzz ac6fa521a08609a642198e7decf64180e750b3c4 drh 2023-12-13 15:27:03 +00:00
  • 415f8fe607 Merge pull request #785 from tursodatabase/libsql-return-replication-index ad hoc 2023-12-13 14:44:57 +00:00
  • 001d1e795c Improvements to UTF8 handling, and especially the handling of invalid UTF8, in the JSON routines. drh 2023-12-13 14:31:15 +00:00
  • 24c41fbc78 add Database::replication_index method ad hoc 2023-12-13 15:26:05 +01:00
  • 1fbc2b1f35 Merge pull request #783 from tursodatabase/fix-local-client-inject ad hoc 2023-12-13 13:08:19 +00:00
  • 0e025264b2 fix missing commit frame on local_client inject from snapshot ad hoc 2023-12-13 11:05:27 +01:00
  • 6247b4990b Merge pull request #782 from tursodatabase/lucio/fix-remote Lucio Franco 2023-12-12 21:47:39 +00:00
  • 8d59b728f5 fix(libsql): fix remote feature to not build sys Lucio Franco 2023-12-12 16:04:42 -05:00
  • 2167bed5e8 Merge pull request #776 from tursodatabase/prevent-checkpoint-on-close ad hoc 2023-12-12 19:20:08 +00:00
  • 891f1dc054 Fix the JSON object label comparison object so that it works correctly even if the label ends with escaped whitespace. drh 2023-12-12 18:38:53 +00:00
  • 5e2828418c Merge pull request #616 from tursodatabase/lucio/auth-namespace2 Lucio Franco 2023-12-12 18:38:52 +00:00
  • 9710fa119e Worker1 Promiser API: when multiple db connections are active then use the requested connection instead of always the first-opened connection. Bug reported in [forum:894c330e7f23b177|forum post 894c330e7f23b177]. stephan 2023-12-12 17:52:27 +00:00
  • df25a8fd4b The json_valid(*,8) function does a much better check of the validity of the JSONB input. The json_error_position() function returns an approximate byte offset to the point of the first detected error in the JSONB. drh 2023-12-12 17:31:17 +00:00
  • 58ff6f0b4e Merge pull request #777 from tursodatabase/lucio/debug-additions Lucio Franco 2023-12-12 17:18:22 +00:00
  • 78e636bba6 Add NEVER to two unreachable branches in JSON. drh 2023-12-12 17:13:10 +00:00
  • 8b62bdbc5e Merge branch 'main' into lucio/debug-additions Lucio Franco 2023-12-12 11:59:21 -05:00
  • b1da52c722 server: Add initial MetaStore Lucio Franco 2023-12-11 15:35:35 -05:00
  • 7a3723663b tweaks to get compiling again after libsql updates Matt 2023-12-12 09:46:49 -05:00
  • 28bb1bc621 update cr-sqlite to v0.16.2 Matt 2023-12-12 09:46:49 -05:00
  • 87399a56db Improvements to JSONB validation - catch more cases where the input does not conform to spec. drh 2023-12-12 14:33:52 +00:00
  • b51a36b911 Merge pull request #781 from tursodatabase/clo Piotr Sarna 2023-12-12 13:41:13 +00:00
  • 050cf0eece .gitignore: add Cargo.lock Piotr Sarna 2023-12-12 14:20:00 +01:00
  • 25b33a3cc5 Merge pull request #766 from tursodatabase/765-ns-bottomless Piotr Sarna 2023-12-12 12:52:43 +00:00
  • 30638014d8 attach GetAutocommitReq to Hrana connection execution requests Bartosz Sypytkowski 2023-12-12 21:45:27 +09:00
  • 5769632498 make libsql Conn::is_autocommit synchronous Bartosz Sypytkowski 2023-12-05 21:27:58 +09:00
  • 240d2516cb Merge pull request #778 from tursodatabase/load-cmd Piotr Sarna 2023-12-12 10:24:12 +00:00
  • 44d6120a0a Add support for .load command Avinash Sajjanshetty 2023-12-12 15:12:31 +05:30
  • cc1a39fd24 Validity checking of text nodes in JSONB. drh 2023-12-12 02:31:12 +00:00
  • 921eb8aabc implemented new HttpSend trait over cloudflare http response Bartosz Sypytkowski 2023-12-05 07:21:13 +09:00
  • 9a4b44fe8c using cursors by default without API changes: cursor->batch_result conversion Bartosz Sypytkowski 2023-12-04 18:22:19 +09:00
  • 401fdadc44 move Hrana statement batching to new Batch constructor method Bartosz Sypytkowski 2023-11-28 20:08:24 +09:00
  • 92fdfd639a initial working API for cursor Bartosz Sypytkowski 2023-11-27 10:50:27 +09:00
  • 19403e576b removed string copying for http send Bartosz Sypytkowski 2023-11-22 17:13:19 +09:00
  • 9f3af9a1fc trying to introduce streamed content to HttpSend Bartosz Sypytkowski 2023-11-22 08:03:36 +09:00
  • 3aef3b5eb1 initial changes to make hrana cursor API Bartosz Sypytkowski 2023-11-21 17:10:21 +09:00
  • ad6bc61804 The json_error_position() function now reports an approximate byte offset to the problem in a JSONB if there is a problem. drh 2023-12-11 21:00:55 +00:00
  • 5a890b4ed2 json_error_position() now uses jsonValidityCheck() to find the approximate position of an error in a JSONB blob. drh 2023-12-11 20:44:21 +00:00
  • 30f998cac9 sqld: small debug additions and ignore clean up Lucio Franco 2023-12-11 15:39:49 -05:00
  • 001caa714f json_valid(*,8) allows minus-signs on hexadecimal literals. drh 2023-12-11 20:19:10 +00:00
  • 7445659559 Activate JSON_SELFCHECK within fuzzcheck. drh 2023-12-11 19:21:06 +00:00
  • ba5505657f Rename the new test-control to SQLITE_TESTCTRL_JSON_SELFCHECK. Make it so that the current value of the setting can be interrogated. drh 2023-12-11 19:00:44 +00:00
  • 7d2eaae83e Add SQLITE_TESTCTRL_VALIDATE_JSONB, which if enabled under SQLITE_DEBUG causes cross-checking of generate JSONB. drh 2023-12-11 17:03:12 +00:00
  • 3286992d35 prevent checkpoint on WAL close for InhibitCheckpointWal ad hoc 2023-12-11 16:00:52 +01:00
  • ce46e0eb11 Work toward enhanced functionality for json_valid() with deep checking of the JSONB (second argument has bit 0x08). drh 2023-12-11 14:01:38 +00:00
  • b89e64d822 Fix a potential use of uninitialized value in json_valid() with 2nd argument of 8. drh 2023-12-11 02:39:11 +00:00
  • 5773ed806c Extract hrana version from the path to support both versions Avinash Sajjanshetty 2023-12-10 19:15:55 +05:30
  • 01a8630ec6 Add path based routing Avinash Sajjanshetty 2023-12-10 17:49:07 +05:30
  • 2e3e198649 Add visit_some for deserializer Jonah Lund 2023-12-10 09:33:31 +01:00
  • 0d0d761241 Boolean deserialization Jonah Lund 2023-12-09 06:52:53 +01:00
  • f57bf3c67f Merge pull request #769 from tursodatabase/fix-build ad hoc 2023-12-08 17:14:33 +00:00
  • 425b370fb1 fix ffi build.rs ad hoc 2023-12-08 17:57:34 +01:00
  • bfa0de86e6 Fix a harmless UBSAN warning. drh 2023-12-08 16:56:50 +00:00
  • 2a27be2107 Fix a potential problem RCStr access on a JsonString object that is not really and RCStr. Fuzzer/UBSAN find. drh 2023-12-08 14:54:22 +00:00
  • 9d2446dc13 Fix a harmless compiler warning about "confusing indentation". drh 2023-12-08 12:58:41 +00:00
  • 05980f5931 Avoid dropping an error code in new fts5 tokendata=1 code. dan 2023-12-08 12:04:32 +00:00
  • 0b427eb796 Ensure an fts5vocab table never uses a special tokendata=1 merge cursor. dan 2023-12-07 21:09:33 +00:00
  • 7c12666fe9 Avoid an assert() failure when querying an fts5vocab table that accesses a tokendata=1 fts5 table with corrupt %_data records. dan 2023-12-07 20:46:40 +00:00
  • 1ddcf7dd95 Fix a null-pointer dereference in fts5 tokendata=1 code. dan 2023-12-07 19:08:25 +00:00
  • 5f2f8d0028 Fix a problem with handling OOM and other errors in fts5 when querying tokendata=1 tables. dan 2023-12-07 18:41:49 +00:00
  • 2f3ccb8886 Different fix for the fts5 COMMIT-following-OOM problem first fixed by [fba3129d]. This one does not cause problems if an fts5 table is renamed and then dropped within the same transaction. dan 2023-12-07 14:41:58 +00:00
  • db0f6e1531 connection: start working on a Wasm guest connection implementation wasmguest Piotr Sarna 2023-12-07 14:21:18 +01:00
  • 5a238ffcae Rework the jsonEachPathLength() routine in json_tree() so that it is less susceptible to problems due to goofy object labels. drh 2023-12-07 14:09:25 +00:00
  • f86a07b0c4 Add ALWAYS() on branches added in [ec0ae4030968c782] that are always true. drh 2023-12-07 13:14:34 +00:00
  • 5b6b703461 Improved detection of corrupt JSONB in the jsonReturnFromBlob() function. drh 2023-12-07 12:55:39 +00:00
  • 35e351471c Trim env keys and set to None if empty Avinash Sajjanshetty 2023-12-07 15:37:45 +05:30
  • e8d62be35c Ensure DB ID is set if namespaces are enabled Avinash Sajjanshetty 2023-12-07 00:31:14 +05:30
  • 00f3ac5544 Fix compiler warning about shadowed variable in fts5_index.c. dan 2023-12-06 18:34:59 +00:00
  • 82fc1b63f6 Work around LLVM's newfound hatred of function pointer casts. [forum:/forumpost/1a7d257346636292|Forum post 1a7d257346636292]. drh 2023-12-06 18:25:41 +00:00
  • 83ac79282a Update documentation comments in fts5.h. dan 2023-12-06 18:10:50 +00:00
  • a9c8469d03 Do correct comparisons between object labels in JSON even when the two labels contain different JSON escapes. drh 2023-12-06 17:50:16 +00:00
  • b597fea894 Correctly handle 8-byte sizes in the JSONB format. [forum:/forumpost/283daf08e91183fc|Forum post 283daf08e91183fc]. drh 2023-12-06 17:39:31 +00:00
  • c5765fe377 Merge pull request #763 from tursodatabase/inhibit-checkpoint-wal ad hoc 2023-12-06 17:24:33 +00:00
  • f278ce83b7 Merge pull request #760 from tursodatabase/butemuck-to-zerocopy ad hoc 2023-12-06 17:16:58 +00:00
  • 10e29fae43 Merge pull request #762 from wyhaya/fix_de ad hoc 2023-12-06 17:16:42 +00:00
  • 1323cf5d1e introduce InhibitCheckpointWal ad hoc 2023-12-06 13:22:52 +01:00
  • 9df01b5ccf Fix the routine that determines the json_tree.path value for the first row so that it correctly takes into account escape sequences in the path argument. drh 2023-12-06 16:57:18 +00:00
  • 3207199c98 In CLI, move -interactive flag handling back to arg-loop pass 2. larrybr 2023-12-06 16:27:29 +00:00
  • 8dfbf4addc Test cases for object label matching with escape sequences. drh 2023-12-06 15:50:13 +00:00
  • 6a8581d828 The rule for the RHS of the ->> and -> operators when the RHS does not begin with $ is that it must be (1) all digits, or (2) all alphanumerics, or (3) contained within [..] or else it will become a quoted label. drh 2023-12-06 15:35:38 +00:00
  • 91ec00c25a Increased rigor in comparisons between object labels in JSON. drh 2023-12-06 14:50:48 +00:00
  • e751596ee8 Add the tokendata=1 option and related APIs to fts5. dan 2023-12-06 14:36:34 +00:00
  • 39b08db132 Merge trunk changes into this branch. dan 2023-12-06 14:30:34 +00:00
  • a3cdb9b9ec Add deserialize value tests wyhaya 2023-12-06 20:31:22 +08:00
  • 1f2d7c4312 README.md typo fix reported in the forum and update all links from http: to https:. stephan 2023-12-06 12:30:28 +00:00