A fully typed TypeScript ORM for SQLite in React Native and Expo environments (v0.2.0). It provides a LINQ-like query builder for SELECT, INSERT, UPDATE, DELETE operations and supports multiple SQLite backends like react-native-sqlite-storage, expo-sqlite, and even custom API contexts. The library focuses on type safety, bulk save operations, optional encryption, and a custom useQuery hook. Unlike other ORMs, it abstracts away the specific database driver, allowing flexible switching without code changes.
npm install react-native-ts-sqlite-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows defining an Entity class, initializing DbContext with a driver, saving an entity, and querying with a condition using the Query builder.
Install one of the supported drivers: npm install react-native-sqlite-storage or expo-sqlite.
Add `static get tableName() { return 'your_table_name'; }` to your entity class.Use import statements instead of require(). Ensure your tsconfig has "module": "esnext" or similar.
If you need Entity instances, use the `get` method or iterate and construct entities manually.
Run: npm install react-native-sqlite-storage (or expo-sqlite) depending on your project.
Use `import { Entity } from 'react-native-ts-sqlite-orm'`.Add `static get tableName() { return 'users'; }` inside the User class.Add "type": "module" to package.json or ensure tsconfig.module is set to "commonjs" incorrectly (should be "esnext").