@sqb/oracle-dialect
v6.0.9
Published
SQB serialization extension for Oracle database
Readme
About SQB
SQB is an extensible, multi-dialect SQL query builder and Database connection wrapper for NodeJS.
About @sqb/oracle-dialect
This package registers the oracle SQL serialization dialect (a SerializerExtension for
@sqb/builder) used by @sqb/oracle. It is loaded automatically when
@sqb/oracle is imported, so you normally don't need to depend on it directly.
It covers the parts of Oracle's SQL dialect that differ most from ANSI SQL and other databases:
FETCH FIRST ... ROWS ONLY / OFFSET ... ROWS for pagination, TO_DATE/TO_TIMESTAMP literal
wrapping for date and timestamp values, 1/0 for booleans (Oracle has no native BOOLEAN
literal), Oracle's LISTAGG for the builder's StringAGG element, sequence.NEXTVAL for sequence
getters, and Oracle's own reserved-word list. RETURNING is stripped from the generated SQL;
@sqb/oracle emulates it with a follow-up SELECT instead — using the row's ROWID for inserts
and the original WHERE clause for updates — the same approach @sqb/mysql uses.
Installation
$ npm install @sqb/oracle-dialect --saveNode Compatibility
- node >= 20.x
License
SQB is available under MIT license.
