-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ability to create a new table #5
Comments
This feature will be much more interesting when accompanied by some plugin that supports inserting data into tables. |
Some unfinished code I just removed while working on #8: async def post(self, request):
formdata = await request.form()
database_name = request.url_vars["database"]
columns = [
c.split(".", 1)[1] for c in formdata.keys() if c.startswith("column.")
]
table = formdata["table"]
# TODO: Create table
raise NotImplementedError |
I'm going to force the user to have a primary key in their table - it will default to Should I let users have a compound primary key? I think not - if they really want that they can use a |
Well that exists now! https://github.com/datasette/datasette-write-ui |
Actually no need for delete buttons that are checkboxes, they can be real buttons that JavaScript remove that row from the page. And there needs to be a prominent "add column" button that adds a new row. |
The "table name" form field should |
I won't bother with "add another column" just yet, I'll provide ten and people can add more using the edit table screen later if they need to. |
No description provided.
The text was updated successfully, but these errors were encountered: