import Mysql from '@stackpress/inquire/Mysql';
Properties
| Property | Value |
|---|---|
name | mysql |
q | ` `` |
The module also exports typemap.
Type mapping highlights
json->JSONboolean->BOOLEANinteger->INTdatetime->DATETIME
Behavior notes
- keeps
?placeholders - supports
AUTO_INCREMENT - uses backticks for identifier quoting
- supports JSON expression generation through
json(...)
Example
const request = engine.insert('users')
.values({ email: '[email protected]' })
.query(Mysql);