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

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

#countcontent
1n/aimport sqlite3
2n/a
3n/acon = sqlite3.connect(":memory:")
4n/acur = con.cursor()
5n/acur.executescript("""
6n/a create table person(
7n/a firstname,
8n/a lastname,
9n/a age
10n/a );
11n/a
12n/a create table book(
13n/a title,
14n/a author,
15n/a published
16n/a );
17n/a
18n/a insert into book(title, author, published)
19n/a values (
20n/a 'Dirk Gently''s Holistic Detective Agency',
21n/a 'Douglas Adams',
22n/a 1987
23n/a );
24n/a """)