Check docs for void SqlSession::PerThread(bool b = true)
means you can choose:
- either you have single global SQL object (and need to serialize access to it)
- or each thread has its own one (but of course, then each thread needs to create and open its DB connection)