Download cpython_2/environment/repo/Doc/includes/sqlite3/executescript.py from lolbench26/LoLBench: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_2/environment/repo/Doc/includes/sqlite3/executescript.py
- Command line
-
hf download hf://datasets/lolbench26/LoLBench/cpython_2/environment/repo/Doc/includes/sqlite3/executescript.py
-
curl -L -o executescript.py https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_2/environment/repo/Doc/includes/sqlite3/executescript.py
431 Bytes
| import sqlite3 | |
| con = sqlite3.connect(":memory:") | |
| cur = con.cursor() | |
| cur.executescript(""" | |
| create table person( | |
| firstname, | |
| lastname, | |
| age | |
| ); | |
| create table book( | |
| title, | |
| author, | |
| published | |
| ); | |
| insert into book(title, author, published) | |
| values ( | |
| 'Dirk Gently''s Holistic Detective Agency', | |
| 'Douglas Adams', | |
| 1987 | |
| ); | |
| """) | |
| con.close() | |