Schemats generates empty file
umer4ik opened this issue · 3 comments
umer4ik commented
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?
crispmark commented
Hi @umer4ik, try
schemats generate -c mysql://root:1@localhost/db -s db -t users -o db.ts
umer4ik commented
@crispmark works good, thanks a lot!