-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove SQLx in favor of tokio-postgres. SQLx has had many issues. From the poor design of the query engine to issues with transcations and deserializing. The idea of compile time queries is pretty good but the SQLx implementation is just very sub par. Most features are not supported. --------- Co-authored-by: Lennart Kloock <lennart.kloock@protonmail.com>
- Loading branch information
1 parent
dd59b5b
commit a512725
Showing
165 changed files
with
3,000 additions
and
2,635 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
mod non_null; | ||
mod protobuf; | ||
mod ulid; | ||
mod query_builder; | ||
|
||
pub use non_null::*; | ||
pub use deadpool_postgres::Pool; | ||
pub use postgres_from_row::FromRow; | ||
pub use postgres_types::Json; | ||
pub use protobuf::*; | ||
pub use ulid::*; | ||
pub use query_builder::*; | ||
pub use {deadpool_postgres, postgres_from_row, postgres_types, tokio_postgres}; | ||
|
||
#[inline] | ||
pub fn json<T>(row: Json<T>) -> T { | ||
row.0 | ||
} | ||
|
||
#[inline] | ||
pub fn non_null_vec<T>(vec: Vec<Option<T>>) -> Vec<T> { | ||
vec.into_iter().flatten().collect() | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.