Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop22 committed Jan 11, 2023
1 parent 8d77a6a commit cd7da45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ doctest = false
members = ["postgres-from-row-derive"]

[workspace.package]
version = "0.4.0"
version = "0.5.0"
authors = ["Remo Pas <[email protected]>"]
edition = "2021"
repository = "https://github.com/remkop22/postgres-from-row"
Expand All @@ -29,7 +29,7 @@ keywords = ["postgres", "postgres-tokio", "postgresql", "from-row", "mapper"]
categories = ["database", "parsing", "data-structures"]

[workspace.dependencies]
postgres-from-row-derive = { path = "postgres-from-row-derive", version = "=0.4.0" }
postgres-from-row-derive = { path = "postgres-from-row-derive", version = "=0.5.0" }

[dependencies]
tokio-postgres = { version = "0.7.7", default_features = false }
Expand Down
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@

Derive `FromRow` to generate a mapping between a struct and postgres rows.

This crate works with [postgres](<https://docs.rs/postgres>) by default.
This crate is compatible with both [postgres](<https://docs.rs/postgres>) and [tokio-postgres](<https://docs.rs/tokio-postgres>).

```toml
[dependencies]
postgres_from_row = "0.4.0"
postgres_from_row = "0.5.0"
```

If you want to use it with [tokio-postgres](<https://docs.rs/tokio-postgres>), enable it like so:

```toml
[dependencies]
postgres_from_row = { version = "0.4.0", default_features = false, features = ["tokio-postgres"] }
```
## Examples
```rust
use postgres_from_row::FromRow;
Expand Down

0 comments on commit cd7da45

Please sign in to comment.