datasette/datasette/utils
Simon Willison 6a71bde37f
Permissions SQL API improvements (#2558)
* Neater design for PermissionSQL class, refs #2556
  - source is now automatically set to the source plugin
  - params is optional
* PermissionSQL.allow() and PermissionSQL.deny() shortcuts

Closes #2556

* Filter out temp database from attached_databases()

Refs https://github.com/simonw/datasette/issues/2557#issuecomment-3470510837
2025-10-30 15:48:46 -07:00
..
__init__.py Test improvements and fixed deprecation warnings (#2464) 2025-02-04 14:49:52 -08:00
actions_sql.py Permissions SQL API improvements (#2558) 2025-10-30 15:48:46 -07:00
asgi.py Fix type annotation bugs and remove unused imports 2025-10-26 16:03:13 -07:00
baseconv.py Rename to_decimal/from_decimal to decode/encode, refs #1734 2022-05-02 12:44:09 -07:00
check_callable.py Fix for asyncio.iscoroutinefunction deprecation warnings 2025-10-08 20:32:16 -07:00
internal_db.py catalog_views table, closes #2495 2025-07-15 10:22:56 -07:00
permissions.py Permissions SQL API improvements (#2558) 2025-10-30 15:48:46 -07:00
shutil_backport.py Upgrade to latest Black, closes #2239 2024-01-30 19:55:26 -08:00
sqlite.py Show pysqlite3 version on /-/versions, if installed - #1125 2020-12-03 14:08:50 -08:00
testing.py Fixed bug with ?_trace=1 and large responses, closes #2404 2024-08-21 10:58:17 -07:00