ยปCore Development>Code coverage>Doc/includes/sqlite3/parse_colnames.py

Python code coverage for Doc/includes/sqlite3/parse_colnames.py

#countcontent
1n/aimport sqlite3
2n/aimport datetime
3n/a
4n/acon = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_COLNAMES)
5n/acur = con.cursor()
6n/acur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
7n/adt = cur.fetchone()[0]
8n/aprint(dt, type(dt))