Skip to content

Add SQLiteHelper with SqlResult, SqliteDb, SQL singleton and test suite#1

Merged
Donach merged 1 commit intomasterfrom
feature/sqlite-helper-api
Apr 5, 2026
Merged

Add SQLiteHelper with SqlResult, SqliteDb, SQL singleton and test suite#1
Donach merged 1 commit intomasterfrom
feature/sqlite-helper-api

Conversation

@Donach
Copy link
Copy Markdown
Contributor

@Donach Donach commented Apr 5, 2026

  • SqlResult uses string array[2000] cols with typed accessors (col, colInt, colReal, colBool)
  • SqliteDb wraps a connection with select, selectFirst, exists, count, exec
  • SQL singleton with @configurable SQL_DATABASE_PATH for single-db workflows
  • Backwards-compatible sqlite_select free function preserved
  • Comprehensive test suite covering all APIs, edge cases, joins, aggregates

- SqlResult uses string array[2000] cols with typed accessors (col, colInt, colReal, colBool)
- SqliteDb wraps a connection with select, selectFirst, exists, count, exec
- SQL singleton with @configurable SQL_DATABASE_PATH for single-db workflows
- Backwards-compatible sqlite_select free function preserved
- Comprehensive test suite covering all APIs, edge cases, joins, aggregates

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Donach
Copy link
Copy Markdown
Contributor Author

Donach commented Apr 5, 2026

Depends on wurstscript/WurstScript#1180

@Donach Donach merged commit 4ac95e4 into master Apr 5, 2026
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