clear_table#

langchain_db2.db2vs.clear_table(client: Connection, table_name: str) โ†’ None[source]#

Remove all records from the table using TRUNCATE.

Parameters:
  • client (Connection) โ€“ The ibm_db_dbi connection object

  • table_name (str) โ€“ The name of the table to clear

Return type:

None

??? example โ€œExampleโ€

```python from langchain_db2.db2vs import clear_table

clear_table(

client=db_client, # ibm_db_dbi.Connection table_name=โ€TABLE_NAMEโ€,