db-json-schema
v0.0.2
Published
Generates JSON Schema from from existing databases.
Downloads
2
Readme
db-json-schema
A tool to generate JSON Schema from existing databases, current support Mysql、MSSQL、PostgresSQL、MariaDB、ORACLE、SQLite.
start
import { Engine } from 'db-json-schema'
const driver = Engine.createDriver('mysql')
Engine.createModelFromDatabase(driver, {
host: 'localhost',
port: 3306,
databaseName: 'test',
user: 'root',
password: 'root',
databaseType: 'mysql',
skipTables: [],
})
Acknowledgements
The core code are ported from typeorm-model-generator, thanks for https://github.com/Kononnable's great work.