From 68a5cb1b8ef2264bed68d4763f04bd47b1aa5d05 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 26 Aug 2019 07:03:22 +0200 Subject: [PATCH] Corrected .table_views() -> .view_names() --- docs/python-api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/python-api.rst b/docs/python-api.rst index 28ae96f..9d272c3 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -67,9 +67,9 @@ You can also iterate through the table objects themselves using the ``.tables`` Listing views ============= -``.table_views()`` shows you a list of views in the database:: +``.view_names()`` shows you a list of views in the database:: - >>> db.table_views() + >>> db.view_names() ['good_dogs'] You can iterate through view objects using the ``.views`` property::