StackpressGitHub

API reference

stackpress/mysql

stackpress/mysql is the MySQL-specific SQL subpath. It combines the shared SQL builders and helpers with MySQL connection helpers exposed through the Stackpress public surface.

Import

import { Mysql, Mysql2Connection, connect } from 'stackpress/mysql';

When To Use It

Use this path when you need MySQL-specific connection or dialect behavior instead of only the shared stackpress/sql surface.

Export Inventory

ExportKindPurpose
MysqlclassMySQL dialect class
Mysql2ConnectionclassMySQL connection wrapper
connectfunctionCreate a MySQL-backed connection
shared SQL builders and helpersclasses/functionsSame builder surface as stackpress/sql

Detailed Exports

Mysql

  • Kind: class
  • Use it when you need the MySQL dialect class directly.
import { Mysql } from 'stackpress/mysql';

Mysql2Connection

  • Kind: class
  • Use it when working with the MySQL connector layer exposed through Stackpress.
import { Mysql2Connection } from 'stackpress/mysql';

connect

  • Kind: function
  • Use it to create a MySQL-backed Stackpress SQL connection.
  • Returns a MySQL-compatible connection object.
import { connect } from 'stackpress/mysql';