xxxxxxxxxx
import sqlite3
# Connect to the database (creates a new database if it doesn't exist)
conn = sqlite3.connect('mydatabase.db')
# Create a cursor object to execute SQL commands
cursor = conn.cursor()
# Create a table to store files, photos, and personal notes
cursor.execute('''
CREATE TABLE IF NOT EXISTS documents (
id INTEGER PRIMARY KEY AUTOINCREMENT,
file_name TEXT,
file_type TEXT,
file_data BLOB,
notes TEXT
)
''')
# Commit the changes and close the connection
conn.commit()
conn.close()