cinap_lenrekadd hg and python4bb9e2215 years agoHistory
12 lines · 311 B · Python
RawDownload
import 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"]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t