Skip to content

A handy tool to generate typescript models from MySQL schema.

Notifications You must be signed in to change notification settings

rxmoein/mysql2ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mysql 2 TS

Using this command line tool you can generate customized models / interfaces directly from a mysql schema.

Installation

Install this tool globally using npm:

sudo npm install mysql2ts -g

Example Usage

To generate all typescript models from a mysql database, simply run this command:

mysql2ts -h 127.0.0.1 -u root -n Databsename -p 'pass' -r 3306 -o output -m advanced -c camelCase

Options

Name Usage
Program Version --version Or -V
Database Host Address --host Or -h
Database Name --dbname Or -n
Database User --dbuser Or -u
Database Pass --dbpass Or -p
Database Port --dbport Or -r
Output Directory --output Or -o
Mode --mode Or m
Naming Convention --namingConvention Or -c

About

A handy tool to generate typescript models from MySQL schema.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published