mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
parent
bf1ac778a3
commit
fb93452ea8
20 changed files with 910 additions and 849 deletions
|
|
@ -180,10 +180,10 @@
|
|||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"CREATE TABLE [creatures] (\n",
|
||||
" [name] TEXT,\n",
|
||||
" [species] TEXT,\n",
|
||||
" [age] FLOAT\n",
|
||||
"CREATE TABLE \"creatures\" (\n",
|
||||
" \"name\" TEXT,\n",
|
||||
" \"species\" TEXT,\n",
|
||||
" \"age\" FLOAT\n",
|
||||
")\n"
|
||||
]
|
||||
}
|
||||
|
|
@ -534,11 +534,11 @@
|
|||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"CREATE TABLE [creatures] (\n",
|
||||
" [id] INTEGER PRIMARY KEY,\n",
|
||||
" [name] TEXT,\n",
|
||||
" [species] TEXT,\n",
|
||||
" [age] FLOAT\n",
|
||||
"CREATE TABLE \"creatures\" (\n",
|
||||
" \"id\" INTEGER PRIMARY KEY,\n",
|
||||
" \"name\" TEXT,\n",
|
||||
" \"species\" TEXT,\n",
|
||||
" \"age\" FLOAT\n",
|
||||
")\n"
|
||||
]
|
||||
}
|
||||
|
|
@ -929,11 +929,11 @@
|
|||
"output_type": "stream",
|
||||
"text": [
|
||||
"CREATE TABLE \"creatures\" (\n",
|
||||
" [id] INTEGER PRIMARY KEY,\n",
|
||||
" [name] TEXT,\n",
|
||||
" [species_id] INTEGER,\n",
|
||||
" [age] FLOAT,\n",
|
||||
" FOREIGN KEY([species_id]) REFERENCES [species]([id])\n",
|
||||
" \"id\" INTEGER PRIMARY KEY,\n",
|
||||
" \"name\" TEXT,\n",
|
||||
" \"species_id\" INTEGER,\n",
|
||||
" \"age\" FLOAT,\n",
|
||||
" FOREIGN KEY(\"species_id\") REFERENCES \"species\"(\"id\")\n",
|
||||
")\n",
|
||||
"[{'id': 1, 'name': 'Cleo', 'species_id': 1, 'age': 6.0}, {'id': 2, 'name': 'Lila', 'species_id': 2, 'age': 0.8}, {'id': 3, 'name': 'Bants', 'species_id': 2, 'age': 0.8}, {'id': 4, 'name': 'Azi', 'species_id': 2, 'age': 0.8}, {'id': 5, 'name': 'Snowy', 'species_id': 2, 'age': 0.9}, {'id': 6, 'name': 'Blue', 'species_id': 2, 'age': 0.9}]\n"
|
||||
]
|
||||
|
|
@ -962,9 +962,9 @@
|
|||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"CREATE TABLE [species] (\n",
|
||||
" [id] INTEGER PRIMARY KEY,\n",
|
||||
" [species] TEXT\n",
|
||||
"CREATE TABLE \"species\" (\n",
|
||||
" \"id\" INTEGER PRIMARY KEY,\n",
|
||||
" \"species\" TEXT\n",
|
||||
")\n",
|
||||
"[{'id': 1, 'species': 'dog'}, {'id': 2, 'species': 'chicken'}]\n"
|
||||
]
|
||||
|
|
@ -1048,4 +1048,4 @@
|
|||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue