UNPKG

react-native-sst-storage-db

Version:

A powerful file-based MongoDB-like database for React Native. Single JSON file storage with collections, advanced querying, indexing, and atomic operations. No AsyncStorage dependency.

22 lines (20 loc) 565 B
/** * react-native-sst-storage-db * A MongoDB-like local storage library for React Native * * Usage: * import { SSTStorage } from 'react-native-sst-storage-db'; * * const storage = new SSTStorage(); * await storage.initialize(); * const users = storage.collection('users'); * await users.insert({ name: 'John', age: 30 }); */ const SSTStorage = require('./lib/SSTStorage'); const Collection = require('./lib/Collection'); module.exports = { SSTStorage, Collection, // Default export for convenience default: SSTStorage };