Optionally make committing to postgres asynchronous.

Useful when running tests when you don't care whether the server
will lose data that it claims that it has committed.
This commit is contained in:
Mark Haines 2016-06-20 17:53:38 +01:00
parent 9ba2bf1570
commit d5fb561709
3 changed files with 14 additions and 3 deletions

View file

@ -32,7 +32,7 @@ def create_engine(database_config):
if engine_class:
module = importlib.import_module(name)
return engine_class(module)
return engine_class(module, database_config)
raise RuntimeError(
"Unsupported database engine '%s'" % (name,)