Skip to content

Commit

Permalink
Open SingleStoreClient for extension
Browse files Browse the repository at this point in the history
  • Loading branch information
hashhar committed Mar 22, 2023
1 parent 5e62efb commit 39939f7
Showing 1 changed file with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,34 @@ public class SingleStoreClient
private final Type jsonType;

@Inject
public SingleStoreClient(BaseJdbcConfig config, ConnectionFactory connectionFactory, QueryBuilder queryBuilder, TypeManager typeManager, IdentifierMapping identifierMapping, RemoteQueryModifier queryModifier)
public SingleStoreClient(
BaseJdbcConfig config,
ConnectionFactory connectionFactory,
QueryBuilder queryBuilder,
TypeManager typeManager,
IdentifierMapping identifierMapping,
RemoteQueryModifier queryModifier)
{
super("`", connectionFactory, queryBuilder, config.getJdbcTypesMappedToVarchar(), identifierMapping, queryModifier, false);
this(
config,
connectionFactory,
queryBuilder,
typeManager,
identifierMapping,
queryModifier,
false);
}

protected SingleStoreClient(
BaseJdbcConfig config,
ConnectionFactory connectionFactory,
QueryBuilder queryBuilder,
TypeManager typeManager,
IdentifierMapping identifierMapping,
RemoteQueryModifier queryModifier,
boolean supportsRetries)
{
super("`", connectionFactory, queryBuilder, config.getJdbcTypesMappedToVarchar(), identifierMapping, queryModifier, supportsRetries);
requireNonNull(typeManager, "typeManager is null");
this.jsonType = typeManager.getType(new TypeSignature(StandardTypes.JSON));
}
Expand Down

0 comments on commit 39939f7

Please sign in to comment.