metad.connectors.mysql module

Classes

MySQLConnector(host, port, user, password, …)

Import data from MySQL instances.

class metad.connectors.mysql.MySQLConnector(host, port, user, password, database)[source]

Bases: metad.connectors.base.BaseConnector

Import data from MySQL instances.

The MySQLConnector allows you to import data from a MySQL instance by translating the data types and exporting the primary / foreign key constraints from the schema table.

Methods

export_metadata(path_to_json)

Write the metadata to a JSON file.

export_tables(path_to_output)

Write the tables to CSV files.

export_metadata(path_to_json)[source]

Write the metadata to a JSON file.

Parameters

path_to_json (str) – The path to the output JSON.

export_tables(path_to_output)[source]

Write the tables to CSV files.

Parameters

path_to_output (str) – The path to the output directory.