FEAT: Added a Birthday Module

This commit is contained in:
Dan
2024-06-21 13:22:13 -04:00
parent 15ed750f8b
commit f5872626a3
4 changed files with 127 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
import sqlite3
def initialize_db():
conn = sqlite3.connect('birthdays.db')
cursor = conn.cursor()
cursor.execute('''
CREATE TABLE IF NOT EXISTS birthdays (
user_id TEXT PRIMARY KEY,
birthday TEXT
)
''')
conn.commit()
conn.close()
def get_connection():
return sqlite3.connect('birthdays.db')