Add an option to set a transaction isolation level to the generic

transaction interface and the connecctor api
This commit is contained in:
Volker Aßmann
2017-05-30 00:17:08 +02:00
parent 4d22202fe5
commit f2ea61052e
4 changed files with 51 additions and 3 deletions

View File

@@ -183,5 +183,8 @@ int Select(int, char* [])
for_each_field(row, to_cerr{});
}
auto transaction = start_transaction(db, sqlpp::report_auto_rollback, sqlpp::isolation_level::read_committed);
std::cout << (db._current_isolation_level == sqlpp::isolation_level::read_committed) << std::endl;
return 0;
}