mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Simplified example
This commit is contained in:
parent
feb01c1ddd
commit
a6da26a856
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ The easiest way to create a new table is to insert a record into it:
|
|||
from sqlite_utils import Database
|
||||
import sqlite3
|
||||
|
||||
db = Database(sqlite3.connect("/tmp/dogs.db"))
|
||||
db = Database("dogs.db")
|
||||
dogs = db["dogs"]
|
||||
dogs.insert({
|
||||
"name": "Cleo",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue