Skip to content

Commit 31ef463

Browse files
committed
update docs
1 parent d52e51d commit 31ef463

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

docs/aiohttp.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
===============
2+
Aiohttp Support
3+
===============
4+
5+
**THIS IS A WIP**

docs/quart.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
===============
2+
Quart Support
3+
===============
4+
5+
**THIS IS A WIP**

docs/sanic.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Supported configurations:
2626
- DB_POOL_MIN_SIZE
2727
- DB_POOL_MAX_SIZE
2828
- DB_USE_CONNECTION_FOR_REQUEST
29+
- DB_KWARGS
2930

3031
An example server:
3132

@@ -79,6 +80,7 @@ To integrate with Sanic, a few configurations needs to be set in
7980
- DB_ECHO: if not set, ``False``
8081
- DB_POOL_MIN_SIZE: if not set, 5
8182
- DB_POOL_MAX_SIZE: if not set, 10
83+
- DB_KWARGS; if not set, empty dictionary
8284

8385
An example:
8486

gino/ext/aiohttp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class Gino(_Gino):
8383
* ``pool_max_size`` - the maximum number of connections in the db pool.
8484
* ``echo`` - enable SQLAlchemy echo mode.
8585
* ``ssl`` - SSL context passed to ``asyncpg.connect``, default is ``None``.
86+
* ``kwargs`` - other parameters passed to the specified dialects,
87+
like ``asyncpg``. Unrecognized parameters will cause exceptions.
8688
8789
If the ``db`` is set as an aiohttp middleware, then a lazy connection is
8890
available at ``request['connection']``. By default, a database connection

0 commit comments

Comments
 (0)