18 lines
514 B
Python
Executable File
18 lines
514 B
Python
Executable File
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") |