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

Allow driver and dialect override from config #1023

Closed
rnentjes opened this issue Aug 28, 2020 · 0 comments
Closed

Allow driver and dialect override from config #1023

rnentjes opened this issue Aug 28, 2020 · 0 comments

Comments

@rnentjes
Copy link
Contributor

I like to use a wrapper (https://github.com/rnentjes/Simple-jdbc-statistics) around the jdbc driver when developing, but it fails because of the hardcoded jdbc string to driver and dialect mapping.

For me an option to add a driver and dialect would be enough. I will see if I can create a pull request for this.

The stacktrace I get:

Exception in thread "main" java.lang.IllegalStateException: Can't resolve dialect for connection: jdbc:stat:webServerPort=11111:jdbc:sqlite:data/fullstack.db
	at org.jetbrains.exposed.sql.Database$Companion.getDialectName(Database.kt:146)
	at org.jetbrains.exposed.sql.Database$Companion.connect(Database.kt:115)
	at org.jetbrains.exposed.sql.Database$Companion.connect$default(Database.kt:111)
	at nl.astraeus.FullstackKt.main(Fullstack.kt:56)
	at nl.astraeus.FullstackKt.main(Fullstack.kt)
rnentjes added a commit to rnentjes/Exposed that referenced this issue Aug 28, 2020
Tapac pushed a commit that referenced this issue Sep 15, 2020
* Support custom drivers registration #1023
@Tapac Tapac closed this as completed Oct 13, 2020
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

2 participants