mirror of
https://github.com/simonw/datasette.git
synced 2026-05-30 21:57:00 +02:00
This change makes all settings and plugin config access asynchronous in preparation for a future plugin hook that will allow fetching settings from a database or via HTTP. Changes: - Datasette.setting() is now async - Datasette.settings_dict() is now async - Datasette.plugin_config() is now async - Added _setting_sync() for contexts that cannot await (threads, sync hooks) - Added _plugin_config_sync() for contexts that cannot await - Updated all callers throughout the codebase to use await - Updated tests to work with async methods |
||
|---|---|---|
| .. | ||
| messages_output_renderer.py | ||
| my_plugin.py | ||
| my_plugin_2.py | ||
| register_output_renderer.py | ||
| sleep_sql_function.py | ||
| view_name.py | ||