Skip to content

Add Turso (SQLite-compatible) database support#1813

Merged
velo merged 2 commits into
masterfrom
add-turso-support
Jun 21, 2026
Merged

Add Turso (SQLite-compatible) database support#1813
velo merged 2 commits into
masterfrom
add-turso-support

Conversation

@velo

@velo velo commented Jun 21, 2026

Copy link
Copy Markdown
Member

Summary

Adds Turso (an in-process, SQLite-compatible database) as a Querydsl SQL backend, mirroring the existing SQLite support.

Main source (querydsl-sql)

  • TursoTemplates — SQL dialect (clone of SQLiteTemplates, uses Keywords.TURSO)
  • keywords/turso resource + Keywords.TURSO
  • SQLTemplatesRegistry maps the turso JDBC product name to TursoTemplates.builder()
  • tech.turso:turso:0.6.0 JDBC driver wired as a test dependency (jdbc:turso: URL, driver tech.turso.JDBC)

Test infrastructure

  • Target.TURSO, testutil.Turso marker (embedded-DB category, runs under -Pdev/CI like SQLite)
  • Connections.getTurso() / initTurso()
  • TursoTemplatesTest, TursoSuiteTest, TursoLiteralsSuiteTest, ExportTursoTest
  • JPA Mode, DateArithmeticTest, KeywordQuotingBase, FilterFactory, MatchingFiltersFactory updated for the new target

Test results

Full SQL integration suite against Turso 0.6.0: 194 pass / 78 fail / 33 skip.

The 78 failing tests are excluded for TURSO via @ExcludeIn(TURSO) (ExportTursoTest is @Disabled) and tracked in #1812, grouped by gap (missing functions, Long/Double DECIMAL conversion, qualified columns in DML, FOR UPDATE, FULL OUTER JOIN, java.time setObject, incomplete JDBC metadata, …) with links to existing upstream Turso issues where they exist. No new issues were opened on the Turso repo.

Turso closes the shared JDBC connection when a statement errors, so AbstractBaseTest reconnects per-test for TURSO to prevent a single failure cascading across the suite.

Regression run of the embedded suites (H2, HSQLDB, Derby, SQLite, Turso): 3513 tests, 0 failures (only the pre-existing unrelated QueryPerformanceTest JMH-harness error).

Closes nothing; tracked by #1812.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WPLya3e3DqdYmfdaoH3L6o

velo added 2 commits June 21, 2026 11:00
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
@velo velo merged commit 563fb9e into master Jun 21, 2026
5 checks passed
@velo velo deleted the add-turso-support branch June 21, 2026 14:32
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