Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1eb5b827
authored
Jun 16, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Enable connection pool pre-ping for SQLAlchemy engine
1 parent
ae0c0c09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
opensipkd/base/__init__.py
opensipkd/base/__init__.py
View file @
1eb5b82
...
@@ -702,7 +702,7 @@ def main(global_config, **settings):
...
@@ -702,7 +702,7 @@ def main(global_config, **settings):
engine
=
engine_from_config
(
engine
=
engine_from_config
(
settings
,
'sqlalchemy.'
,
client_encoding
=
'utf8'
,
settings
,
'sqlalchemy.'
,
client_encoding
=
'utf8'
,
max_identifier_length
=
30
)
# , convert_unicode=True
max_identifier_length
=
30
,
pool_pre_ping
=
True
)
# , convert_unicode=True
DBSession
.
configure
(
bind
=
engine
)
DBSession
.
configure
(
bind
=
engine
)
LogDBSession
.
configure
(
bind
=
engine
)
LogDBSession
.
configure
(
bind
=
engine
)
Base
.
metadata
.
bind
=
engine
Base
.
metadata
.
bind
=
engine
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment