ibmdb / java_reactive_driver

IBM Db2 Java Reactive Driver based on R2DBC.
6 stars 1 forks source link

Missing `ConnectionFactoryProvider` #5

Open mp911de opened 1 year ago

mp911de commented 1 year ago

As per §4.3 R2DBC SPI Compliance, the ServiceLoader-based ConnectionFactoryProvider is missing. This lookup enables creating a ConnectionFactory from an R2DBC URL such as ConnectionFactories.get("r2dbc:postgres://[<username>:<password>@]<host>:<port>/<database>"), see ConnectionFactoryOptions for reference.

rs-rappavu commented 1 year ago

Yes, this class is not available yet. Will be adding it.

adrinerandrade commented 1 year ago

Hello everyone!

Please, if implemented can you provide support for uri where the current schema can be defined? For example, we have some Spring applications here where the connections as defined in such way:

datasource:
  db2:
    url: jdbc:db2://<host>:<port>/<database>:currentSchema=<schemaName>;
    username: <user>
    password: <password>

It works perfectly. In the builder I could not find a schema configuration, and was not clear to me where I could configure it. This approach is better then to set schema for every connection provided.