mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
db.view_exists() method, needed by #1896
This commit is contained in:
parent
b29ccb59c7
commit
c588a89f26
3 changed files with 22 additions and 0 deletions
|
|
@ -909,6 +909,9 @@ The ``Database`` class also provides properties and methods for introspecting th
|
|||
``await db.table_exists(table)`` - boolean
|
||||
Check if a table called ``table`` exists.
|
||||
|
||||
``await db.view_exists(view)`` - boolean
|
||||
Check if a view called ``view`` exists.
|
||||
|
||||
``await db.table_names()`` - list of strings
|
||||
List of names of tables in the database.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue