Context for managing plugin records in the Voile database.
Summary
Functions
Delete a plugin record by plugin_id. Used during uninstall when remove_data is true.
Get a plugin by its primary key.
Get a plugin by its unique plugin_id.
Get a single setting value for a plugin. Returns default if plugin or key not found.
List all plugins ordered by name.
List plugins filtered by status.
Update a single setting using JSONB merge to avoid race conditions.
Update multiple settings at once using JSONB merge.
Update the status of a plugin by plugin_id. Optionally accepts an error_message for :error status. Automatically sets activated_at or deactivated_at timestamps.
Insert or update a plugin record based on plugin_id. If the plugin_id exists, updates the existing record.
Functions
Delete a plugin record by plugin_id. Used during uninstall when remove_data is true.
Get a plugin by its primary key.
Get a plugin by its unique plugin_id.
Get a single setting value for a plugin. Returns default if plugin or key not found.
List all plugins ordered by name.
List plugins filtered by status.
Update a single setting using JSONB merge to avoid race conditions.
Update multiple settings at once using JSONB merge.
Update the status of a plugin by plugin_id. Optionally accepts an error_message for :error status. Automatically sets activated_at or deactivated_at timestamps.
Insert or update a plugin record based on plugin_id. If the plugin_id exists, updates the existing record.