diff options
author | Kevin Adler <kadler@us.ibm.com> | 2016-08-22 14:19:23 -0500 |
---|---|---|
committer | Kevin Adler <kadler@us.ibm.com> | 2016-08-22 14:19:23 -0500 |
commit | 2f27eb49de05900a510ae355556b50cc11aa6d24 (patch) | |
tree | f86ff43a0a03d9515aff90bb91f59db4708abd8a | |
parent | c350b52bf0a38e8ca17a40b50b8dff15c66442c8 (diff) | |
download | python-prettytable-ptable-2f27eb49de05900a510ae355556b50cc11aa6d24.tar.gz |
Change from_cursor to from_db_cursor to match code
-rw-r--r-- | docs/tutorial.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 6468891..961d3c4 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -91,12 +91,12 @@ using a cursor object, like this: :: import sqlite3 - from prettytable import from_cursor + from prettytable import from_db_cursor connection = sqlite3.connect("mydb.db") cursor = connection.cursor() cursor.execute("SELECT field1, field2, field3 FROM my_table") - mytable = from_cursor(cursor) + mytable = from_db_cursor(cursor) Getting data out ---------------- |