Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

react-native-nitro-sqlite

БесплатноБез исполняемых скриптовНе проверен

Guides developers using the public react-native-nitro-sqlite API for connections, queries, transactions, batches, migrations, and TypeORM. Use when a React…

margeloот margelo★ 185 звёзд на GitHub

Об этом скилле

react-native-nitro-sqlite

Use this skill as a router. Read only the reference that matches the task before writing code.

Quick start

import { open } from 'react-native-nitro-sqlite'
import type { QueryResultRow } from 'react-native-nitro-sqlite'

type UserRow = QueryResultRow & {
  id: number
  name: string
}

const db = open({ name: 'app.sqlite' })

await db.executeAsync(`
  CREATE TABLE IF NOT EXISTS users (
    id INTEGER PRIMARY KEY,
    name TEXT NOT NULL
  )
`)

const insert = await db.executeAsync(
  'INSERT INTO users (name) VALUES (?)',
  ['Marc'],
)
if (insert.insertId === undefined) {
  throw new Error('Insert did not return a row id')
}

const { results } = await db.executeAsync<UserRow>(
  'SELECT id, name FROM users WHERE id = ?',
  [insert.insertId],
)

Operating rules

  • Prefer the connection returned by open({ name, location? }); reuse one connection per database name.
  • Bind values through ? parameters. Never interpolate user input into SQL.
  • Prefer async APIs for work that may block the JS thread.
  • Use transaction for dependent atomic work and executeBatchAsync for fixed bulk work.
  • Consume rowsAffected and insertId only from the write result that produced them.
  • Treat row generics as compile-time assertions; validate untrusted data at runtime.
  • Keep schema changes in explicit, versioned migrations.

References

Task Read
Installation, native options, FTS5/Geopoly, system SQLite, app groups, Expo setup.md
Open, reuse, close, delete, locations, existing database files connections.md
Execute SQL, bind parameters, type rows, inspect results, blobs and booleans queries.md
Run dependent work atomically with automatic commit or rollback transactions.md
Run batches or load constrained one-command-per-line SQL files batch-and-files.md
Choose sync/async APIs and understand batch/transaction serialization concurrency.md
Attach another database and query across schemas attach-detach.md
Configure the TypeORM adapter safely typeorm.md
Handle errors or migrate from react-native-quick-sqlite v8 migration-and-errors.md
Полный SKILL.md на GitHub

Установить react-native-nitro-sqlite в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/attach-detach.mdreferences/batch-and-files.mdreferences/concurrency.mdreferences/connections.mdreferences/migration-and-errors.mdreferences/queries.mdreferences/setup.mdreferences/transactions.mdreferences/typeorm.md

FAQ

Что делает скилл react-native-nitro-sqlite?

Guides developers using the public react-native-nitro-sqlite API for connections, queries, transactions, batches, migrations, and TypeORM. Use when a React Native project uses react-native-nitro-sqlite or migrates from react-native-quick-sqlite.

Как установить скилл react-native-nitro-sqlite?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл react-native-nitro-sqlite запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить react-native-nitro-sqlite с