init mit ersten templates undso
This commit is contained in:
1 parent
4813ef81ce
commit
761994967d
7 files changed
+189
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
import sqlite3
|
||||
|
||||
connection = sqlite3.connect('vokabeln.db')
|
||||
|
||||
|
||||
with open('schema.sql') as f:
|
||||
connection.executescript(f.read())
|
||||
|
||||
cur = connection.cursor()
|
||||
|
||||
cur.execute("INSERT INTO eintraege ( gaszaehler, stromzaehler, wasserzaehler, wetterinfo) VALUES ( ?, ?, ?, ?)",
|
||||
('', '', '127', 'kalt aber oho')
|
||||
)
|
||||
|
||||
connection.commit()
|
||||
connection.close()
|
||||
Reference in new issue
Block a user