Module

x/nessie/mod.ts>ClientMySQL

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
Go to Latest
class ClientMySQL
extends AbstractClient<MySQLClient>
import { ClientMySQL } from "https://dotland.deno.dev/x/nessie@2.0.8/mod.ts";

MySQL client

This is for MySQL versions >5.5, if you want to use version <=5.5, use ClientMySQL55 instead.

Constructors

new
ClientMySQL(...connectionOptions: MySQLClientOptions)

Properties

protected
clientOptions: MySQLClientOptions
protected
readonly
QUERY_CREATE_MIGRATION_TABLE
protected
readonly
QUERY_MIGRATION_TABLE_EXISTS
protected
readonly
QUERY_TRANSACTION_COMMIT
protected
readonly
QUERY_TRANSACTION_ROLLBACK
protected
readonly
QUERY_TRANSACTION_START
protected
readonly
QUERY_UPDATE_TIMESTAMPS
dialect: DBDialects

Methods

migrate(amount: AmountMigrateT)
query(query: QueryT)
rollback(amount: AmountRollbackT)
seed(matcher?: string)
import ClientMySQL
import { ClientMySQL } from "https://dotland.deno.dev/x/nessie@2.0.8/mod.ts";