mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
15 lines
395 B
Python
15 lines
395 B
Python
from pluggy import HookimplMarker
|
|
from pluggy import HookspecMarker
|
|
|
|
hookspec = HookspecMarker("sqlite_utils")
|
|
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"""
|