Skip to content

template-vars: db --template SQL is not a generator fill site (known limitation) #62

Description

@HumanBean17

Follow-up to PR #56 (template variables); surfaced by the PR #56 code review.

config validate accepts a known generator like {{uuid}} in database.templates.<t>.sql, but the db runtime path only substitutes generators in free-form --sql — template SQL binds via :paramName with no fill_placeholders site, so the token is sent literal to the DB. This is a validate-passes / runtime-literal inconsistency.

DESIGN §2.5 was scoped in PR #56 to document this (free-form --sql only). This issue tracks the actual fix: decide whether to add a generator fill site for template SQL (and the implication for :paramName interaction), or keep it documented-as-not-supported and have config validate reject {{...}} in template SQL to remove the surprise. Not a regression (pre-existing boundary); deferred because it needs a fill-site design decision.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions