Skip to content

Releases: mpyw/bisql

v0.1.3

Choose a tag to compare

@mpyw mpyw released this 15 Sep 16:36
c27ccce

What's Changed

  • Pin declscope at 0.4.0 by @mpyw in #34

Full Changelog: v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@mpyw mpyw released this 15 Sep 12:25
8e93a5e

What's Changed

  • Add the declscope adoption skill by @mpyw in #31
  • Update the declscope adoption skill to 0.3.3 by @mpyw in #33

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@mpyw mpyw released this 15 Sep 06:21
39ce58a

What's Changed

  • docs: surface typed struct parameters by @mpyw in #27
  • docs: recommend pinning both the expand and build snapshots by @mpyw in #28
  • Adopt declscope, and align the file boundaries with the units by @mpyw in #30

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@mpyw mpyw released this 18 Aug 13:40
720aa55

The first release of bisql — a two-way SQL template engine for Go.

Directives are written as SQL comments, so a template is valid SQL a client can run as-is, while an application converts the same text into a parameterized statement (SQL, Args).

Highlights

  • Explicit model — the renderer emits the template verbatim, evaluating only directives and stripping parser comments. No implicit clause/connector removal, no whitespace normalization; the author anchors dynamic fragments (1 = 1 / a leading connector).
  • Directives — bind (/* */), inline literal (/*^ */), conditional (/*%if/elseif/else/end*/), iteration (/*%for*/), and @include for reusable fragments (recursive, cycle-guarded).
  • Bind expansion by test-literal shape — a parenthesized test expands an iterable into an IN-list; a scalar test binds a slice as one array parameter (PostgreSQL = ANY(...)).
  • Dialects — MySQL, SQLite, PostgreSQL, Oracle, SQL Server (placeholder generation + literal formatting).
  • Loaders — RegistryLoader, FSLoader, LoaderFunc, StackedLoader; ParseFile/ExpandFile over any fs.FS.
  • Reviewable output — Statement.SQLWithArgs() renders a values-embedded form on demand (review only, never execute).

See the README for the directive reference and authoring rules, and pkg.go.dev for the API and runnable examples.

go get github.com/mpyw/bisql@v0.1.0