compile-time macro support for amazon aurora dsql
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Start in sqlx-postgres/src/connection/describe.rs around the EXPLAIN/EXECUTE path (near L526) and the CockroachDB-style detection that skips EXPLAIN (L416–L422). Determine how Aurora DSQL can be identified and routed to the non-EXECUTE describe path so query_as! and cargo sqlx prepare work. Done when simple parameterized queries describe successfully against DSQL without the unsupported Execute error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have found these related issues/pull requests
maybe relates to https://github.com/launchbadge/sqlx/pull/3640 ?
Description
I'm using sqlx with amazon aurora dsql, which is a subset of postgres.
When trying to use the query_as! macro, as well as preparing for offline mode with cargo sqlx prepare, I encounter the error error returned from database: unsupported statement: Execute for even simple queries such as sqlx::query_as!(MyEntity, "SELECT * FROM mytable WHERE id=$1", id) .
After investigating for a few hours (and I'm new to sqlx so please lmk if I'm entirely off the mark), think I pinpointed the problem into the describe logic on sqlx-postgres , which uses EXPLAIN ... EXECUTE ... if EXPLAIN is supported by the db: dsql supports EXPLAIN but not with EXECUTE.
Prefered solution
I don't think I understand enough of what could be an appropriate way to add support in this case, but perhaps this could fall into a case similar to cockroachdb and others, which I see in the same file are detected as not supporting explain and use alternative logic?
would be great to be able to use compile-time checked queries in dsql too! 🙏 thank you
Is this a breaking change? Why or why not?
I wouldn't think so - but as per above, I don't have enough in-depth knowledge of sqlx to understand whether an appropriate solution needs more complex changes.
- Lingua principale
- Rust
- Stelle
- 17.5k
- Fork
- 1.7k
- Merge medio
- 1g 17h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di transact-rs/sqlx
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
transact-rs/sqlx#4466 ·
I maintainer di solito rispondono entro 4 giorni
-
MySQL: ENUM and SET columns with a binary collation are named BINARY or CHARForse già presa @CodeMasterXZT l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
transact-rs/sqlx#4453 ·
I maintainer di solito rispondono entro 4 giorni
-
Postgres text arrays: a quoted "NULL" element is decoded as SQL NULLForse già presa @MinJaeRun l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
transact-rs/sqlx#4452 ·
I maintainer di solito rispondono entro 4 giorni
-
Fetch stream ends after first error using query macrosForse già presa @barry3406 l’ha presa 206 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
transact-rs/sqlx#4126 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
transact-rs/sqlx#3963 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di transact-rs/sqlx
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
OpenZeppelin/openzeppelin-relayer#967 ·
I maintainer di solito rispondono entro 1 giorno
-
DecisionOutcome::label() / n_dosed(): engine-side mapping so downstream needs no wildcard armAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
src/runs.rs:1987: a missing --source-run-id now answers 400 "Source run ... does not exist", not 404Apertanightly-audit
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
antithesishq/snouty#602 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
libnativeapi/nativeapi#21 ·