Class AdapterFactory
java.lang.Object
app.ductape.sdk.database.adapters.AdapterFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(DatabaseType type) create(DatabaseType type, Map<String, Object> connectOptions) TS/Go/.NET parity: live-vs-stub adapter selection.booleanisSupported(DatabaseType type) voidregisterAdapter(DatabaseType type, Class<? extends BaseAdapter> adapterClass) boolean
-
Constructor Details
-
AdapterFactory
public AdapterFactory()
-
-
Method Details
-
create
-
create
TS/Go/.NET parity: live-vs-stub adapter selection. Whentypehas a real live adapter and that adapter'sshouldUse(Map)gate is true for the givenconnectOptions, returns the real driver-backed adapter instead of the in-memory stub (mirrors GopostgresShouldUseLive/newMySQLLiveBackend/dynamoShouldUseLive/ .NETNpgsqlPostgreSqlAdapter.ShouldUse/MySqlConnectorLiveAdapter.ShouldUse/DynamoDbDriverLiveAdapter.ShouldUsedispatch). -
isSupported
-
getSupportedTypes
-
registerAdapter
-
unregisterAdapter
-