jackc / jackc/tern

How to disable template engine?

Open
#94 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.3k
Forks
86
PR merge metrics
No merged PRs in 30d

Description

Im using jackc/tern/migrations and in one of .sql files I do insert with using {{}} to insert parameters later. But (If I understood correctly) due to template engine in this lib sql is ignoring esc characters and that parameters whether being seen like sql functions (which doen't exist) or just saying that I have 'unexpected { in command. What should I do and how can I disable template engine?

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Start by tracing tern's migration SQL parsing and template configuration to determine how literal {{}} is handled; done means establishing and documenting or implementing a supported way to disable templating without breaking SQL parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, sql
Domain
databases, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.