Crate postgresql_extensions

source ·
Expand description

§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

#[cfg(feature = "blocking")] {
use postgresql_extensions::Result;
use postgresql_extensions::blocking::get_available_extensions;

let extensions = get_available_extensions().unwrap();
}

§Feature flags

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

The following features are available:

NameDescriptionDefault?
blockingEnables the blocking APINo
native-tlsEnables native-tls supportYes
rustls-tlsEnables rustls-tls supportNo

§Repositories

NameDescriptionDefault?
steampipeEnables Steampipe PostgreSQL extensionsNo
tensor-chordEnables TensorChord PostgreSQL extensionsNo

§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.

Re-exports§

Modules§

Structs§

Enums§

  • PostgreSQL extensions errors

Type Aliases§

  • PostgreSQL extensions result type