Commit Graph

120 Commits

Author SHA1 Message Date
Sebastian Jeltsch
91d9db6223 Wire up request type in logging. 2024-12-07 20:49:17 +01:00
Sebastian Jeltsch
765401af35 Trigger sqlite log writes on a specific span. 2024-12-07 13:38:44 +01:00
Sebastian Jeltsch
b8be749244 Fix client-ip logging and add a test. 2024-12-06 22:44:42 +01:00
Sebastian Jeltsch
26207b380b Update out-of-sync lock file. 2024-12-06 21:35:54 +01:00
Sebastian Jeltsch
94ac2af4a6 Update javascript dependencies. Note that starlight does not yet support astrojs v5. 2024-12-06 20:29:38 +01:00
Sebastian Jeltsch
99e619cb96 Fix SQL injection vulnerability in tutorial app. Thanks jddj and chrismorgan for pointing it out. 2024-12-06 13:26:24 +01:00
vladislav doster
86aad1b583 docs: grammar & punctuation fixes (#8)
* docs(faq): add missing preposition

* docs(philosophy): grammar & punctuation fixes

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>

---------

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-12-06 13:01:07 +01:00
Sebastian Jeltsch
05f4dea774 Update minor versions of JS dependencies. v0.3.0 2024-12-05 23:05:32 +01:00
Sebastian Jeltsch
8b2f535344 Update Rust dependencies. 2024-12-05 22:39:40 +01:00
Sebastian Jeltsch
fb0fe373f5 Remove query apis and improve docs in preparation for v3.0.
More context in the CHANGELOG.
2024-12-05 22:17:47 +01:00
Sebastian Jeltsch
996bc27788 Update performance measurements and benchmark article post SQLite execution model changes. 2024-12-05 22:05:00 +01:00
Sebastian Jeltsch
38e0580fdc Further reduce logging overhead: use dedicated writer task and most importantly box the logs to reduce the memory growth of the channels. 2024-12-05 15:47:50 +01:00
Sebastian Jeltsch
93a9ebc089 Implement batch log inserts via stealing. 2024-12-05 12:09:06 +01:00
Sebastian Jeltsch
03d918cd94 Remove unused code. 2024-12-05 10:10:43 +01:00
Sebastian Jeltsch
0f1b2ef7d5 Do not initialize v8 when number of workers is zero. Plus some minor cleanups. 2024-12-05 09:41:44 +01:00
Sebastian Jeltsch
3dcae4443e Minor: simplify logging some more and log js-runtime thread errors. 2024-12-05 09:16:01 +01:00
Sebastian Jeltsch
7730faf883 Minor: streamline logs layer. 2024-12-05 00:22:13 +01:00
Sebastian Jeltsch
1b5c957415 Move SQLite orchestration into trailbase-sqlite and fix js-runtime completion bug with true async (previously libsql was sync under the hood). 2024-12-04 16:57:15 +01:00
Sebastian Jeltsch
3b9a122e06 Install sqlite-vec to replace libsql's builtin vector search. 2024-12-04 13:14:14 +01:00
Sebastian Jeltsch
6cbea390fb Herculean migration from libsql's rust bindings to plain rusqlite+SQLite.
There's a couple of reasons:

* As for the rust bindings: they're sub-par to rusqlite, though
  rusqlite is amazing. Even libsql-server uses rusqlite over their own
  bindings. The bindings are missing features such as update hooks
  and the hard-coded execution model suffers from lock congestion.
* We've fixed bugs (e.g. trivial null ptr accesses went unnoticed),
  raised issues, and tried to add missing functionality such as update
  hooks. It's unclear if the rust-bindings are a priority or covered by
  the principles laid out in the libsql manifesto. From the outside it
  looks like focus has shifted to https://github.com/penberg/limbo.
* As for the C-libsql fork for SQLite itself, it's getting more and
  more outdated (2024-01-30 (3.45.1)) and it's unclear when and if the
  ideas from the manifesto will manifest.

Looking forward this opens the door for TrailBase to:

* Bundle more recent versions of SQLite
* Implement more performant, better scaling execution models.
* Implement realtime APIs for subscribing to data changes.
2024-12-04 13:03:06 +01:00
Sebastian Jeltsch
9942669f86 Prepare release v0.2.6. v0.2.6 2024-11-28 14:12:34 +01:00
Sebastian Jeltsch
52c5178f66 Documention: some more polish on the benchmark presentation. 2024-11-28 14:05:12 +01:00
Sebastian Jeltsch
4c96da2d84 Fix input validation in admin dash for nullable columns in the insert/alter-row form. 2024-11-28 12:29:52 +01:00
Sebastian Jeltsch
0b097950c6 More strictly type JSON APIs. 2024-11-28 12:17:17 +01:00
Sebastian Jeltsch
9c2e753f23 Factor out row conversion utility to avoid test depending on ui components, which allows us to update vite. 2024-11-28 10:47:14 +01:00
Sebastian Jeltsch
15b4ca9424 Update Rust dependencies. 2024-11-28 00:43:19 +01:00
Sebastian Jeltsch
697b2459ef Update JS and Dart dependencies. 2024-11-28 00:39:36 +01:00
Sebastian Jeltsch
70deee0c98 Update documentation after publishing python client to pypi. 2024-11-27 23:33:18 +01:00
Sebastian Jeltsch
c97b3fb037 Minor: appease prettier after merging typo fixes. My bad. 2024-11-27 23:12:38 +01:00
Marcel
dec75bfbbd Update SettingsPage.tsx - fixed a small typo (#6)
* Update SettingsPage.tsx - fixed a small typo

Found & fixed a small typo found while checking out the live demo

* Update SettingsPage.tsx
2024-11-27 22:50:24 +01:00
Sebastian Jeltsch
07f0500f9f Add fist version of a TrailBase Python client including tests and CI setup 2024-11-27 13:29:56 +01:00
Sebastian Jeltsch
39acdf90c4 Prepare release v0.2.5. v0.2.5 2024-11-26 13:54:04 +01:00
Sebastian Jeltsch
35b8a217b6 Do not filter "hidden" tables in "Create Table Form" FK drop down. Fixes #4. 2024-11-26 13:51:03 +01:00
Sebastian Jeltsch
420d64358b Fix serialization of FK column constraint and deserialization of CreateIndex requests. Fixes #5. 2024-11-26 13:50:58 +01:00
Sebastian Jeltsch
6580c1554d Prepare v0.2.4 release. v0.2.4 2024-11-25 14:38:08 +01:00
Sebastian Jeltsch
e986e73a55 Wire up S3 storage configuration. 2024-11-25 11:56:36 +01:00
Sebastian Jeltsch
31781801ff Merge pull request #2 from JarWarren/main
Doc tweaks: fix typos.
2024-11-25 09:16:00 +01:00
JarWarren
0638dd9d9d typos 2024-11-24 22:02:21 -07:00
Sebastian Jeltsch
0643c85448 Stop brew installing pkg-config as part of the mac release workflow. v0.2.3 2024-11-24 10:45:38 +01:00
Sebastian Jeltsch
bf439d6ab9 Prepare v0.2.3 release. 2024-11-23 23:24:07 +01:00
Sebastian Jeltsch
bc09fde7ab Implemented a custom JS event loop and use call_function_immediate with custom completers to allow interleaving multiple requests into the same isolate.
This avoids idle while JS is doing I/O and avoid corner-case of livelock when running out of free workers while TB calls itself.
2024-11-23 23:13:34 +01:00
Sebastian Jeltsch
462ca2aacf More minor tweaks to coffee tutorial. 2024-11-23 11:39:38 +01:00
Sebastian Jeltsch
d4a3b5b8e0 Update rust dependencies. 2024-11-22 22:54:50 +01:00
Sebastian Jeltsch
a466bd53a3 Reference more code artifacts directly reducing duplication in the coffee tutorial. 2024-11-22 22:13:03 +01:00
Sebastian Jeltsch
1587a3270c Minor: a few more coffee tutorial tweaks. 2024-11-22 17:00:15 +01:00
Sebastian Jeltsch
a7af9ee3ce Further refine the coffee tutorial. 2024-11-22 16:24:55 +01:00
Sebastian Jeltsch
97c85e2d31 Improve coffee search documentation. 2024-11-22 14:35:24 +01:00
Sebastian Jeltsch
338c4c77bb Add support for periodic tasks to JS runtime. 2024-11-21 13:15:02 +01:00
Sebastian Jeltsch
1542b96d35 Add a "coffee vector search" tutorial to the docs. 2024-11-21 00:27:49 +01:00
Sebastian Jeltsch
bd59c47d68 Simplify docker setup for examples. 2024-11-20 17:04:36 +01:00