Added additional SQLite option

This commit is contained in:
2023-08-23 15:45:15 +02:00
parent 59bfc4c1ca
commit 866ab2429f
12 changed files with 134 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
"""Module that provides database access"""
import sqlite3
from pathlib import Path
from libbot.sync import config_get
db: sqlite3.Connection = sqlite3.connect(Path(config_get("database")))
cursor: sqlite3.Cursor = db.cursor()
cursor.execute("CREATE TABLE IF NOT EXISTS users (id INTEGER, card TEXT, locale TEXT)")