nuomi-transform
v1.1.8
Published
transform sql to Typescript or JsDoc
Downloads
9
Maintainers
Readme
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;
};