Skip to content

转换代码,目前支持sql语句转化 Typescript

License

Notifications You must be signed in to change notification settings

JhonLandy/transform

Repository files navigation

transform

  • Install:
yarn global nuomi-transform
// or
npm i -g nuomi-transform
  • UseAge:
yarn transform xx.SQL ./test.d.ts
// or 
npm link nuomi-transform

nuomi-tf xx.SQL ./test.d.ts
  • Tansform: sql(xx.SQL):
CREATE TABLE `AHAHAH` (
    `id` int(11) NOT NULL AUTO_INCREMENT '身份id',
    `emodd` varchar(11) DEFAULT NULL COMMENT '数显',
    PRIMARY KEY (`ID`)
);

transform(test.d.ts):

/**
 *@description xxxx
 *@property id -身份id
 *@property emodd -数显
 */
type AHAHAH = {
    id: number;
    emodd: string;
};

About

转换代码,目前支持sql语句转化 Typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published