Crates.io | postgresql_extensions |
lib.rs | postgresql_extensions |
version | 0.17.3 |
source | src |
created_at | 2024-08-01 19:41:37.897943 |
updated_at | 2024-11-12 20:20:42.136132 |
description | A library for managing PostgreSQL extensions |
homepage | |
repository | https://github.com/theseus-rs/postgresql-embedded |
max_upload_size | |
id | 1322429 |
size | 92,129 |
A configurable library for managing PostgreSQL extensions.
use postgresql_extensions::{get_available_extensions, Result};
#[tokio::main]
async fn main() -> Result<()> {
let extensions = get_available_extensions().await?;
Ok(())
}
use postgresql_extensions::Result;
use postgresql_extensions::blocking::get_available_extensions;
async fn main() -> Result<()> {
let extensions = get_available_extensions().await?;
Ok(())
}
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 |
Name | Description | Default? |
---|---|---|
portal-corp |
Enables PortalCorp PostgreSQL extensions | Yes |
steampipe |
Enables Steampipe PostgreSQL extensions | Yes |
tensor-chord |
Enables TensorChord PostgreSQL extensions | Yes |
postgresql_extensions
provides implementations for the following:
This crate uses #![forbid(unsafe_code)]
to ensure everything is implemented in 100% safe Rust.
Licensed under either of
at your option.
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.