MCPcopy Create free account
hub / github.com/datastax/astrapy / create_table

Method create_table

astrapy/data/database.py:3426–3439  ·  view source on GitHub ↗
(
        self,
        name: str,
        *,
        definition: CreateTableDefinition | dict[str, Any],
        keyspace: str | None = None,
        if_not_exists: bool | None = None,
        table_admin_timeout_ms: int | None = None,
        request_timeout_ms: int | None = None,
        timeout_ms: int | None = None,
        embedding_api_key: str | EmbeddingHeadersProvider | UnsetType = _UNSET,
        reranking_api_key: str | RerankingHeadersProvider | UnsetType = _UNSET,
        spawn_api_options: APIOptions | UnsetType = _UNSET,
    )

Source from the content-addressed store, hash-verified

3424
3425 @overload
3426 async def create_table(
3427 self,
3428 name: str,
3429 *,
3430 definition: CreateTableDefinition | dict[str, Any],
3431 keyspace: str | None = None,
3432 if_not_exists: bool | None = None,
3433 table_admin_timeout_ms: int | None = None,
3434 request_timeout_ms: int | None = None,
3435 timeout_ms: int | None = None,
3436 embedding_api_key: str | EmbeddingHeadersProvider | UnsetType = _UNSET,
3437 reranking_api_key: str | RerankingHeadersProvider | UnsetType = _UNSET,
3438 spawn_api_options: APIOptions | UnsetType = _UNSET,
3439 ) -> AsyncTable[DefaultRowType]: ...
3440
3441 @overload
3442 async def create_table(

Callers

nothing calls this directly

Calls 9

_get_driver_commanderMethod · 0.95
get_tableMethod · 0.95
_TimeoutContextClass · 0.90
async_requestMethod · 0.80
as_dictMethod · 0.45
coerceMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected