Miroslav Šedivý
a882d67962
Modernize code to Python 3.6+ ( #1158 )
...
* Compact dict and set building
* Remove redundant parentheses
* Simplify chained conditions
* Change method name to lowercase
* Use triple double quotes for docstrings
Thanks, @eumiro!
2020-12-23 09:04:32 -08:00
Simon Willison
90eba4c3ca
Prettier CREATE TABLE SQL for _internal
2020-12-22 15:55:43 -08:00
Simon Willison
8919f99c2f
Improved .add_database() method design
...
Closes #1155 - _internal now has a sensible name
Closes #509 - Support opening multiple databases with the same stem
2020-12-22 12:04:18 -08:00
Simon Willison
270de6527b
Foreign keys for _internal database
...
Refs #1099 - Datasette now uses compound foreign keys internally,
so it would be great to link them correctly.
2020-12-22 11:48:54 -08:00
Simon Willison
bc1f1e1ce8
Compound primary key for foreign_keys table in _internal
2020-12-22 11:04:29 -08:00
Simon Willison
810853c5f2
Use time.perf_counter() instead of time.time(), closes #1157
2020-12-21 13:49:14 -08:00
Simon Willison
dcdfb2c301
Rename _schemas to _internal, closes #1156
2020-12-21 11:48:06 -08:00
Simon Willison
ebc7aa287c
In-memory _schemas database tracking schemas of attached tables, closes #1150
2020-12-18 14:34:05 -08:00
Simon Willison
5e9895c67f
Database(memory_name=) for shared in-memory databases, closes #1151
2020-12-17 17:01:18 -08:00
dependabot-preview[bot]
6119bd7973
Update pytest requirement from <6.2.0,>=5.2.2 to >=5.2.2,<6.3.0 ( #1145 )
...
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest ) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.2...6.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-16 13:44:39 -08:00
Simon Willison
0c616f732c
Release 0.53
...
Refs #1132 , #1135 , #1133 , #1138 , #1137
2020-12-10 17:44:36 -08:00
Simon Willison
02bb373194
Updated release process
2020-12-10 17:38:16 -08:00
Simon Willison
967cc05545
Powered by links to datasette.io, closes #1138
2020-12-10 15:37:08 -08:00
Simon Willison
2c0aca4887
_header=off option for CSV export, closes #1133
2020-12-10 15:28:44 -08:00
Simon Willison
7ef80d0145
News is now on datasette.io/news
...
Closes #1137 , closes #659
2020-12-10 15:24:16 -08:00
Simon Willison
e0b54d0911
No longer using Wiki for examples
2020-12-10 15:20:43 -08:00
Simon Willison
4c6407cd74
Releasing bug fixes from a branch, closes #1136
2020-12-09 12:14:33 -08:00
Simon Willison
387b471b88
Release 0.52.5
...
Refs #1134
2020-12-09 12:13:14 -08:00
Simon Willison
6000d1a724
Fix for combining ?_search_x and ?_searchmode=raw, closes #1134
2020-12-09 11:56:44 -08:00
Simon Willison
fe86d85308
datasette serve --create option, closes #1135
2020-12-09 11:45:45 -08:00
Simon Willison
4c25b035b2
arraynotcontains filter, closes #1132
2020-12-07 14:41:03 -08:00
Simon Willison
8ae0f9f7f0
Fixed spelling of Janary
2020-12-07 12:16:13 -08:00
Simon Willison
62a6f70c64
Fixed Markdown indentation of news
...
To make it easier to programmatically extract.
2020-12-07 12:10:05 -08:00
Simon Willison
e3143700a2
Custom template for docs, linking to datasette.io
2020-12-07 11:00:10 -08:00
Simon Willison
e5930e6f88
Typo fix in release notes
2020-12-05 11:42:42 -08:00
Simon Willison
2dc281645a
Release 0.52.4
...
Refs #1125 , #1131 , #1094
2020-12-05 11:41:40 -08:00
Abdussamet Koçak
705d1a1555
Fix startup error on windows ( #1128 )
...
Fixes https://github.com/simonw/datasette/issues/1094
This import isn't used at all, and causes error on startup on Windows.
2020-12-05 11:35:03 -08:00
Simon Willison
eae103a82b
Write errors to stderr, closes #1131
2020-12-04 21:21:11 -08:00
Simon Willison
42efb799ea
Fixed invalid test for generated columns, refs #1119
2020-12-04 21:20:12 -08:00
Simon Willison
49d8fc0568
Try pysqlite3-binary version as well, refs #1125
2020-12-03 20:07:16 -08:00
Simon Willison
e2fea36540
Switch to google-github-actions/setup-gcloud - refs #1126
2020-12-03 19:12:33 -08:00
Simon Willison
00185af74a
Show pysqlite3 version on /-/versions, if installed - #1125
2020-12-03 14:08:50 -08:00
Simon Willison
4cce551666
Release 0.52.3
...
Refs #1124
2020-12-03 11:07:05 -08:00
Simon Willison
ca6e8e53dc
More helpful 404 messages, refs #1124
2020-12-03 11:05:12 -08:00
Simon Willison
63efcb35ce
More tweaks to root_path handling, refs #1124
2020-12-03 11:02:53 -08:00
Simon Willison
6b4c55efea
Fix for Amazon Linux static assets 404ing, refs #1124
2020-12-03 10:53:26 -08:00
Simon Willison
e048791a9a
Release 0.52.2
...
Refs #1116 , #1115 , #1100 , #749 , #1121
2020-12-02 16:57:40 -08:00
Simon Willison
13c960c03b
Test is no longer order dependent, closes #1123
2020-12-02 16:49:55 -08:00
Simon Willison
a45a3dff3e
Fix for OPTIONS request against /db, closes #1100
2020-12-02 16:49:55 -08:00
Abdussamet Koçak
daae35be46
Fix misaligned table actions cog
...
Closes #1121 . Thanks, @abdusco
2020-12-02 16:33:36 -08:00
Simon Willison
88ac538b41
transfer-encoding: chunked for DB downloads, refs #749
...
This should get >32MB downloads working on Cloud Run.
2020-12-02 15:47:37 -08:00
Simon Willison
a970276b99
Try pysqlite3 on latest.datasette.io
...
--install=pysqlite3-binary to get a working demo of generated columns, refs #1119
2020-11-30 17:19:09 -08:00
Simon Willison
17cbbb1f7f
generated_columns table in fixtures.py, closes #1119
2020-11-30 16:28:02 -08:00
Simon Willison
461670a0b8
Support for generated columns
...
* Support for generated columns, closes #1116
* Show SQLite version in pytest report header
* Use table_info() if SQLite < 3.26.0
* Cache sqlite_version() rather than re-calculate every time
* Adjust test_database_page for SQLite 3.26.0 or higher
2020-11-30 13:29:57 -08:00
Simon Willison
49b6297fb7
Typo fix: messagge_is_html, closes #1118
2020-11-30 13:24:23 -08:00
Simon Willison
dea3c508b3
Revert "Support for generated columns, closes #1116" - it failed CI
...
This reverts commit 37f87b5e52
.
2020-11-30 12:09:32 -08:00
Simon Willison
37f87b5e52
Support for generated columns, closes #1116
2020-11-30 12:01:15 -08:00
Simon Willison
c745c2715a
Moved comment for clarity
2020-11-29 12:27:34 -08:00
Simon Willison
4777362bf2
Work around CI bug with ensure_eventloop, refs #1115
2020-11-29 12:19:24 -08:00
Simon Willison
09033c08be
Suggest --load-extension=spatialite, closes #1115
2020-11-29 12:13:16 -08:00