CorgiDB.utils.delete_table
CorgiDB.utils.delete_table(name: str, keep_table: bool=False)
as the name stated this method will delete the table
Parameters
name : str
name of the table, e.g.,
"Personnel" , "Students"
keep_table : bool
keep the table or not if set as
True
only the data will be deleted
Examples
from corgidb import CorgiDB
# Connect CorgiDB to db.sqlite
cdb = CorgiDB(database_path="db.sqlite")
# Delete a Table
tb = cdb.utils.delete_table(name="Employee")
Last updated