* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+#include <stddef.h>
#include <dpl/wrt-dao-ro/WrtDatabase.h>
#include <dpl/db/thread_database_support.h>
WrtDatabase::Address(),
WrtDatabase::Flags());
-void WrtDatabase::attachToThread()
+void WrtDatabase::attachToThreadRO()
+{
+ m_interface.AttachToThread(DPL::DB::SqlConnection::Flag::RO);
+}
+
+void WrtDatabase::attachToThreadRW()
{
- m_interface.AttachToThread();
+ m_interface.AttachToThread(DPL::DB::SqlConnection::Flag::RW);
}
void WrtDatabase::detachFromThread()