Skip to content

Add SQLite backend - #864

Open
phdoerfler wants to merge 2 commits into
typelevel:mainfrom
phdoerfler:topic/sqlite-backend
Open

Add SQLite backend#864
phdoerfler wants to merge 2 commits into
typelevel:mainfrom
phdoerfler:topic/sqlite-backend

Conversation

@phdoerfler

@phdoerfler phdoerfler commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Adds SQLite as backend. SQLite does not support lateral joins, so sql-core had to be modified accordingly; that part is split out into #917, which this branch sits on top of. Merge #917 first, and this PR's diff shrinks to the new module and its test data. This work was partially done by Claude but it was kept on a tight leash and critically reviewed both from Claude itself and me. Care has been taken not to deviate too much from the other backend implementations despite needing to work around the lateral join limitation.
This also opens the door for a H2 implementation which suffers from the same limitation as SQLite.

I also increased the timeout for munit because on my machine it did sporadically run into the default 30s timeout and that became old quickly.

null-ordering, nullable-parent, qualified-names and union-order have no sqlite.sql, so SQLite skips them.

@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch 5 times, most recently from 021ba0d to bd80fa9 Compare July 12, 2026 19:49
@phdoerfler
phdoerfler marked this pull request as ready for review July 12, 2026 19:58
@phdoerfler phdoerfler mentioned this pull request Jul 13, 2026
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch from 5236471 to 8ebaad9 Compare July 14, 2026 12:30
This was referenced Jul 14, 2026
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch from 8ebaad9 to 74fb76a Compare July 17, 2026 13:42
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch 4 times, most recently from 9c6b1b8 to b76b111 Compare August 20, 2026 10:44
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch from b76b111 to 6a7d838 Compare August 28, 2026 11:19
SQL Server emits OFFSET 0 ROWS after a root ORDER BY now, where it only did so in subqueries before.
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch from 6a7d838 to 0881c6f Compare August 28, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant