Wiki Navigation

How to use SQLObject with one connection per thread

Many database libraries are not thread safe and can have problems when connections are shared between threads. SQLite has this problem and will be used in the example below. SQLObject solves this problem with the ConnectionHub? connection. The following needs to be done: