Thread
#exposed
    Osmium

    Osmium

    9 months ago
    Hi! I'm working on ClickHouse support for exposed, and the problem is that its
    javax.sql.Cnnection
    implementation supports only small subset of interface features. So, I wrote my own
    ExposedConnection
    implementatiion, but I don't know how to pass it in
    Database
    . In other words, how can I reimplement
    org.jetbrains.exposed.sql.statements.jdbc.JdbcConnectionImpl
    and pass it in
    Database.connect()
    ?
    Let me explain what I mean when I say I don't know how to pass it in Database. There is one line (https://github.com/JetBrains/Exposed/blob/621dc5b939b03c0f2396073c17f7ab5a7022816c[…]osed-core/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt) where it calls ServiceLoader.load(...).firstOrNull(). First. It always retrieves just first implementation, and there is no guarantee that this implementation will be
    JdbcConnectionImpl
    or my
    ClckhouseExposedConnection
    . So, can I override somehow
    ExposedConnection
    ?..
    s

    suresh

    9 months ago
    Hi, i am also interested in the clickhouse support. Do you have this project open-sourced some where?