Simon Willison
0f8e91c68f
Documentation fix
2020-02-25 23:13:39 -08:00
Simon Willison
1a77f30d3c
Fixed typo
2020-02-25 23:11:19 -08:00
Simon Willison
c9e6841482
News and release notes for 0.37
2020-02-25 17:22:02 -08:00
Simon Willison
78198df668
Fixed incorrect target name
2020-02-25 17:10:30 -08:00
Kevin Keogh
3041c6b641
Use inspect-file, if possible, for total row count ( #666 )
...
For large tables, counting the number of rows in the table can take a
significant amount of time. Instead, where an inspect-file is provided
for an immutable database, look up the row-count for a plain count(*).
Thanks, @kevindkeogh
2020-02-25 12:19:29 -08:00
Simon Willison
6cb65555f4
?_searchmode=raw option ( #686 )
2020-02-24 21:56:03 -08:00
Simon Willison
a093c5f79f
.execute_write() and .execute_write_fn() methods on Database ( #683 )
...
Closes #682 .
2020-02-24 20:45:07 -08:00
Simon Willison
411056c4c4
Only --reload on changes to immutable databases, closes #494
2020-02-24 11:44:59 -08:00
Simon Willison
b031fe9763
Updated README news for 0.36
2020-02-21 19:04:46 -08:00
Simon Willison
962a7e16e5
Release notes for 0.36, refs #679
2020-02-21 19:01:57 -08:00
Simon Willison
d6335f1f31
Added shapefile-to-sqlite, datasette-mask-columns, datasette-auth-existing-cookies, datasette-auth-existing-cookies
...
Refs #679
2020-02-21 18:53:35 -08:00
Adrien Di Pasquale
be2265b0e8
Fix db-to-sqlite command in ecosystem doc page ( #669 )
...
Thanks, @adipasquale
2020-02-21 18:32:17 -08:00
Simon Willison
7c6a9c3529
Better tests for prepare_connection() plugin hook, refs #678
2020-02-21 18:27:07 -08:00
Simon Willison
6303ea5048
prepare_connection() now takes datasette and database args, refs #678
2020-02-21 17:32:40 -08:00
Simon Willison
d3f2fade88
Refactored run_sanity_checks to check_connection(conn), refs #674
2020-02-15 09:56:48 -08:00
Simon Willison
f1442a8151
Replaced self.ds.execute with db.execute in more places
2020-02-13 18:20:05 -08:00
Simon Willison
efa54b439f
Docs for .render_template(), refs #577
...
Also improved parameter documentation for other methods, refs #576
2020-02-13 17:58:32 -08:00
Simon Willison
3ffb8f3b98
.add_database() and .remove_database() methods, refs #671
...
Also made a start on the Datasette class documentation, refs #576
2020-02-13 17:27:57 -08:00
Simon Willison
cf5f4386ef
Run black against everything, not just tests and datasette dirs
2020-02-13 15:02:10 -08:00
Simon Willison
b38a792ef0
Apply Black, update copyright to be 2017-2020
2020-02-13 15:01:14 -08:00
Simon Willison
0091dfe3e5
More reliable tie-break ordering for facet results
...
I was seeing a weird bug where the order of results running tests
on my laptop was inconsistent, causing pytest failures even though
the order of tests in Travis CI was fine.
I think the fix is to explicitly state how facet ordering ties on
the count should be resolved.
2020-02-12 22:36:42 -08:00
Simon Willison
298a899e79
Reformatted with black
2020-02-12 22:05:46 -08:00
Simon Willison
30b6f71b30
Updated release notes with #653
2020-02-04 18:17:47 -08:00
Jay Graves
33a12c8ae5
Allow leading comments in SQL input field ( #653 )
...
Thanks, @jaywgraves!
2020-02-04 18:13:24 -08:00
Simon Willison
ce12244037
Release notes for 0.35
2020-02-04 18:02:32 -08:00
Simon Willison
4d7dae9eb7
Added a bunch more plugins to the Ecosystem page
2020-02-04 12:49:41 -08:00
Simon Willison
70b915fb4b
Datasette.render_template() method, closes #577
...
Pull request #664 .
2020-02-04 12:26:17 -08:00
Simon Willison
286ed286b6
geojson-to-sqlite
2020-01-30 23:09:56 -08:00
Simon Willison
e7f60d2a9b
Release notes for Datasette 0.34, plus news updates
2020-01-29 16:09:01 -08:00
Simon Willison
67fc9c5720
--port argument for datasette package, plus tests - closes #661
...
From pull request #663
2020-01-29 14:46:43 -08:00
Katie McLaughlin
34d77d780f
gcloud run is now GA, s/beta// ( #660 )
...
Thanks, @glasnt
2020-01-21 15:28:11 -08:00
Simon Willison
3c861f363d
_search= queries now correctly escaped, fixes #651
...
Queries with reserved words or characters according to the SQLite
FTS5 query language could cause errors.
Queries are now escaped like so:
dog cat => "dog" "cat"
2019-12-29 18:48:30 +00:00
Simon Willison
59e7014c8a
Release 0.33
2019-12-22 16:27:04 +00:00
Simon Willison
dc98b0f41d
Link to JSK Medium post from news
2019-12-22 16:16:58 +00:00
Simon Willison
d54318fc7f
Added template_debug setting, closes #654
2019-12-22 16:04:45 +00:00
Simon Willison
ceef5ce684
Documentation for --port=0
2019-12-22 15:42:30 +00:00
Simon Willison
85c19c4037
Apply black
2019-12-22 15:34:20 +00:00
Simon Willison
9c3f0b73de
Bump to uvicorn 0.11
2019-12-22 15:33:04 +00:00
Simon Willison
16665c9ee6
Better handling of corrupted database files
2019-12-22 15:31:40 +00:00
Simon Willison
d6b6c9171f
Include asyncio task information in /-/threads debug page
2019-12-04 22:47:17 -08:00
Simon Willison
2039e78e58
Added Niche Museums to News
2019-12-02 22:53:59 -08:00
Simon Willison
a562f29655
Examples of things you can do with plugins
2019-11-27 11:19:11 -08:00
Simon Willison
f9d0ce4233
Added datasette-haversine to plugins list
2019-11-27 06:04:32 -08:00
Simon Willison
df2879ee2a
Better documentation for --static, closes #641
...
https://datasette.readthedocs.io/en/stable/custom_templates.html#serving-static-files
2019-11-25 18:31:42 -08:00
Simon Willison
aca41618f8
index view is also important for plugin hooks
2019-11-25 09:04:39 -08:00
Simon Willison
d3e1c3017e
Display 0 results, closes #637
2019-11-22 22:07:01 -08:00
Simon Willison
fd137da7f8
Suggest column facet only if at least one count > 1
...
Fixes #638
2019-11-21 16:56:55 -08:00
Simon Willison
c16be14517
How to upgrade using Docker
2019-11-20 10:02:07 -08:00
Simon Willison
440a70428c
Include rowid in filter select, closes #636
2019-11-19 15:01:10 -08:00
Simon Willison
a9909c29cc
Move .execute() from Datasette to Database
...
Refs #569 - I split this change out from #579
2019-11-15 14:52:03 -08:00