mysql-db-generator

1.0.3 • Public • Published

mysql-db-generator

MySQL table (re-)generator. Generates SQL code to delete (if exists) and re-create a set of tables, defined by a JSON-format schema. Supports table multiple-inheritance, automatic primary keys, indexes, foreign key constraints, unique constraints, nullables, default values, creation timestamps, modified timestamps, and probably more to come.

I'll write a proper README when I have time. In the meantime, you can see the invocation at example/example.js and the schema definition at example/example-schema.js.

/mysql-db-generator/

    Package Sidebar

    Install

    npm i mysql-db-generator

    Weekly Downloads

    5

    Version

    1.0.3

    License

    GPL-2.0

    Last publish

    Collaborators

    • battlesnake