Remove all records from the table using TRUNCATE.
clear_table(
client: Connection,
table_name: str,
) -> Nonefrom langchain_db2.db2vs import clear_table
clear_table(
client=db_client, # ibm_db_dbi.Connection
table_name="TABLE_NAME",
)| Name | Type | Description |
|---|---|---|
client* | Connection | The ibm_db_dbi connection object |
table_name* | str | The name of the table to clear |