mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-13 03:54:23 +02:00
feat: Implement a prepare_connection plugin hook
This commit is contained in:
parent
86a352f8b7
commit
ae973e794b
4 changed files with 78 additions and 2 deletions
|
|
@ -8,3 +8,8 @@ hookimpl = HookimplMarker("sqlite_utils")
|
|||
@hookspec
|
||||
def register_commands(cli):
|
||||
"""Register additional CLI commands, e.g. 'sqlite-utils mycommand ...'"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def prepare_connection(conn):
|
||||
"""Modify SQLite connection in some way e.g. register custom SQL functions"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue