9 releases

0.17.3 Nov 12, 2024
0.17.2 Oct 1, 2024
0.17.0 Sep 28, 2024
0.16.3 Sep 4, 2024
0.15.0 Aug 1, 2024

#1982 in Database interfaces

Download history 19/week @ 2024-08-16 140/week @ 2024-08-23 119/week @ 2024-08-30 22/week @ 2024-09-06 22/week @ 2024-09-13 46/week @ 2024-09-20 550/week @ 2024-09-27 119/week @ 2024-10-04 40/week @ 2024-10-11 18/week @ 2024-10-18 100/week @ 2024-11-08 24/week @ 2024-11-15 4/week @ 2024-11-22 2/week @ 2024-11-29

130 downloads per month

(Apache-2.0 OR MIT) AND PostgreSQL

595KB
15K SLoC

PostgreSQL Extensions

ci Documentation Code Coverage Benchmarks Latest version License Semantic Versioning

A configurable library for managing PostgreSQL extensions.

Examples

Asynchronous API

use postgresql_extensions::{get_available_extensions, Result};

#[tokio::main]
async fn main() -> Result<()> {
    let extensions = get_available_extensions().await?;
    Ok(())
}

Synchronous API

use postgresql_extensions::Result;
use postgresql_extensions::blocking::get_available_extensions;

async fn main() -> Result<()> {
    let extensions = get_available_extensions().await?;
    Ok(())
}

Feature flags

postgresql_extensions uses [feature flags] to address compile time and binary size uses.

The following features are available:

Name Description Default?
blocking Enables the blocking API No
native-tls Enables native-tls support Yes
rustls-tls Enables rustls-tls support No

Repositories

Name Description Default?
portal-corp Enables PortalCorp PostgreSQL extensions Yes
steampipe Enables Steampipe PostgreSQL extensions Yes
tensor-chord Enables TensorChord PostgreSQL extensions Yes

Supported platforms

postgresql_extensions provides implementations for the following:

Safety

This crate uses #![forbid(unsafe_code)] to ensure everything is implemented in 100% safe Rust.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~23–38MB
~590K SLoC