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

dal-go / dalgo2sql / 39964266606
100%

Build:
DEFAULT BRANCH: main
Ran 23 Oct 2026 01:48PM UTC
Jobs 1
Files 38
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

23 Oct 2026 01:48PM UTC coverage: 100.0%. Remained the same
39964266606

push

github

web-flow
feat(sql): typed MySQL, Oracle and SQL Server structured-query dialects (#231)

Adds three typed structured-query dialects to the typed compiler (`typed_sql.go`), wired like `"postgres"`:

- `DbOptions{StructuredQueryDialect: "mysql"}` — MySQL 8.0.17+ (verified target 8.4): backtick-quoted exact names, `?` placeholders, `LIMIT ? OFFSET ?`, native NULL order (no NULLS clause), DOUBLE arithmetic, catalog from `information_schema.COLUMNS` (schema or `DATABASE()`).
- `DbOptions{StructuredQueryDialect: "oracle"}` — Oracle Database 23ai (target Free 23): double-quoted exact names (a `"` inside a name refused, 128 bytes), `:1`-style placeholders, `OFFSET :n ROWS FETCH NEXT :m ROWS ONLY`, explicit `NULLS FIRST/LAST`, table alias without `AS`, empty IN `(1 = 0)`, BINARY_DOUBLE arithmetic, catalog from `ALL_TAB_COLUMNS` (schema or `CURRENT_SCHEMA`).
- `DbOptions{StructuredQueryDialect: "sqlserver"}` — SQL Server 2022 via go-mssqldb: double-quoted exact names (QUOTED_IDENTIFIER ON from go-mssqldb's ODBC login), `@p1` placeholders, `OFFSET … FETCH` with `ORDER BY (SELECT NULL)` when the query has no ORDER BY, native NULL order, FLOAT arithmetic with SUM/AVG argument cast, catalog from `sys.columns` of `OBJECT_ID(<statement's own name>)`.

Compiler changes (all behind an optional `typedEngineRules` interface; PostgreSQL output is unchanged — every existing golden is byte-identical):
- MySQL/Oracle/SQL Server write every field qualified with its source, so no select alias can capture a name (MySQL compares ORDER BY names case/accent-insensitively and reads aliases inside ORDER BY expressions; Oracle 23ai reads aliases in GROUP BY/HAVING; SQL Server's default collation is case-insensitive).
- Oracle and SQL Server have no GROUP BY by position, so a grouped expression carrying a constant is refused (`dal.ErrNotSupported`).
- Capabilities equal PostgreSQL's (GROUP BY, HAVING, ORDER BY, COUNT/SUM/AVG incl. DISTINCT, MIN, MAX); FIRST/LAST, windows, subqueries, cursors, ... (continued)

524 of 524 new or added lines in 12 files covered. (100.0%)

6312 of 6312 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39964266606.1 23 Oct 2026 01:48PM UTC 38
100.0
GitHub Action Run
Source Files on build 39964266606
  • Tree
  • List 38
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 574f619e on github
  • Prev Build on main (#39948198292)
  • Next Build on main (#39985029966)
  • 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