@sqb/postgres-dialect
SQB's dialect plugin for PostgreSQL — teaches
@sqb/builder how to render PostgreSQL's SQL syntax (LIMIT/OFFSET pagination, identifier
quoting rules, etc.).
No exported API
This package exports nothing. Its entire effect is a side effect of importing it: it constructs
an internal PostgresSerializer (not exported) and registers it with
SerializerRegistry for dialect: 'postgres'.
import '@sqb/postgres-dialect';
@sqb/postgres (the connection adapter) imports this package internally as part of its own
entry point, so you don't need to import it yourself when using @sqb/postgres — only when
using @sqb/builder standalone (no @sqb/connect/adapter) and you still want
.generate({ dialect: 'postgres' }) to render PostgreSQL SQL.
See also
- The Dialect Plugin System — the full mechanism, and a from-scratch walkthrough built around this exact package's serializer.
SerializerRegistry,SerializerExtensionPgAdapter— the connection adapter that imports this package.