Skip to content

Commit 8a596b1

Browse files
committed
docs: add comment for enableSimpleNullHandling
1 parent 3e6915f commit 8a596b1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/storage/providers/SQLiteProvider.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import type StorageProvider from './types';
99
import utils from '../../utils';
1010
import type {KeyList, KeyValuePairList} from './types';
1111

12+
// By default, NitroSQLite does not accept nullish values due to current limitations in Nitro Modules.
13+
// This flag enables a feature in NitroSQLite that allows for nullish values to be passed to operations, such as "execute" or "executeBatch".
14+
// Simple null handling can potentially add a minor performance overhead,
15+
// since parameters and results from SQLite queries need to be parsed from and to JavaScript nullish values.
16+
// https://github.com/margelo/react-native-nitro-sqlite#sending-and-receiving-nullish-values
1217
enableSimpleNullHandling();
1318

1419
/**

0 commit comments

Comments
 (0)