Download cpython_2/environment/repo/Doc/includes/sqlite3/parse_colnames.py from lolbench26/LoLBench: direct link, hf CLI and curl.
- Browser
- Download file 249 Bytes
-
https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_2/environment/repo/Doc/includes/sqlite3/parse_colnames.py
- Command line
-
hf download hf://datasets/lolbench26/LoLBench/cpython_2/environment/repo/Doc/includes/sqlite3/parse_colnames.py
-
curl -L -o parse_colnames.py https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_2/environment/repo/Doc/includes/sqlite3/parse_colnames.py
249 Bytes
| import sqlite3 | |
| import datetime | |
| con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_COLNAMES) | |
| cur = con.cursor() | |
| cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),)) | |
| dt = cur.fetchone()[0] | |
| print(dt, type(dt)) | |
| con.close() | |