Simon Willison
4c66097d58
datasette publish now works with full paths
...
e.g. datasette publish /tmp/blah/database.db now does the right thing
2017-11-12 15:16:24 -08:00
Simon Willison
efecae5a11
Full path to database now works
...
e.g. datasette /tmp/blah.db
Previously this failed because it did not open with full path.
2017-11-12 15:01:29 -08:00
Simon Willison
db3fa4abfa
Views no longer attempt to link to records
...
Closes #54
2017-11-12 13:29:26 -08:00
Simon Willison
59a616ca5c
Move view SQL to bottom of the page
...
Now consistent with tables
2017-11-12 13:25:34 -08:00
Simon Willison
22851ed9f0
Table page now shows CREATE TABLE at bottom
...
Closes #66
2017-11-12 13:16:59 -08:00
Simon Willison
666aa03253
Improved error handling
...
Invalid SQL now shows a special error.html template, and is covered by tests.
2017-11-12 13:16:15 -08:00
Simon Willison
ff2ab9dc7d
Views now show their SQL, are handled a bit better
...
Refs #66
2017-11-12 12:32:25 -08:00
Simon Willison
f4794df070
Added border-right to table cells
2017-11-12 12:19:18 -08:00
Simon Willison
b51836f846
Fixed bug with tables with spaces in their name
...
The new database index page was erroring.
2017-11-12 12:02:45 -08:00
Simon Willison
59580d02da
Implemented custom SQL via textarea
...
Closes #65
2017-11-11 18:35:35 -08:00
Simon Willison
fd3a33989a
Implemented new database view and template
...
Closes #53 - see comments there for screenshots.
2017-11-11 17:50:21 -08:00
Simon Willison
2366a016f2
Added links to .json and .jsono representations
...
Closes #62
2017-11-11 14:40:44 -08:00
Simon Willison
e9e1def4c0
Revised JSON design a bit
...
Closes #63
2017-11-11 14:20:00 -08:00
Simon Willison
e4bf66d9b0
Added header with breadcrumbs and footer
...
Also cleaned up titles on various pages.
Closes #61
2017-11-11 12:36:20 -08:00
Simon Willison
40a563ebac
Reworked metadata building options
...
Building metadata is now optional. If you want to do it, do this:
datasette build *.db --metadata=metadata.json
Then when you run the server you can tell it to read from metadata:
datasette serve *.db --metadata=metadata.json
The Dockerfile generated by datasette publish now uses this mechanism.
Closes #60
2017-11-11 12:11:51 -08:00
Simon Willison
ad8b5d3bd2
JSON version of our homepage
...
Now available at http://localhost:8006/.json
Tested by tests added in 407795b612
2017-11-11 09:49:47 -08:00
Simon Willison
407795b612
Initial unit tests against our Sanic app
...
Refs #50
I had to disable the build metadata function to get these tests to work
sensibly. I need to completely rethink how that mechanism works.
2017-11-11 09:47:59 -08:00
Simon Willison
3863a30b5d
publish command checks 'now' is installed
...
Closes #58
2017-11-11 08:00:00 -08:00
Simon Willison
65e350ca2a
Implemented 'datasette publish one.db two.db' command
...
Closes #26
2017-11-10 23:25:22 -08:00
Simon Willison
7d81083d40
Implemented responsive tables, removed bootstrap
...
No need for all of bootstrap since we only need to style a few elements.
Implemented responsive table pattern from here:
https://css-tricks.com/responsive-data-tables/
Refs #16
2017-11-10 21:55:50 -08:00
Simon Willison
21c9c04310
Implemented cursor-based pagination for table view
...
Closes #5
2017-11-10 12:41:14 -08:00
Simon Willison
e9fce44195
Don't serve cache headers in debug or refresh modes
2017-11-10 12:26:37 -08:00
Simon Willison
a8a293cd71
Refactored util functions into new utils module
2017-11-10 11:25:54 -08:00
Simon Willison
1c57bd202f
Replaced app_factory with new Datasette class
...
This should make it easier to add unit tests.
2017-11-10 11:05:57 -08:00
Simon Willison
03c58fb350
Show databases in alphabetical order on index page
2017-11-10 11:04:56 -08:00
Simon Willison
e06b011771
Updated tests
...
Refs #23
2017-11-10 10:43:54 -08:00
Simon Willison
e7e50875d3
Renamed to 'datasette'
2017-11-10 10:38:35 -08:00