almarklein / itemdb

Easy transactional database for Python dicts, backed by SQLite
https://itemdb.readthedocs.io
MIT License
18 stars 2 forks source link

40kb db file but count give me 1 table with 0 records #7

Closed wanghaisheng closed 3 years ago

wanghaisheng commented 3 years ago
db = itemdb.ItemDB("transgamers")
print( db.get_table_names())
print(db.count_all("scrape"))

I have 4 tables and insert bunch of records and no warnning at all 图片

almarklein commented 3 years ago

A database has a certain base size, just to define the structure of the database, builtin tables, indices etc. So this by itself is not surprising.

If you inserted records and these fail to load later, then this is a problem.