summaryrefslogtreecommitdiff
path: root/readyaml.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2014-03-08 13:30:20 +0100
committerHelmut Grohne <helmut@subdivi.de>2014-03-08 13:30:20 +0100
commit5ccb80491346bab81414f74cd8297285083a5d8f (patch)
treedae820bfd12e3f6f92e1108e0389121214da1fd4 /readyaml.py
parent73ca50c10d929a99cf0355293affdf6fc923df27 (diff)
downloaddebian-dedup-5ccb80491346bab81414f74cd8297285083a5d8f.tar.gz
enable result buffering for postgres
Diffstat (limited to 'readyaml.py')
-rwxr-xr-xreadyaml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/readyaml.py b/readyaml.py
index 15cfcb3..8ba82fa 100755
--- a/readyaml.py
+++ b/readyaml.py
@@ -9,7 +9,7 @@ from debian.debian_support import version_compare
import sqlalchemy
import yaml
-from dedup.utils import enable_sqlite_foreign_keys
+from dedup.utils import configure_database_engine
def readyaml(conn, stream):
gen = yaml.safe_load_all(stream)
@@ -64,7 +64,7 @@ def main():
help="location of the database")
options, args = parser.parse_args()
db = sqlalchemy.create_engine(options.database)
- enable_sqlite_foreign_keys(db)
+ configure_database_engine(db)
with db.begin() as conn:
readyaml(conn, sys.stdin)