# use-pg-extension
PostgreSQL extension metadata primitives for RustUse.
This crate provides extension names, version labels, schema metadata, relocatable labels, and safe generic constants for common extension names. It does not depend on or implement any extension functionality.
## Example
```rust
use use_pg_extension::{PgExtension, PgExtensionName, PgExtensionVersion, PGCRYPTO_EXTENSION};
use use_pg_schema::PgSchemaName;
let extension = PgExtension::new(PgExtensionName::pgcrypto())
.with_version(PgExtensionVersion::new("1.3")?)
.with_schema(PgSchemaName::public());
assert_eq!(PGCRYPTO_EXTENSION, "pgcrypto");
assert_eq!(extension.name().as_str(), "pgcrypto");
assert_eq!(extension.version().map(PgExtensionVersion::as_str), Some("1.3"));
# Ok::<(), use_pg_extension::PgExtensionError>(())
```