custom transport for sqlx connections

Aperta
#4,307 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
mysql, postgresql, rust
Ambito
backend, databases

Direzione di ricerca

This is an additive API for custom AsyncRead+AsyncWrite transports on Postgres and MySQL connections, related to issues 4187, 4212 and 4281. Start from how sqlx currently opens TCP connections for those drivers and where a transport trait could be injected without breaking existing connect paths. Done means callers can supply a custom transport (for restricted networks or turmoil-style tests) and existing TCP/SQLite usage still works. No files or tests are named in the issue.

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

Descrizione

enhancement
I have found these related issues/pull requests

Relates to #4187, #4212 and #4281

Description

Currently there is no way to provide custom transport for connecting to Postgres or MySql servers using sqlx. This means if you are unable to connect over TCP, you need to use an alternative library.

Prefered solution

The preferred solution would be to support AsyncRead + AsyncWrite transport inputs (or equivalent) so any transport provider can be used. This will unblock users in restricted environments, or testing with libraries such as turmoil that use custom TCP.

Is this a breaking change? Why or why not?

No this should be purely an additive feature

Lingua principale
Rust
Stelle
17.5k
Fork
1.7k
Merge medio
1g 17h
PR unite (30g)
7

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 transact-rs/sqlx

Tutte le issue di transact-rs/sqlx

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.