aito.client.requests.modify_operations.Insert
- class aito.client.requests.modify_operations.Insert(table: str, entries: Dict | List[Dict])
Bases:
ModifyOperationInsert operation for the Modify API.
Example:
# Insert single entry Insert("products", {"id": "1", "name": "Apple"}) # Insert multiple entries Insert("products", [{"id": "1"}, {"id": "2"}])
- Parameters:
table (str) – The name of the table to insert into
entries (Union[Dict, List[Dict]]) – A single entry dict or a list of entry dicts to insert
Methods
to_query()Convert the operation to a query dictionary.
- to_query() Dict
Convert the operation to a query dictionary.