mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
12 lines
256 B
Python
12 lines
256 B
Python
from sqlite3 import Connection
|
|
|
|
from argenta import Response, Router
|
|
from argenta.di import FromDishka
|
|
|
|
|
|
router = Router()
|
|
|
|
@router.command('connect')
|
|
def connect_handler(response: Response, connection: FromDishka[Connection]):
|
|
connection.execute('...')
|
|
|