Add OracleDialect to the independent SQL dialects module#151
Draft
Add OracleDialect to the independent SQL dialects module#151
Conversation
Co-authored-by: kbarbounakis <9191768+kbarbounakis@users.noreply.github.com>
…PostgreSQL) Co-authored-by: kbarbounakis <9191768+kbarbounakis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add independent SQL dialects to module
Define independent SQL dialects inside the query module
Mar 19, 2026
Co-authored-by: kbarbounakis <9191768+kbarbounakis@users.noreply.github.com>
Copilot
AI
changed the title
Define independent SQL dialects inside the query module
Add OracleDialect to the independent SQL dialects module
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
src/dialects/module was missing an Oracle formatter alongside the existing SQLite, MySQL, MSSQL, and PostgreSQL ones.Changes
src/dialects/oracle.js— newOracleDialect extends SqlFormatterimplementing Oracle-specific SQL:OFFSET n ROWS FETCH NEXT n ROWS ONLY(Oracle 12c+)"double-quoted"identifier escapingEXTRACT(... FROM ...), date truncation withTRUNC()NVL(), string cast withTO_CHAR()NUMBER(p,s), boolean asNUMBER(1,0)REGEXP_LIKE()for regex,LOWER(RAWTOHEX(SYS_GUID()))for UUID generation$toGuidviaDBMS_CRYPTO.HASH(MD5-based, deterministic)$getDatemapped toTRUNC(SYSDATE)/SYSDATE/SYSTIMESTAMPsrc/dialects/index.js— exportsOracleDialectspec/SqlDialects.spec.js— 31 Oracle-specific tests;OracleDialectadded to shared cross-dialect assertionsUsage
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.