class MysqlAdapter
extends Adapter
import { MysqlAdapter } from "https://deno.land/x/cotton@v0.7.5/src/adapters/mysql.ts";
MySQL database adapter
Constructors
new
MysqlAdapter(options: ConnectionOptions)Properties
private
client: MysqlClientMySQL library database client
private
options: MysqlClientConfigMySQL client configurations
dialect: DatabaseDialect
Methods
connect(): Promise<void>
disconnect(): Promise<void>
query(query: string, values?: any[]): Promise<DatabaseResult[]>