mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
docs
This commit is contained in:
@@ -5,7 +5,7 @@ from argenta.di import FromDishka
|
||||
|
||||
router = Router()
|
||||
|
||||
@router.command('connect')
|
||||
|
||||
@router.command("connect")
|
||||
def connect_handler(response: Response, connection: FromDishka[Connection]):
|
||||
connection.execute('...')
|
||||
|
||||
connection.execute("...")
|
||||
|
||||
@@ -10,4 +10,4 @@ class ConnectionProvider(Provider):
|
||||
def new_connection(self) -> Iterable[Connection]:
|
||||
conn = sqlite3.connect(":memory:")
|
||||
yield conn
|
||||
conn.close()
|
||||
conn.close()
|
||||
|
||||
@@ -4,7 +4,7 @@ from argenta.orchestrator.argparser import ArgSpace
|
||||
|
||||
router = Router()
|
||||
|
||||
@router.command('info')
|
||||
|
||||
@router.command("info")
|
||||
def connect_handler(response: Response, argspace: FromDishka[ArgSpace]):
|
||||
print(argspace.get_by_name('type'))
|
||||
|
||||
print(argspace.get_by_name("type"))
|
||||
|
||||
Reference in New Issue
Block a user