holistics / dbml

Database Markup Language (DBML), designed to define and document database structures
https://dbml.org
Apache License 2.0
2.9k stars 170 forks source link

sql2dbml does not return error codes #499

Open pierresouchay opened 10 months ago

pierresouchay commented 10 months ago

When running in command line, sql2dbml does not return an error code if something bad happens.

What about returning an error code in such as case?

Would you consider a MR with such a feature?

pierresouchay commented 6 months ago

@NQPhuc I can implement it if you want.

I propose the following:

by default, if something fails, return 0 unless --error-code-on-failure=42 in such a case 42 would be returned... OK with that?

So we are sure we don't break existing users (where errors are now silent)