Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Migrate warp-rust to use sqlx - #6354

Merged
NateBrady23 merged 1 commit into
TechEmpower:masterfrom
sugar700:warp-rust-sqlx
Feb 10, 2021
Merged

NateBrady23 merged 1 commit into
TechEmpower:masterfrom
sugar700:warp-rust-sqlx

Conversation

@sugar700

@sugar700 sugar700 commented Feb 9, 2021

Copy link
Copy Markdown
Contributor

In the past, warp-rust has used tokio-postgres which because it was compatible with async code and there was no real alternative to it - it wasn't great, but there was nothing better.

However, since then sqlx was released which provides a nicer interface than very low-level interface of tokio-postgres while providing nice features such as built-in connection pooling, automatic statement preparation and caching, fetching results directly into structures, and more.

In the past, warp-rust has used tokio-postgres which because
it was compatible with async code and there was no real
alternative to it - it wasn't great, but there was nothing
better.

However, since then sqlx was released which provides a nicer
interface than very low-level interface of tokio-postgres
while providing nice features such as built-in connection
pooling, automatic statement preparation and caching,
fetching results directly into structures, and more.
@NateBrady23
NateBrady23 merged commit d57aa89 into TechEmpower:master Feb 10, 2021
andreasrueb pushed a commit to digitallyinduced/IHP-FrameworkBenchmarks that referenced this pull request Apr 13, 2021
In the past, warp-rust has used tokio-postgres which because
it was compatible with async code and there was no real
alternative to it - it wasn't great, but there was nothing
better.

However, since then sqlx was released which provides a nicer
interface than very low-level interface of tokio-postgres
while providing nice features such as built-in connection
pooling, automatic statement preparation and caching,
fetching results directly into structures, and more.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants