Pointed out in:
Currently this runs without throwing errors:
python -c 'import sqlite_utils
db = sqlite_utils.Database(memory=True)
print(list(db.table("does_not_exist").rows_where()))
db.table("does_not_exist").delete_where()'
But this does raise an error:
python -c 'import sqlite_utils
db = sqlite_utils.Database(memory=True)
print(db.table("does_not_exist").count_where())'
Raises:
sqlite3.OperationalError: no such table: does_not_exist
#840 proposed fixing count_where() to return 0. I think the fix is that those other two methods should raise an error, but since this would break compatibility I'm going to hold it for a future v5 version.
Pointed out in:
Currently this runs without throwing errors:
But this does raise an error:
Raises:
#840 proposed fixing
count_where()to return 0. I think the fix is that those other two methods should raise an error, but since this would break compatibility I'm going to hold it for a future v5 version.