patito.Database.__contains__
- Database.__contains__(table)
Return
True
if the database contains a table with the given name.- Parameters
table (
str
) – The name of the table to be checked for.
Examples
>>> import patito as pt >>> db = pt.Database() >>> "my_table" in db False >>> db.to_relation("select 1 as a, 2 as b").create_table(name="my_table") >>> "my_table" in db True
- Return type
bool