mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-27 19:04:25 +01:00
13 lines
269 B
Python
13 lines
269 B
Python
DATABASE_NAME="agent.db"
|
|
import sqlite3
|
|
# Read all data from database
|
|
|
|
def read_all():
|
|
conn = sqlite3.connect(DATABASE_NAME)
|
|
cur = conn.cursor()
|
|
cur.execute("SELECT * FROM tasks")
|
|
rows = cur.fetchall()
|
|
conn.close()
|
|
return rows
|
|
|
|
print(read_all()) |