Add Turso (SQLite-compatible) database support#1813
Merged
Conversation
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 ofSQLiteTemplates, usesKeywords.TURSO)keywords/tursoresource +Keywords.TURSOSQLTemplatesRegistrymaps thetursoJDBC product name toTursoTemplates.builder()tech.turso:turso:0.6.0JDBC driver wired as a test dependency (jdbc:turso:URL, drivertech.turso.JDBC)Test infrastructure
Target.TURSO,testutil.Tursomarker (embedded-DB category, runs under-Pdev/CI like SQLite)Connections.getTurso()/initTurso()TursoTemplatesTest,TursoSuiteTest,TursoLiteralsSuiteTest,ExportTursoTestMode,DateArithmeticTest,KeywordQuotingBase,FilterFactory,MatchingFiltersFactoryupdated for the new targetTest results
Full SQL integration suite against Turso 0.6.0: 194 pass / 78 fail / 33 skip.
The 78 failing tests are excluded for
TURSOvia@ExcludeIn(TURSO)(ExportTursoTestis@Disabled) and tracked in #1812, grouped by gap (missing functions,Long/DoubleDECIMAL conversion, qualified columns in DML,FOR UPDATE,FULL OUTER JOIN,java.timesetObject, 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
AbstractBaseTestreconnects per-test forTURSOto 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
QueryPerformanceTestJMH-harness error).Closes nothing; tracked by #1812.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WPLya3e3DqdYmfdaoH3L6o