Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
/ pgstac-rs Public archive

Rust interface to pgstac

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

stac-utils/pgstac-rs

pgstac-rs

GitHub Workflow Status docs.rs Crates.io Contributor Covenant

This code in this repository has been moved to https://github.com/stac-utils/stac-rs (stac-utils/stac-rs#246)*

Rust interface for pgstac.

Usage

In your Cargo.toml:

[dependencies]
pgstac = "0.0.6"

See the documentation for more.

Testing

pgstac-rs needs a blank pgstac database for testing. The repo comes with a docker-compose to run one. To test:

docker-compose up -d
cargo test
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

License

pgstac-rs is dual-licensed under both the MIT license and the Apache license (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details.

About

Rust interface to pgstac

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Languages