drop_table#

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

Drop a table from the database.

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

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

Raises:

RuntimeError โ€“ If an error occurs while dropping the table

Return type:

None

??? example โ€œExampleโ€

```python from langchain_db2.db2vs import drop_table

drop_table(

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