pgstac

Crates.iopgstac
lib.rspgstac
version
sourcesrc
created_at2023-01-07 21:13:57.260021+00
updated_at2025-01-14 14:28:38.156851+00
descriptionRust interface for pgstac
homepagehttps://stac-utils.github.io/stac-rs
repositoryhttps://github.com/stac-utils/stac-rs
max_upload_size
id753250
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Pete Gadomski (gadomski)

documentation

README

pgstac

GitHub Workflow Status docs.rs Crates.io Contributor Covenant

Rust interface for pgstac.

Usage

In your Cargo.toml:

[dependencies]
pgstac = "0.3"

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.

Commit count: 847

cargo fmt