@@ -219,11 +219,26 @@ export function parseconnectionstring(connectionstring: string): SQLiteCloudConf
219219 } )
220220
221221 const config : SQLiteCloudConfig = {
222+ ...options ,
222223 username : decodeURIComponent ( url . username ) ,
223224 password : decodeURIComponent ( url . password ) ,
225+ password_hashed : options . password_hashed ? parseBoolean ( options . password_hashed ) : undefined ,
224226 host : url . hostname ,
227+ // type cast values
225228 port : url . port ? parseInt ( url . port ) : undefined ,
226- ...options
229+ insecure : options . insecure ? parseBoolean ( options . insecure ) : undefined ,
230+ timeout : options . timeout ? parseInt ( options . timeout ) : undefined ,
231+ zerotext : options . zerotext ? parseBoolean ( options . zerotext ) : undefined ,
232+ create : options . create ? parseBoolean ( options . create ) : undefined ,
233+ memory : options . memory ? parseBoolean ( options . memory ) : undefined ,
234+ compression : options . compression ? parseBoolean ( options . compression ) : undefined ,
235+ non_linearizable : options . non_linearizable ? parseBoolean ( options . non_linearizable ) : undefined ,
236+ noblob : options . noblob ? parseBoolean ( options . noblob ) : undefined ,
237+ maxdata : options . maxdata ? parseInt ( options . maxdata ) : undefined ,
238+ maxrows : options . maxrows ? parseInt ( options . maxrows ) : undefined ,
239+ maxrowset : options . maxrowset ? parseInt ( options . maxrowset ) : undefined ,
240+ usewebsocket : options . usewebsocket ? parseBoolean ( options . usewebsocket ) : undefined ,
241+ verbose : options . verbose ? parseBoolean ( options . verbose ) : undefined
227242 }
228243
229244 // either you use an apikey or username and password
0 commit comments