-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.transform(types=) turns rowid into a concrete column #284
Comments
How easy is it to detect a |
If this can be fixed it will be in the |
>>> db = sqlite_utils.Database(memory=True)
>>> db["rowid_table"].insert({"name": "Cleo"})
<Table rowid_table (name)>
>>> db["regular_table"].insert({"id": 1, "name": "Cleo"}, pk="id")
<Table regular_table (id, name)>
>>> db["rowid_table"].pks
['rowid']
>>> db["regular_table"].pks
['id'] I think I need an introspection property for working out if a table is a |
sqlite-utils/sqlite_utils/db.py Lines 805 to 810 in dc94f4b
So I can indeed detect a |
I think this code is at fault: sqlite-utils/sqlite_utils/db.py Lines 1017 to 1023 in 5b25794
It's using |
Noticed this in the tests for
sqlite-utils memory
in #282 - is it possible to fix this?ec5174e
The text was updated successfully, but these errors were encountered: