db-json-schema
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i db-json-schema

Weekly Downloads

4

Version

0.0.2

License

MIT

Unpacked Size

153 kB

Total Files

49

Last publish

Collaborators

  • jeffjing