Polymorphic backend version for withPostgresqlPool and co
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Start by locating withPostgresqlPool and related APIs in the persistent-postgresql package, then read the Pool SqlBackend type and how SqlReadBackend is defined and used. Determine whether the API can expose a suitably constrained polymorphic backend while preserving existing callers; done means the interface provides the requested read-only instantiation and relevant package checks pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
persistent-postgresql currently exposes an interface which only provides Pool SqlBackend. However, this makes it so that we cannot guarantee that callers inside will perform no write operations. If the interface could instead be changed to provide a polymorphic backend with proper constraints, we could then potentially instantiate to SqlReadBackend and have some slightly stronger guarantees about what kinds of operations are happening inside.
Is there some reason to not do that?
EDIT: I just realised I can just coerce the pool to get what I want, but I think providing the nicer interface out of the box would still be more convenient (and potentially easier to grasp for newcomers)
- Lenguaje dominante
- Haskell
- Estrellas
- 486
- Forks
- 307
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de yesodweb/persistent
-
use aeson >= 2.3.0.0 to avoid HSEC-2026-0007Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
yesodweb/persistent#1635 · 1 comentario · 1 reacción ·
-
Typos in Documentation for Database.Persist.QuasiPosiblemente ocupada @000wahab000 la tomó hace 63 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
yesodweb/persistent#1634 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
yesodweb/persistent#1642 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
yesodweb/persistent#1641 ·
-
Regression since bumping resource-pool from `0.4.0.0` to `0.5.x`Posiblemente ocupada @swamp-agr la tomó hace 73 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
yesodweb/persistent#1636 ·
Todos los issues de yesodweb/persistent
Issues similares
-
bug dependencies
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
alunduil/network-arbitrary#251 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
haskell/statistics#235 ·
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
pkg:crucible-mir type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100