Party/test/database.py
fingadumbledore d2ae3e5b47 chat
2023-01-30 07:41:29 +01:00

8 lines
176 B
Python

import sqlite3
conn = sqlite3.connect("chat.db")
c = conn.cursor()
c.execute("CREATE TABLE messages (username text, message text, timestamp text)")
conn.commit()
conn.close()