-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Implementation of `ErrorKind::DatabaseError`. - Implementation of **From** **sqlx::Error** for `PaginationError`. - Paginate results from a SQL query into a `Page` from a PostgreSQL database using *sqlx*. Implementation of the **PgSqlxPagination** for `QueryBuilder`. Only available on ***pg-sqlx*** feature is enabled. - Including unitary test for the **Debug** implementation for `Book`. - Including checking project format in ci.yml. - Implementation of DB migrations with sqlx for the creation of the postgres test database. - Implementation of integration test for pagination with pg-sqlx in CI. - Changing the implementation of **Clone** and **Debug** using derive to implement directly in `ErrorKind` and `PaginationError`. - Changing the implementation of **Clone** and **Debug** using derive to implement directly in `Page` and `Book`. - Updating unit tests to get 100% coverage on the errors module. - Updating project documentation to include new implementations, utilities and development section.
- Loading branch information
Showing
19 changed files
with
815 additions
and
96 deletions.
There are no files selected for viewing
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,7 @@ | ||
[package] | ||
name = "page-hunter" | ||
description = "The pagination powerhouse, built with Rust" | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
authors = [ | ||
"Juan Manuel Tamayo <[email protected]>", | ||
] | ||
|
@@ -21,10 +21,15 @@ categories = [ | |
] | ||
|
||
[dependencies] | ||
serde = { version = "1.0.202", features = ["derive"], optional = true } | ||
serde = { version = "1.0.202", optional = true } | ||
sqlx = { version = "0.7.4", features = ["runtime-tokio", "uuid", "time", "chrono", "json", "postgres"], optional = true } | ||
|
||
[dev-dependencies] | ||
serde_json = { version = "1.0.117" } | ||
tokio = { version = "1.37.0", features =["full"] } | ||
uuid = { version = "1.8.0" } | ||
time = { version = "0.3.36" } | ||
|
||
[features] | ||
serde = ["dep:serde"] | ||
pg-sqlx = ["dep:sqlx"] |
Oops, something went wrong.