File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @sqlitecloud/drivers" ,
3
- "version" : " 1.0.116 " ,
3
+ "version" : " 1.0.120 " ,
4
4
"description" : " SQLiteCloud drivers for Typescript/Javascript in edge, web and node clients" ,
5
5
"main" : " ./lib/index.js" ,
6
6
"types" : " ./lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ export interface SQLiteCloudConfig {
37
37
timeout ?: number
38
38
/** Name of database to open */
39
39
database ?: string
40
-
40
+ /** Flag to tell the server to zero-terminate strings */
41
+ zerotext ?: boolean
41
42
/** Create the database if it doesn't exist? */
42
43
create ?: boolean
43
44
/** Database will be created in memory */
44
45
memory ?: boolean
46
+
45
47
/* Enable compression */
46
48
compression ?: boolean
47
49
/** Request for immediate responses from the server node without waiting for linerizability guarantees */
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ export function getInitializationCommands(config: SQLiteCloudConfig): string {
54
54
if ( config . compression ) {
55
55
commands += 'SET CLIENT KEY COMPRESSION TO 1; '
56
56
}
57
+ if ( config . zerotext ) {
58
+ commands += 'SET CLIENT KEY ZEROTEXT TO 1; '
59
+ }
57
60
if ( config . non_linearizable ) {
58
61
commands += 'SET CLIENT KEY NONLINEARIZABLE TO 1; '
59
62
}
You can’t perform that action at this time.
0 commit comments