SQLite query helper library for expo-sqlite providing a simplified API for common database operations like create table, insert, search, update, and delete. Version 1.1.4 (latest as of 2022) offers a promise-based async interface and TypeScript types. It wraps expo-sqlite to reduce boilerplate but has limited documentation and no active maintenance. Key differentiators: minimal abstraction, direct result objects with insertId/rowsAffected/lastQuery, and support for batch inserts. However, it lacks full SQL flexibility and is not recommended for complex queries.
npm install expo-sqlite-query-helperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize database, create a table, insert a row, and select all rows using promise-based async/await.
Call Database('dbName') at the top level of your component or module before using createTable, insert, etc.Access results via result.row._array instead of expecting result.row to be an array.
Always pass an array: insert([{...}], 'table').Consider using expo-sqlite's newer async API directly or switch to a maintained library.
Pin expo-sqlite to 8.4.x or upgrade library if compatible version exists.
Ensure Database('dbName') is called before any query, and the table exists.Check that createTable is executed successfully before inserting/selecting.
Use correct import: import { insert } from 'expo-sqlite-query-helper'.Use await or .then() to get the result before accessing properties.