Options
All
  • Public
  • Public/Protected
  • All
Menu

MySql Handler.

export
class

MysqlHandler

extends

{BaseHandler}

Hierarchy

Index

Constructors

constructor

  • new MysqlHandler(options: IConnectionConfig): MysqlHandler

Properties

Private connection

connection: IConnection

Mysql connection object.

type

{mysql.Connection}

memberof

MysqlHandler

Private options

options: IConnectionConfig

Mysql connection options

type

{mysql.IConnectionConfig}

memberof

MysqlHandler

Methods

close

  • close(): void

connect

  • connect(): void

getRelationsForTable

getTableSchema

  • getTableSchema(tableName: string): Promise<Table>

getTables

  • getTables(): Promise<string[]>
  • Reads the information schema and returns an array of tables.

    Returns Promise<string[]>

    array of table names.

normalizeColumnSchema

normalizeRelations

readSchema

  • readSchema(): Promise<Schema>

Generated using TypeDoc