Skip to content

Commit

Permalink
Correct docstring for Connection.table_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Sep 9, 2024
1 parent 7474032 commit 503045e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions apsw/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1761,8 +1761,9 @@ class Connection:
def table_exists(self, dbname: Optional[str], table_name: str) -> bool:
"""Returns True if the named table exists, else False.
`dbname` is `main`, `temp`, the name in `ATTACH <https://sqlite.org/lang_attach.html>`__,
or None to search all databases
``dbname`` is ``main``, ``temp``, the name in `ATTACH
<https://sqlite.org/lang_attach.html>`__, or None to search all
databases
Calls: `sqlite3_table_column_metadata <https://sqlite.org/c3ref/table_column_metadata.html>`__"""
...
Expand Down
5 changes: 3 additions & 2 deletions src/apsw.docstrings
Original file line number Diff line number Diff line change
Expand Up @@ -2168,8 +2168,9 @@
#define Connection_table_exists_DOC "table_exists($self,dbname,table_name)\n--\n\nConnection.table_exists(dbname: Optional[str], table_name: str) -> bool\n\n" \
"Returns True if the named table exists, else False.\n" \
"\n" \
"`dbname` is `main`, `temp`, the name in `ATTACH <https://sqlite.org/lang_attach.html>`__,\n" \
" or None to search all databases\n" \
"``dbname`` is ``main``, ``temp``, the name in `ATTACH\n" \
"<https://sqlite.org/lang_attach.html>`__, or None to search all\n" \
"databases\n" \
"\n" \
"Calls: `sqlite3_table_column_metadata <https://sqlite.org/c3ref/table_column_metadata.html>`__\n"

Expand Down
5 changes: 3 additions & 2 deletions src/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -4613,8 +4613,9 @@ Connection_cache_stats(Connection *self, PyObject *const *fast_args, Py_ssize_t
Returns True if the named table exists, else False.
`dbname` is `main`, `temp`, the name in `ATTACH <https://sqlite.org/lang_attach.html>`__,
or None to search all databases
``dbname`` is ``main``, ``temp``, the name in `ATTACH
<https://sqlite.org/lang_attach.html>`__, or None to search all
databases
-* sqlite3_table_column_metadata
*/
Expand Down

0 comments on commit 503045e

Please sign in to comment.