Pgsql is the PostgreSQL dialect object exported by @stackpress/inquire.
import Pgsql from '@stackpress/inquire/Pgsql';| Property | Value |
|---|---|
name |
pgsql |
q |
" |
The module also exports typemap.
json->JSONBboolean->BOOLEANinteger->INTEGERdatetime->TIMESTAMP
- connection wrappers rewrite
?placeholders to$1,$2, and so on - uses
SERIALfor auto-increment fields - uses double quotes for identifier quoting
- supports JSON expression generation through
json(...)
const request = engine.select('*')
.from('users')
.where('id = ?', [1])
.query(Pgsql);