Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.db.mobio
Commits
56998019
Commit
56998019
authored
Sep 23, 2012
by
Laurent EL SHAFEY
Browse files
Fix no lock (again): create_engine_try_nolock
parent
c3248d25
Changes
1
Hide whitespace changes
Inline
Side-by-side
xbob/db/mobio/create.py
View file @
56998019
...
...
@@ -1665,11 +1665,9 @@ def add_subworldfiles(session):
def
create_tables
(
args
):
"""Creates all necessary tables (only to be used at the first time)"""
from
bob.db.utils
import
connection_string
from
bob.db.utils
import
connection_string
_try_nolock
from
sqlalchemy
import
create_engine
engine
=
create_engine
(
connection_string
(
args
.
type
,
args
.
files
[
0
]),
echo
=
(
args
.
verbose
>=
2
))
engine
=
create_engine_try_nolock
(
args
.
type
,
args
.
files
[
0
],
echo
=
(
args
.
verbose
>=
2
))
Client
.
metadata
.
create_all
(
engine
)
File
.
metadata
.
create_all
(
engine
)
Protocol
.
metadata
.
create_all
(
engine
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment