ariga / entimport

A tool for generating Ent schema from SQL schema
Apache License 2.0
174 stars 49 forks source link

entimport: schema import failed - mysql: parse precision "unsigned" #10

Closed taofei-pro closed 2 years ago

zeevmoney commented 2 years ago

Hi @taofei-pro,

It's most likely solved in a new version of Atlas, I'll try to update the Atlas dep to @master and release it this/next week. You are welcome to do a PR if you want.

taofei-pro commented 2 years ago

@zeevmoney

I found that the -tables parameters do not take effect, and multiple tables are still generated

taofei-pro commented 2 years ago

https://github.com/ariga/atlas

Is it the problem with this repository?

zeevmoney commented 2 years ago

@taofei-pro, can you please show the full command that you've executed (without private info) and an example of your schema (the field names don't matter, just the types)?

https://github.com/ariga/atlas

Is it the problem with this repository?

I was referring to this repository, yes.

taofei-pro commented 2 years ago

@zeevmoney

entimport -dialect mysql -dsn "root:pass@tcp(localhost:3306)/test" -schema-path ./ent/schema -tables "users"

After I interrupted, I found that there was still a problem with this repository.

https://github.com/ariga/atlas/issues/347

zeevmoney commented 2 years ago

@zeevmoney

entimport -dialect mysql -dsn "root:pass@tcp(localhost:3306)/test" -schema-path ./ent/schema -tables "users"

After I interrupted, I found that there was still a problem with this repository.

ariga/atlas#347

@taofei-pro I've upgraded the Atlas dep to the newest version. Can you please check if the issue still exist?

taofei-pro commented 2 years ago

@zeevmoney Solved, great, thank you