Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

feat: bind named SQL parameters

Abierto
#402 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, react-native, sqlite

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C
Estrellas
579
Forks
53
Merge medio
2 d 5 h
PR fusionados (30 d)
67

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de margelo/react-native-nitro-sqlite

Todos los issues de margelo/react-native-nitro-sqlite

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.