apstanisic / zmaj

Zmaj is a headless CMS for managing database
https://zmaj.vercel.app
MIT License
5 stars 0 forks source link

SchemaInfoService has ugly API #46

Closed apstanisic closed 1 year ago

apstanisic commented 1 year ago

Currently most APIs are like this tableName?: string, columnName?: string, shared: {/**/}. This is good for ensuring that I have to pass tableName to be able to pass columnName, but it's ugly when I just want to pass transaction without table or column.

Create overload, 1 param as object, 1 without column, with everything optional, and one with column with table name required

apstanisic commented 1 year ago

70115f9