1515| --------- | :-- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1616| CI/CD | | [](https://github.com/litestar-org/litestar-oracledb/actions/workflows/publish.yml) [](https://github.com/litestar-org/litestar-oracledb/actions/workflows/ci.yml) [](https://github.com/litestar-org/litestar-oracledb/actions/workflows/docs.yml) |
1717| Quality | | [](https://codecov.io/github/litestar-org/litestar-oracledb) [](https://sonarcloud.io/summary/new_code?id=litestar-org_litestar-oracledb) [](https://sonarcloud.io/summary/new_code?id=litestar-org_litestar-oracledb) [](https://sonarcloud.io/summary/new_code?id=litestar-org_litestar-oracledb) [](https://sonarcloud.io/summary/new_code?id=litestar-org_litestar-oracledb) |
18- | Package | | [](https://badge.fury.io/py/litestar)   |
18+ | Package | | [](https://badge.fury.io/py/litestar)   |
1919| Community | | [](https://reddit.com/r/litestarapi) [](https://discord.gg/litestar) [](https://matrix.to/#/#litestar:matrix.org) [](https://blog.litestar.dev) [](https://twitter.com/LitestarAPI) [](https://blog.litestar.dev) |
2020| Meta | | [](https://github.com/litestar-org/litestar-oracledb) [](https://github.com/python/mypy) [](https://spdx.org/licenses/) [](https://github.com/sponsors/litestar-org) [](https://github.com/astral-sh/ruff) [](https://github.com/psf/black) |
2121
@@ -42,15 +42,15 @@ from __future__ import annotations
4242from typing import TYPE_CHECKING
4343
4444from litestar import Controller, Litestar, get
45- from litestar_oracledb import AsyncpgConfig, AsyncpgPlugin, PoolConfig
45+ from litestar_oracledb import AsyncDatabaseConfig, AsyncPoolConfig, OracleDatabasePlugin
4646
4747if TYPE_CHECKING :
48- from oracledb import Connection
48+ from oracledb import AsyncConnection
4949
5050
5151class SampleController (Controller ):
5252 @get (path = " /sample" )
53- async def sample_route (self , db_connection : Connection ) -> dict[str , str ]:
53+ async def sample_route (self , db_connection : AsyncConnection ) -> dict[str , str ]:
5454 """ Check database available and returns app config info."""
5555 cursor = db_connection.cursor()
5656 await cursor.execute(" select 1 from dual" )
0 commit comments