mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
11 lines
255 B
Python
11 lines
255 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('...')
|
|
|