Skip to content

Commit 40edb72

Browse files
committed
make lz4 compression configurable
1 parent 6d6dd8b commit 40edb72

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lib/DBSQLSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default class DBSQLSession implements IDBSQLSession {
202202
...getArrowOptions(clientConfig),
203203
canDownloadResult: options.useCloudFetch ?? clientConfig.useCloudFetch,
204204
parameters: getQueryParameters(options.namedParameters, options.ordinalParameters),
205-
canDecompressLZ4Result: clientConfig.useLZ4Compression && Boolean(LZ4),
205+
canDecompressLZ4Result: (options.useLZ4Compression ?? clientConfig.useLZ4Compression) && Boolean(LZ4),
206206
});
207207
const response = await this.handleResponse(operationPromise);
208208
const operation = this.createOperation(response);

lib/contracts/IDBSQLSession.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export type ExecuteStatementOptions = {
1717
runAsync?: boolean;
1818
maxRows?: number | bigint | Int64 | null;
1919
useCloudFetch?: boolean;
20+
useLZ4Compression?: boolean;
2021
stagingAllowedLocalPath?: string | string[];
2122
namedParameters?: Record<string, DBSQLParameter | DBSQLParameterValue>;
2223
ordinalParameters?: Array<DBSQLParameter | DBSQLParameterValue>;

0 commit comments

Comments
 (0)