@@ -203,7 +203,7 @@ async def init_app(self, app, *, loop=None, dsn='', driver='asyncpg',
203
203
host = 'localhost' , port = 5432 ,
204
204
user = 'postgres' , password = '' , database = 'postgres' ,
205
205
echo = False , pool_min_size = 5 , pool_max_size = 10 ,
206
- ssl = None ):
206
+ ssl = None , ** kwargs ):
207
207
"""
208
208
Initialize database
209
209
@@ -225,6 +225,8 @@ async def init_app(self, app, *, loop=None, dsn='', driver='asyncpg',
225
225
pool, default is ``10``.
226
226
:param ssl: SSL context passed to ``asyncpg.connect``, default is
227
227
``None``. This can be ``True`` or an instance of ``ssl.SSLContext``.
228
+ :param kwargs: other parameters passed to the specified dialects,
229
+ like ``asyncpg``. Unrecognized parameters will cause exceptions.
228
230
"""
229
231
if loop is None :
230
232
loop = tornado .ioloop .IOLoop .current ()
@@ -243,7 +245,7 @@ async def init_app(self, app, *, loop=None, dsn='', driver='asyncpg',
243
245
244
246
await self .set_bind (
245
247
dsn , echo = echo , min_size = pool_min_size , max_size = pool_max_size ,
246
- ssl = ssl , loop = asyncio_loop ,
248
+ ssl = ssl , loop = asyncio_loop , ** kwargs ,
247
249
)
248
250
249
251
app .db = self
0 commit comments