Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instead of enum Tables allow an object with table.value for easy access #23

Open
zadokdaniel opened this issue Jul 30, 2022 · 0 comments

Comments

@zadokdaniel
Copy link

Maybe instead of heaving an Enum of Tables create objects with all the possible keys for cases of duplicate column names on joins and selects.

some code that does that:
https://gist.github.com/zadokdaniel/ea4dd31e13957c717ffb26e238f25173

look at the comments to see the results.

If done probably would be preferred to find another way to state the table name by property (or symbol)
unfortunately using typescript .toString() must explicitly be called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant