File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export interface SQLiteCloudConfig {
4444 /** Database will be created in memory */
4545 memory ?: boolean
4646
47- /* Enable compression */
47+ /* Enable compression, default: true */
4848 compression ?: boolean
4949 /** Request for immediate responses from the server node without waiting for linerizability guarantees */
5050 non_linearizable ?: boolean
Original file line number Diff line number Diff line change @@ -226,7 +226,8 @@ export function validateConfiguration(config: SQLiteCloudConfig): SQLiteCloudCon
226226
227227 config . verbose = parseBoolean ( config . verbose )
228228 config . noblob = parseBoolean ( config . noblob )
229- config . compression = parseBoolean ( config . compression )
229+ config . compression = config . compression != undefined && config . compression != null ? parseBoolean ( config . compression ) : true // default: true
230+
230231 config . create = parseBoolean ( config . create )
231232 config . non_linearizable = parseBoolean ( config . non_linearizable )
232233 config . insecure = parseBoolean ( config . insecure )
You can’t perform that action at this time.
0 commit comments