Skip to content

Commit a2935af

Browse files
Hummer12007fantix
authored andcommitted
Added DB_ECHO option for SQLAlchemy echo mode
1 parent 47af0bb commit a2935af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gino/ext/sanic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ async def before_server_start(_, loop):
119119

120120
await self.set_bind(
121121
dsn,
122+
echo=app.config.setdefault('DB_ECHO', False),
122123
min_size=app.config.setdefault('DB_POOL_MIN_SIZE', 5),
123124
max_size=app.config.setdefault('DB_POOL_MAX_SIZE', 10),
124125
loop=loop,

0 commit comments

Comments
 (0)