Mysql is the MySQL dialect object exported by @stackpress/inquire.
import Mysql from '@stackpress/inquire/Mysql';| Property | Value |
|---|---|
name |
mysql |
q |
` |
The module also exports typemap.
json->JSONboolean->BOOLEANinteger->INTdatetime->DATETIME
- keeps
?placeholders - supports
AUTO_INCREMENT - uses backticks for identifier quoting
- supports JSON expression generation through
json(...)
const request = engine.insert('users')
.values({ email: 'ada@example.com' })
.query(Mysql);