commit message from python script
This commit is contained in:
18
meine_test/sqllite_what.py
Executable file
18
meine_test/sqllite_what.py
Executable file
@@ -0,0 +1,18 @@
|
||||
import sqlite3
|
||||
|
||||
def create_db(name = str):
|
||||
with sqlite3.connect(name) as con:
|
||||
cursor = con.cursor()
|
||||
cursor.execute(
|
||||
"""
|
||||
CREATE TABLE IF NOT EXISTS server (
|
||||
id INT,
|
||||
servername TEXT,
|
||||
public_key TEXT,
|
||||
adapter TEXT
|
||||
)
|
||||
""")
|
||||
con.commit()
|
||||
|
||||
|
||||
create_db("test")
|
||||
Reference in New Issue
Block a user