# Extension

> **Class** in `langchain_azure_postgresql`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-postgresql/common/_shared/Extension)

Model representing a PostgreSQL extension.

:param ext_name: Name of the extension to be created, checked or dropped.
:type ext_name: str
:param ext_version: Optional version of the extension to be created or checked.
:type ext_version: str | None
:param schema_name: Optional schema name where the extension should be created
                    or checked.
:type schema_name: str | None
:param cascade: Whether to automatically install the extension dependencies or
                drop the objects that depend on the extension.
:type cascade: bool

## Signature

```python
Extension()
```

## Extends

- `BaseModel`

## Properties

- `ext_name`
- `ext_version`
- `schema_name`
- `cascade`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/607b649e909f217be20d7a50804ca11534c08eea/libs/azure-postgresql/src/langchain_azure_postgresql/common/_shared.py#L565)