mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
docs and fix
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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('...')
|
||||
|
||||
Reference in New Issue
Block a user