Connector/R2DBC 1.1.4 is a Stable (GA) release of MariaDB Connector/R2DBC, released on 2023-03-27
try {
// Configure the Connection
MariadbConnectionConfiguration conf = MariadbConnectionConfiguration.builder()
.host("192.0.2.1")
.port(8880) // tunnel port
.username("db_user")
.password("db_user_password")
.database("test")
.sslMode(SslMode.TUNNEL)
.sslContextBuilderCustomizer(
sslContextBuilder -> sslContextBuilder
.protocols("TLSv1.3")
.keyManager(new File("/path/to/client/cert"), new File("/path/to/client/key")))
.sslTunnelDisableHostVerification(true)
.build();
// Instantiate a Connection Factory
MariadbConnectionFactory connFactory = new MariadbConnectionFactory(conf);
MariadbConnection connection = connFactory.create().block();
connection.close().block();
} catch (java.lang.IllegalArgumentException e) {
System.err.println("Issue encountered while getting connection");
e.printStackTrace();
}connection
.createStatement("/*text*/ call some_proc(?)")
.bind(0, "connr2dbc_user@example.edu")
.execute()
.flatMap(...);@Query("/*text*/ call some_proc(:emailparam)")
List<User> findUsersWithEmailAddress(@Param("emailparam") String emailParam);wrong month 0Cannot invoke "Object.getClass()" because "obj" is nullSELECT @amount := 10;java.lang.IllegalStateException: Parameter at position 0 is not set.