import Pgsql from '@stackpress/inquire/Pgsql';
Properties
| Property | Value |
|---|---|
name | pgsql |
q | " |
The module also exports typemap.
Type mapping highlights
json->JSONBboolean->BOOLEANinteger->INTEGERdatetime->TIMESTAMP
Behavior notes
- 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(...)
Example
const request = engine.select('*')
.from('users')
.where('id = ?', [1])
.query(Pgsql);