Package me.ahoo.cosid.store.jdbc
Class JdbcStoreProvider
java.lang.Object
me.ahoo.cosid.store.jdbc.JdbcStoreProvider
- All Implemented Interfaces:
me.ahoo.cosid.store.StoreProvider
Opens
JdbcStores, type jdbc (06-stores.md ยง1), registered with ServiceLoader.
The client is a DataSource; without one the provider connects through DriverManager
with options.url, username and password, without a pool. Further options:
dialect: the dialect name (mysql,mariadb,postgresql,sqlserver,h2or one registered as aJdbcDialect); detected from the database by default;initSchema: create the tables that are missing, and the columns and indexes that tables of an earlier 5.0 pre-release lack, false by default;rangeTable,slotTable,namespaceTable: the table names (JdbcTables);fetchPlan:statement(the default) ortransactionbehind an SQL proxy or read-write splitting (FetchPlan).
StoreConfig.timeout is the queryTimeout of every statement.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TYPE
The store type.- See Also:
-
-
Constructor Details
-
JdbcStoreProvider
public JdbcStoreProvider()
-
-
Method Details
-
type
- Specified by:
typein interfaceme.ahoo.cosid.store.StoreProvider
-
options
- Specified by:
optionsin interfaceme.ahoo.cosid.store.StoreProvider
-
open
public me.ahoo.cosid.store.Store open(me.ahoo.cosid.store.StoreConfig config) - Specified by:
openin interfaceme.ahoo.cosid.store.StoreProvider
-