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

Move all SQL related functions and objects to @airport/tarmaq-sql #31

Open
artem-v-shamsutdinov opened this issue Jan 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@artem-v-shamsutdinov
Copy link
Member

For ability to hot load:

Move all SQL related top level constants (Y, N, etc.) and functions (AND, OR, NOT, MAX, MIN, etc.) to a new library. Back their implementations with globaThis based injection references (allowing for version numbers):

export const Y = globalThis.IOC.getSQLObject('Y', '2.0.0')

export const AND = globalThis.IOC.getSQLFuction('AND', '2.0.0')

This should be done before hot loading is enabled (eventually). The @airport/tarmaq-sql will be included in every patch that has DAOs in it but will be just a pass though object to the underlying injectable functionality.

@artem-v-shamsutdinov artem-v-shamsutdinov added the enhancement New feature or request label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant