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

Make SQL dialects extensible with the ability to load dynamically #301

Closed
yruslan opened this issue Nov 23, 2023 · 0 comments · Fixed by #352
Closed

Make SQL dialects extensible with the ability to load dynamically #301

yruslan opened this issue Nov 23, 2023 · 0 comments · Fixed by #352
Labels
enhancement New feature or request Pramen-Scala

Comments

@yruslan
Copy link
Collaborator

yruslan commented Nov 23, 2023

Background

Currently, Pramen supports a fixed set of JDBC drivers for its JDBC connector. It could be beneficial to make this set of drivers to be extensible by users as plugins.

This can be easily achieved if Pramen opens SqlGenerator trait and allows custom mappings of drivers to SQL generator classes.

Feature

Make SQL dialects extensible with the ability to load dynamically.

Example

pramen.sql.generators = [
  { driver="org.postgresql.Driver", class = "za.co.absa.pramen.core.sql.SqlGeneratorPostgreSQL" },
  { driver="com.simba.hive.jdbc41.HS2Driver", class = "za.co.absa.pramen.core.sql.SqlGeneratorHive" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Pramen-Scala
Projects
None yet
1 participant