README
ts-mysql-schema
A schema extractor for MySQL.
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
- ts-mysql-parser - A standalone, grammar-complete MySQL parser
- ts-mysql-uri - Parse a MySQL connection URI
- ts-antlr4-scanner - A scanner for antlr4-based lexers
License
stevenmiller888.github.io · GitHub @stevenmiller888 · Twitter @stevenmiller888