aito.api.create_table

aito.api.create_table(client: aito.client.aito_client.AitoClient, table_name: str, schema: Union[aito.schema.AitoTableSchema, Dict])

create a table with the specified table name and schema

update the table if the table already exists and does not contain any data

Note

requires the client to be setup with the READ-WRITE API key

Parameters
  • client (AitoClient) – the AitoClient instance

  • table_name (str) – the name of the table

  • schema (an AitoTableSchema object or a Dict, optional) – Aito table schema