CorgiDB.utils.get_table
CorgiDB.utils.get_table(name: str)
this method similar to CorgiDB.utils.create_table
but instead of creating a new table this method will return Table
objects of already existed Table
Parameters
name : str
name of the table, e.g.,
"Personnel" , "Student"
Returns
out: Table
CorgiDB's Table object for us to manipulate the table getting it
Examples
from corgidb import CorgiDB
# Connect CorgiDB to db.sqlite
cdb = CorgiDB(database_path="db.sqlite")
# Get the Table
tb = cdb.utils.get_table(
name="Employee"
)
Last updated