Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stac-utils/pgstac-rs
Rust interface to pgstac
https://github.com/stac-utils/pgstac-rs
Last synced: 3 months ago
JSON representation
Rust interface to pgstac
- Host: GitHub
- URL: https://github.com/stac-utils/pgstac-rs
- Owner: stac-utils
- License: apache-2.0
- Archived: true
- Created: 2023-01-07T16:25:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-27T22:30:59.000Z (6 months ago)
- Last Synced: 2024-07-01T06:14:22.906Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 58.6 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT
Awesome Lists containing this project
- awesome-earthobservation-code - pgstac-rs - `Rust` interface to pgstac (`Python` processing of optical imagery (non deep learning) / Cloud Native Geospatial)
README
# pgstac-rs
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/stac-utils/pgstac-rs/ci.yml?branch=main&style=for-the-badge)](https://github.com/stac-utils/pgstac-rs/actions/workflows/ci.yml)
[![docs.rs](https://img.shields.io/docsrs/pgstac?style=for-the-badge)](https://docs.rs/pgstac/latest/pgstac/)
[![Crates.io](https://img.shields.io/crates/v/pgstac?style=for-the-badge)](https://crates.io/crates/pgstac)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg?style=for-the-badge)](./CODE_OF_CONDUCT)**This code in this repository has been moved to ()***
Rust interface for [pgstac](https://github.com/stac-utils/pgstac).
## Usage
In your `Cargo.toml`:
```toml
[dependencies]
pgstac = "0.0.6"
```See the [documentation](https://docs.rs/pgstac) for more.
## Testing
**pgstac-rs** needs a blank **pgstac** database for testing.
The repo comes with a [docker-compose](./docker-compose.yml) to run one.
To test:```shell
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:```shell
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](./LICENSE-APACHE) and [LICENSE-MIT](./LICENSE-MIT) for details.