Sqlite is the SQLite dialect object exported by @stackpress/inquire.
import Sqlite from '@stackpress/inquire/Sqlite';| Property | Value |
|---|---|
name |
sqlite |
q |
` |
The module also exports typemap.
json->TEXTboolean->INTEGERinteger->INTEGERdatetime->INTEGER
- keeps
?placeholders - converts booleans to integers at the connection layer
- uses backticks for identifier quoting
- supports fewer direct alter operations than MySQL or PostgreSQL
const request = engine.create('users')
.addField('id', { type: 'integer', autoIncrement: true })
.addPrimaryKey('id')
.query(Sqlite);