Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: bind named SQL parameters

Aperta
#402 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, react-native, sqlite

Direzione di ricerca

Start by tracing the existing positional binding path for ordinary queries, prepared statements, and batch commands, including the shared native binding and error handling. Review the related issues for context, then identify the sync and async entry points and platform-specific paths. Done means named and positional bindings coexist across iOS and Android with the specified placeholder, missing-value, error, reuse, and batch behavior covered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:api area:runtime enhancement

Query parameters are currently positional arrays. SQL that uses named placeholders must be mapped to positions by callers, which complicates reusable queries and adapters for other SQLite runtimes. Issue #62 asked for named bindings alongside the existing positional API.

Accept a record of names to SQLite values for ordinary queries, prepared statements, and batch commands while retaining positional arrays. Resolve each name with SQLite's parameter-index API and reuse the shared native binding and error handling. Specify the accepted key format for :name, @name, $name, and numbered placeholders; reject unknown keys and document how missing values behave. Do not log parameter values in errors.

Cover repeated named placeholders, mixed placeholder styles, NULL and undefined, BLOBs, sync and async calls, prepared-statement reuse, and batches on iOS and Android. Keep this separate from array-shaped result rows; the two API changes solve different problems.

Related: #62 and #382. The Node test-mock proposal in #395 already tracks the testing-adapter part of #62.

Lingua principale
C
Stelle
579
Fork
53
Merge medio
2g 5h
PR unite (30g)
67

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di margelo/react-native-nitro-sqlite

Tutte le issue di margelo/react-native-nitro-sqlite

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.