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★ 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
transactionfor dependent atomic work andexecuteBatchAsyncfor fixed bulk work. - Consume
rowsAffectedandinsertIdonly 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 |
Установить react-native-nitro-sqlite в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic