Skip to content

Commit abd94f3

Browse files
authored
Merge pull request #749 from margelo/@chrispader/update-nitro-sqlite-to-v9.6.0
2 parents d2000b5 + beb4681 commit abd94f3

3 files changed

Lines changed: 82 additions & 220 deletions

File tree

lib/storage/providers/SQLiteProvider.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@
33
* converting the value to a JSON string
44
*/
55
import type {BatchQueryCommand, NitroSQLiteConnection} from 'react-native-nitro-sqlite';
6-
import {enableSimpleNullHandling, open} from 'react-native-nitro-sqlite';
6+
import {open} from 'react-native-nitro-sqlite';
77
import {getFreeDiskStorage} from 'react-native-device-info';
88
import type {FastMergeReplaceNullPatch} from '../../utils';
99
import utils from '../../utils';
1010
import type StorageProvider from './types';
1111
import type {StorageKeyList, StorageKeyValuePair} from './types';
1212

13-
// By default, NitroSQLite does not accept nullish values due to current limitations in Nitro Modules.
14-
// This flag enables a feature in NitroSQLite that allows for nullish values to be passed to operations, such as "execute" or "executeBatch".
15-
// Simple null handling can potentially add a minor performance overhead,
16-
// since parameters and results from SQLite queries need to be parsed from and to JavaScript nullish values.
17-
// https://github.com/margelo/react-native-nitro-sqlite#sending-and-receiving-nullish-values
18-
enableSimpleNullHandling();
19-
2013
/**
2114
* The type of the key-value pair stored in the SQLite database
2215
* @property record_key - the key of the record

0 commit comments

Comments
 (0)