0.0.3 • Published 4 years ago

ts-mysql-schema v0.0.3

Weekly downloads
15
License
MIT
Repository
github
Last release
4 years ago

ts-mysql-schema

Alt Text

A schema extractor for MySQL.

Alt Text

Installation

yarn add ts-mysql-schema
# or
npm install ts-mysql-schema

Usage

import { MySQLSchema } from 'ts-mysql-schema'

const mySQLSchema = new MySQLSchema({
  uri: 'mysql://root@127.0.0.1:3010/test'
})

const schema = await mySQLSchema.getSchema()
console.log(schema)

Credit

The code is mostly derived from Netto Farah's awesome mysql-schema-ts library. The difference here is that instead of returning the converted TypeScript interfaces, we're just returning the schema.

Related

License

MIT


stevenmiller888.github.io  ·  GitHub @stevenmiller888  ·  Twitter @stevenmiller888