kennethreitz / records

SQL for Humans™
https://pypi.python.org/pypi/records/
ISC License
7.14k stars 570 forks source link

Can't get values from sqlite database #189

Closed Blindingend closed 5 months ago

Blindingend commented 4 years ago

my code is like:

import records
db = records.Database("sqlite:///test_db.db")
rows = db.query("select * from test_table")
print(rows[0])

I'm pretty sure there is content in test table and other operations like 'insert' or create_table is perfectly normal. But when I use select query like README, it throws an exception as I'm fetching the data from row, says Cannot operate on a closed database.