@DefaultSchema(value=AutoValueSchema.class) public abstract static class SingleStoreIO.DataSourceConfiguration extends java.lang.Object implements java.io.Serializable
DataSource
by providing all properties needed to
create it.Constructor and Description |
---|
DataSourceConfiguration() |
Modifier and Type | Method and Description |
---|---|
static SingleStoreIO.DataSourceConfiguration |
create(java.lang.String endpoint) |
javax.sql.DataSource |
getDataSource() |
static void |
populateDisplayData(@Nullable SingleStoreIO.DataSourceConfiguration dataSourceConfiguration,
DisplayData.Builder builder) |
SingleStoreIO.DataSourceConfiguration |
withConnectionProperties(java.lang.String connectionProperties)
Sets the connection properties passed to driver.connect(...).
|
SingleStoreIO.DataSourceConfiguration |
withDatabase(java.lang.String database) |
SingleStoreIO.DataSourceConfiguration |
withPassword(java.lang.String password) |
SingleStoreIO.DataSourceConfiguration |
withUsername(java.lang.String username) |
public static SingleStoreIO.DataSourceConfiguration create(java.lang.String endpoint)
public SingleStoreIO.DataSourceConfiguration withUsername(java.lang.String username)
public SingleStoreIO.DataSourceConfiguration withPassword(java.lang.String password)
public SingleStoreIO.DataSourceConfiguration withDatabase(java.lang.String database)
public SingleStoreIO.DataSourceConfiguration withConnectionProperties(java.lang.String connectionProperties)
NOTE - The "user" and "password" properties can be add via withUsername(String)
,
withPassword(String)
, so they do not need to be included here.
Full list of supported properties can be found here ...
public static void populateDisplayData(@Nullable SingleStoreIO.DataSourceConfiguration dataSourceConfiguration, DisplayData.Builder builder)
public javax.sql.DataSource getDataSource()