private static void configureDbMeta(StoreProperties props, JdbcStringBasedStoreConfigurationBuilder builder) {
props.required(DIALECT);
DatabaseType type = DatabaseType.valueOf(props.get(DIALECT).toUpperCase());
builder.dialect(type);
String prop;
if ((prop = props.get(DB, MAJOR_VERSION)) != null) {
builder.dbMajorVersion(new Integer(prop));
}
if ((prop = props.get(DB, MINOR_VERSION)) != null) {
builder.dbMinorVersion(new Integer(prop));
}
String disableUpsert = props.get(DB, DISABLE_UPSERT);
boolean upsert = Boolean.parseBoolean(disableUpsert);
if (upsert)
builder.addProperty(TableManagerFactory.UPSERT_DISABLED, disableUpsert);
String disableIndexing = props.get(DB, DISABLE_INDEXING);
boolean indexing = Boolean.parseBoolean(disableIndexing);
if (indexing)
builder.addProperty(TableManagerFactory.INDEXING_DISABLED, disableIndexing);
}