drawdb-io / drawdb

Free, simple, and intuitive online database design tool and SQL generator.
https://drawdb.vercel.app
MIT License
12.08k stars 851 forks source link

Place optional parameters of functions at the end #104

Closed l123wx closed 1 month ago

l123wx commented 1 month ago

I think we should place optional parameters of functions at the end, and when calling a function, if a parameter is passed with the same value as its default, it should be omitted.

image

image

I'm planning to submit a PR to refactor this part of the code. If you also agree with this approach, we can merge the PR : )