12 releases

0.2.2 Nov 12, 2024
0.1.2 Sep 6, 2024
0.1.0 Apr 29, 2024
0.0.5 Sep 25, 2023
0.0.3 Jan 8, 2023

#435 in Database interfaces

Download history 120/week @ 2024-08-09 24/week @ 2024-08-16 1/week @ 2024-08-30 167/week @ 2024-09-06 236/week @ 2024-09-13 128/week @ 2024-09-20 47/week @ 2024-09-27 14/week @ 2024-10-04 2/week @ 2024-10-11 3/week @ 2024-10-18 5/week @ 2024-11-01 107/week @ 2024-11-08 23/week @ 2024-11-15 6/week @ 2024-11-22

141 downloads per month
Used in 2 crates

MIT/Apache

1.5MB
6.5K SLoC

pgstac

GitHub Workflow Status docs.rs Crates.io Contributor Covenant

Rust interface for pgstac.

Usage

In your Cargo.toml:

[dependencies]
pgstac = "0.2"

See the documentation for more.

Testing

pgstac needs a blank pgstac database for testing, so is not part of the default workspace build. To test:

docker compose up -d
cargo test -p pgstac
docker compose down

Each test is run in its own transaction, which is rolled back after the test.

Customizing the test database connection

By default, the tests will connect to the database at postgresql://username:password@localhost:5432/postgis. If you need to customize the connection information for whatever reason, set your PGSTAC_RS_TEST_DB environment variable:

PGSTAC_RS_TEST_DB=postgresql://otherusername:otherpassword@otherhost:7822/otherdbname cargo test

Other info

This crate is part of the stac-rs monorepo, see its README for contributing and license information.

Dependencies

~18–31MB
~492K SLoC