mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-04 20:20:59 -06:00
Add an option to set a transaction isolation level to the generic
transaction interface and the connecctor api
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user