{"library":"react-native-sqlite-2","type":"library","category":null,"description":"React Native SQLite 2 is a native SQLite3 plugin for React Native supporting iOS, Android, Windows, and macOS. It provides a WebSQL-compatible API and serves as a drop-in replacement for react-native-sqlite-storage, specifically solving issues with null characters (\\u0000) in string data and attachment storage that affected PouchDB compatibility. It uses sqlite-android to deliver a newer SQLite version on Android with support for JSON1, CTE, expression indexes, and FTS5. Current stable version: 3.6.3. Release cadence is irregular; maintained by craftzdog. Key differentiator: PouchDB-friendly due to proper handling of null characters and stable attachment storage, and a more up-to-date SQLite engine on Android.","language":"javascript","status":"active","version":"3.6.3","tags":["javascript","react-native","ios","android","pouchdb","sqlite","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install react-native-sqlite-2","imports":["import SQLite from 'react-native-sqlite-2'","const db = SQLite.openDatabase('test.db', '1.0', '', 1)","SQLite.deleteDatabase('test.db')"]},{"cmd":"yarn add react-native-sqlite-2","imports":[]},{"cmd":"pnpm add react-native-sqlite-2","imports":[]}],"homepage":"https://github.com/craftzdog/react-native-sqlite-2#readme","github":"https://github.com/craftzdog/react-native-sqlite-2","docs":null,"changelog":null,"pypi":null,"npm":"react-native-sqlite-2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}