NitroSQLite

Getting started

Choose React Native or NitroUI, install Nitro SQLite, and run your first query.

Nitro SQLite is a Nitro library for local SQLite databases. It runs on React Native and NitroUI through separate packages. Both packages share the database API, SQLite implementation, transactions, prepared statements, and result types.

SQLite stores your data in a local file. Opening a connection creates the file when needed. Closing the connection releases its resources and keeps the data for the next connection.

Choose your platform

Your appPackageStart here
React Native, including Expo native buildsreact-native-nitro-sqliteInstall on React Native, then run your first query.
NitroUInitro-sqliteInstall on NitroUI, then run your first query.

The packages use different Nitro versions and generated bindings. Choose the package for your app's runtime. See supported platforms for OS coverage and version requirements.

Both packages install from the alpha npm tag as 11.0.0 alpha releases. The stable 10.5.x release stays on the latest tag and supports React Native.

Use the shared docs

Start with databases and connections for SQLite fundamentals. The Concepts section covers tables, queries, transactions, and isolation.

After installation, the guides apply to both packages unless a page states a platform requirement. Use your platform's package name in imports. The API reference documents the shared SQLite methods and types.

The configuration pages explain React Native build options. The NitroUI installation guide describes its separate native build and storage settings.

Choose an optional ORM or query builder for Drizzle, TypeORM, MikroORM, or Kysely. Each host has its own companion packages and installation steps.

On this page