Skip to content

Static sql v2#79

Merged
Araq merged 11 commits intoAraq:masterfrom
elcritch:static-sql-v2
Apr 15, 2026
Merged

Static sql v2#79
Araq merged 11 commits intoAraq:masterfrom
elcritch:static-sql-v2

Conversation

@elcritch
Copy link
Copy Markdown
Contributor

  • Adds static API variants of createTable and dropTable
  • Fixes table quoting (on postgres) in dropTable
  • Adds an opt-in static schema import path for importModel:
    importModel(..., includeStatic = true) now builds model metadata directly from
    the .sql file at compile time, exposes the raw SQL as a global sqlSchema, and avoids
    relying on a generated .nim model file. The default path still uses tools/ormin_importer,
    which now only handles normal file generation through the shared generator code.

@Araq Araq merged commit f431c80 into Araq:master Apr 15, 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.

2 participants