We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0665e45 commit db31523Copy full SHA for db31523
examples/db_app.py
@@ -1,6 +1,8 @@
1
from fasthtml.all import *
2
3
-db = Database('todos.db')
+path = Path('data')
4
+path.mkdir(exist_ok=True)
5
+db = Database(path/'todos.db')
6
db.enable_wal()
7
todos = db.t.todos
8
if todos not in db.t: todos.create(id=int, title=str, done=bool, pk='id')
0 commit comments