0.3.1 (latest) 0.3.0 0.2.3

    AlloyDBIndexStore(
        key: object,
        engine: llama_index_alloydb_pg.engine.AlloyDBEngine,
        index_store: llama_index_alloydb_pg.async_index_store.AsyncAlloyDBIndexStore,
    )

Index Store Table stored in an AlloyDB for PostgreSQL database.

## Methods

### AlloyDBIndexStore

    AlloyDBIndexStore(
        key: object,
        engine: llama_index_alloydb_pg.engine.AlloyDBEngine,
        index_store: llama_index_alloydb_pg.async_index_store.AsyncAlloyDBIndexStore,
    )

AlloyDBIndexStore constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `object` Key to prevent direct constructor usage. |
| `engine` | `AlloyDBEngine` Database connection pool. |
| `index_store` | `AsyncAlloyDBIndexStore` The async only IndexStore implementation |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `Exception` | If constructor is directly called by the user. |

### aadd_index_struct

    aadd_index_struct(
        index_struct: llama_index.core.data_structs.data_structs.IndexStruct,
    ) -> None

Add an index struct.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index_struct` | `IndexStruct` index struct |

### add_index_struct

    add_index_struct(
        index_struct: llama_index.core.data_structs.data_structs.IndexStruct,
    ) -> None

Add an index struct.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index_struct` | `IndexStruct` index struct |

### adelete_index_struct

    adelete_index_struct(key: str) -> None

Delete an index struct.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `str` index struct key |

### aget_index_struct

    aget_index_struct(
        struct_id: typing.Optional[str] = None,
    ) -> typing.Optional[llama_index.core.data_structs.data_structs.IndexStruct]

Get an index struct.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `struct_id` | `Optional[str]` index struct id |

### aindex_structs

    aindex_structs() -> list[llama_index.core.data_structs.data_structs.IndexStruct]

Get all index structs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `list[IndexStruct]` | index structs |

### async_add_index_struct

    async_add_index_struct(
        index_struct: llama_index.core.data_structs.data_structs.IndexStruct,
    ) -> None

Add an index struct.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index_struct` | `IndexStruct` index struct |

### async_index_structs

    async_index_structs() -> (
        list[llama_index.core.data_structs.data_structs.IndexStruct]
    )

Get all index structs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `list[IndexStruct]` | index structs |

### create

    create(
        engine: llama_index_alloydb_pg.engine.AlloyDBEngine,
        table_name: str,
        schema_name: str = "public",
    ) -> llama_index_alloydb_pg.index_store.AlloyDBIndexStore

Create a new AlloyDBIndexStore instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `engine` | `AlloyDBEngine` AlloyDB engine to use. |
| `table_name` | `str` Table name that stores the index metadata. |
| `schema_name` | `str` The schema name where the table is located. Defaults to "public" |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `ValueError` | If the table provided does not contain required schema. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AlloyDBIndexStore` | A newly created instance of AlloyDBIndexStore. |

### create_sync

    create_sync(
        engine: llama_index_alloydb_pg.engine.AlloyDBEngine,
        table_name: str,
        schema_name: str = "public",
    ) -> llama_index_alloydb_pg.index_store.AlloyDBIndexStore

Create a new AlloyDBIndexStore sync instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `engine` | `AlloyDBEngine` AlloyDB engine to use. |
| `table_name` | `str` Table name that stores the index metadata. |
| `schema_name` | `str` The schema name where the table is located. Defaults to "public" |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `ValueError` | If the table provided does not contain required schema. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AlloyDBIndexStore` | A newly created instance of AlloyDBIndexStore. |

### delete_index_struct

    delete_index_struct(key: str) -> None

Delete an index struct.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `str` index struct key |

### get_index_struct

    get_index_struct(
        struct_id: typing.Optional[str] = None,
    ) -> typing.Optional[llama_index.core.data_structs.data_structs.IndexStruct]

Get an index struct.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `struct_id` | `Optional[str]` index struct id |

### index_structs

    index_structs() -> list[llama_index.core.data_structs.data_structs.IndexStruct]

Get all index structs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `list[IndexStruct]` | index structs |