Surface

Mysql

`Mysql` is the MySQL dialect object exported by `@stackpress/inquire`.

ts
import Mysql from '@stackpress/inquire/Mysql';

Properties

PropertyValue
namemysql
q` ``

The module also exports typemap.

Type mapping highlights

  • json -> JSON
  • boolean -> BOOLEAN
  • integer -> INT
  • datetime -> DATETIME

Behavior notes

  • keeps ? placeholders
  • supports AUTO_INCREMENT
  • uses backticks for identifier quoting
  • supports JSON expression generation through json(...)

Example

ts
const request = engine.insert('users')
  .values({ email: '[email protected]' })
  .query(Mysql);