Skip to content

Commit 0e1750d

Browse files
committed
fix: remove deprecated enableSimpleNullHandling call
1 parent 60b6081 commit 0e1750d

1 file changed

Lines changed: 1 addition & 8 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)