-
Notifications
You must be signed in to change notification settings - Fork 31
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
FieldTable auto-creates the table, but SimpleTable doesn't #60
Comments
I would be happy to try my hand at addressing this issue. I am not familiar with how table creation through introspection works in Wazimap. Do you have any hints about where to start looking in the current code? I suppose one concern is that SimpleTable does not take a fields parameter. Is the model parameter what is used for determining fields instead? And do you know of an example of someone using a model when declaring a SimpleTable? |
Which do you think is better to do? Should we use the FieldTable behaviour that does the database work for you but requires your to explicitly list fields in the tables.py file? Or should we use the SimpleTable behaviour where it introspects the database, which means you need to do the database work? I tend to think that Wazimap managing the database is easier, but I'd like to know what that was like for a new user. |
I would vote for something that allows the declaration in Can this behavior be achieved with declaring a model in a For what it's worth, the documentation says Wazimap will create the table.
I didn't see any documentation that stated that a |
Declaring a FieldTable auto-creates the table in the database, but SimpleTable expects the table to exist and introspects it to get column data. They should behave the same way.
The text was updated successfully, but these errors were encountered: