• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dal-go / dalgo2sql / 34453604356
100%

Build:
DEFAULT BRANCH: main
Ran 10 Sep 2026 08:09AM UTC
Jobs 1
Files 18
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Sep 2026 08:08AM UTC coverage: 87.491% (+0.3%) from 87.144%
34453604356

push

github

web-flow
feat(sqlite): support FROM-source aliases in compileStructuredSQL (#179)

compileStructuredSQL unconditionally rejected any structured query whose
FROM source carried an alias. datatug-cli's own saved query
(customer-invoices.query.dtql, `from: {name: Invoice, alias: i}`) uses
exactly that shape, so datatug-cli's protected sqlite read path could not
opt into this dialect's bound-value, validated-source compilation without
turning a real production query into a hard error.

- Validate the alias is a plain identifier (`^[A-Za-z_][A-Za-z0-9_]*$`)
  before trusting it in emitted SQL; anything else is rejected outright
  rather than quoted-and-passed-through.
- Emit `FROM "table" AS "alias"` (backtick-quoted, matching this file's
  existing identifier quoting).
- Thread the alias through compileSQLCondition/compileSQLExpression so a
  FieldRef qualified with the declared alias (e.g. `i.CustomerId`) compiles
  to an alias-qualified column; an unqualified FieldRef still compiles as
  before, and a FieldRef qualified with anything else is rejected — this
  dialect only ever has one source (joins are already rejected earlier in
  compileStructuredSQL), so any other qualifier is definitionally
  unresolvable.
- Add a datatug inventory test (dtql_datatug_inventory_test.go) that
  deserializes and compiles every DTQL-YAML text datatug actually ships or
  tests org-wide (the one real *.query.dtql file plus every embedded
  `from:`-rooted Go constant in datatug-cli's test suite) — all six compile
  cleanly; none needed a follow-up.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>

18 of 18 new or added lines in 1 file covered. (100.0%)

1203 of 1375 relevant lines covered (87.49%)

0.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34453604356.1 10 Sep 2026 08:09AM UTC 18
87.49
GitHub Action Run
Source Files on build 34453604356
  • Tree
  • List 18
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 358f597d on github
  • Prev Build on main (#34448064373)
  • Next Build on main (#34627011630)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc