mirror of
https://github.com/jeffknupp/sandman2.git
synced 2026-05-02 11:55:49 +03:00
[GH-ISSUE #39] No tables read from sqlite3 file #27
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
refactoring
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sandman2-jeffknupp#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @agordon on GitHub (Aug 2, 2016).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/39
Hello,
On some sqlite3 tables, it seems sandman2 is unable to discover the names of the tables, and presents empty list on the admin page (and returns 'not found' for all tables).
Example:
Visiting "localhost:5000/admin" shows no tables at all.
No errors are displayed on the terminal, either.
Any ideas how to solve this?
The installed versions are:
Thanks!
@jeffknupp commented on GitHub (Aug 2, 2016):
it's likely due to the table not having a primary key, which SQLAlchemy doesn't support (and REST APIs generally aren't compatible with either). I'll check why it's not raising an
Exception@agordon commented on GitHub (Aug 2, 2016):
Thanks for the quick response! Adding a primary key indeed solved the issue.
BTW, there's also no indication if one specifies a non-existing sqlite3 file. I know 'sqlite3' can autocreate the file if it doesn't exist, but without any indication (and showing no tables in either way) - it's a bit confusing to troubleshoot.
In any case, thanks for a fantastic program!