BackendDatabases
Expo SQLite
Connect from React Native using Expo SQLite.
Use SQLite in React Native apps with Expo SQLite.
import { createEngine } from '@superapp/backend'
import { expoSqliteProvider } from '@superapp/backend/databases/expo-sqlite'
const engine = createEngine({
providers: [expoSqliteProvider],
connections: {
main: { type: 'expo-sqlite', databaseName: 'app.db' },
},
})Install
npx expo install expo-sqliteConnection Options
| Option | Type | Description |
|---|---|---|
databaseName | string | Name of the SQLite database file |