FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Doc/includes/sqlite3/rowclass.py at master · python-emscripten/cpython · GitHub
python-emscripten
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Doc
/
includes
/
sqlite3
/
rowclass.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (11 loc) · 312 Bytes
Breadcrumbs
cpython
/
Doc
/
includes
/
sqlite3
/
rowclass.py
Copy path
File metadata and controls
14 lines (11 loc) · 312 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
sqlite3
con
=
sqlite3
.
connect
(
":memory:"
)
con
.
row_factory
=
sqlite3
.
Row
cur
=
con
.
cursor
()
cur
.
execute
(
"select 'John' as name, 42 as age"
)
for
row
in
cur
:
assert
row
[
0
]
==
row
[
"name"
]
assert
row
[
"name"
]
==
row
[
"nAmE"
]
assert
row
[
1
]
==
row
[
"age"
]
assert
row
[
1
]
==
row
[
"AgE"
]
con
.
close
()
Back
|
FazBrowse Home
|
New Git URL