From 51032d827b297e4ea0cd529d57d73cd44e0c3905 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 30 May 2013 04:35:35 +0900 Subject: cleanup docs --- doc/includes/sqlite3/rowclass.py | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 doc/includes/sqlite3/rowclass.py (limited to 'doc/includes/sqlite3/rowclass.py') diff --git a/doc/includes/sqlite3/rowclass.py b/doc/includes/sqlite3/rowclass.py deleted file mode 100644 index e210ef2..0000000 --- a/doc/includes/sqlite3/rowclass.py +++ /dev/null @@ -1,12 +0,0 @@ -from pysqlite2 import dbapi2 as sqlite3 - -con = sqlite3.connect("mydb") -con.row_factory = sqlite3.Row - -cur = con.cursor() -cur.execute("select name_last, age from people") -for row in cur: - assert row[0] == row["name_last"] - assert row["name_last"] == row["nAmE_lAsT"] - assert row[1] == row["age"] - assert row[1] == row["AgE"] -- cgit v1.2.3