SweetIQ/schemats

Schemats generates empty file

umer4ik opened this issue · 3 comments

My env: Windows x64, MySQL 5.5
I try cli with command
schemats generate -c mysql://root:1@localhost/db -t users -o db.ts
and the output file content is

export namespace usersFields {

}

export interface users {

}

Database has table users with data, what am I doing wrong?

xiamx commented

@crispmark Can you take a look at this one?

Hi @umer4ik, try

schemats generate -c mysql://root:1@localhost/db -s db -t users -o db.ts

@crispmark works good, thanks a lot!