Skip to content

Feat/sql support - #1

Merged
zhy0216 merged 12 commits into
masterfrom
feat/sql-support
Feb 2, 2026
Merged

zhy0216 merged 12 commits into
masterfrom
feat/sql-support

Conversation

@zhy0216

@zhy0216 zhy0216 commented Feb 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

zhy0216 and others added 12 commits February 2, 2026 22:05
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Wire tagged template literals through the compilation pipeline:
- Add TaggedTemplateLit struct to typed AST (pkg/typed/expr.go)
- Add buildTaggedTemplateLit to builder with type arg resolution
- Add genTaggedTemplateLit to codegen with fmt.Sprintf fallback
- Add import collection for tagged template expressions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add Go runtime helpers for SQL operations (GTS_DB, GTS_Tx, GTS_ExecResult,
gts_connect, gts_db_close, gts_db_begin, gts_sql_exec) that get embedded
in generated output when SQL features are used. Wire up connect() built-in
to generate gts_connect() calls, track SQL usage for conditional runtime
inclusion, and handle the modernc.org/sqlite blank import.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fix double-pointer generation for nullable interfaces, add reflect
fallback to gts_len for generic slices, add go module initialization
for SQL programs in run/build commands, add DB/Transaction type
aliases, and support built-in module imports (import { connect }
from "sql").

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@zhy0216
zhy0216 merged commit 88507af into master Feb 2, 2026
1 check passed
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