NitroSQLite
Guides

AI coding agents

Give coding agents the NitroSQLite skill and check generated code against the current API.

Give your coding agent the NitroSQLite skill when it works with react-native-nitro-sqlite. The skill points to short references for setup, connections, queries, transactions, batches, concurrency, TypeORM, and migration from react-native-quick-sqlite. Ask the agent to read the reference that matches its task before changing code.

To install it for your agents, run npx skills add margelo/react-native-skills --skill react-native-nitro-sqlite. Check the API reference against your installed package version when an example or generated call differs from the package types.

For NitroUI native setup, use the NitroUI installation guide.

When reviewing generated code, check that it:

  • Opens a connection with open({ name }) and uses that connection for queries.
  • Binds values with ? parameters instead of inserting user input into SQL strings.
  • Uses the tx object for every database operation inside a transaction callback. Awaiting a queued operation on the same connection there can deadlock.
  • Uses async operations for work that could block the JavaScript thread.

For these cases, see parameters and results, transactions, and sync and async.

On this page

No Headings