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

Consider how to resolve the double await of first_row() and all()

Abierto
#257 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
python
Área
api

Línea de trabajo

Start by reading the session execution API and the RequestResult methods all() and first_row() to understand where each await can send requests. Compare the proposed Session.fetch_one(), fetch_all() and fetch_value() sugar with the existing methods. Done means choosing and documenting an approach that makes these reads one await without hiding that they may send more requests.

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

Descripción

API-breaking

The common reads take two awaits: await (await session.execute(q)).all(). The second await is honest, because all() and first_row() can send more requests. We need to think about how to make the one-row, all-rows and one-value reads one await without hiding that.

One option: Session.fetch_one(), fetch_all() and fetch_value() as sugar, and keep the methods on RequestResult.

Lenguaje dominante
Rust
Estrellas
6
Forks
8
Merge medio
2 d 9 h
PR fusionados (30 d)
15

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

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 scylladb/python-rs-driver

Todos los issues de scylladb/python-rs-driver

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.