#1 2013-04-16 15:20:50

eraldo
Member
From: Brasil
Registered: 2010-07-22
Posts: 69
Website

Some example with sqlite3_busy_handler

Hello,
 
could someone be kind enough to write a few lines of code using the function sqlite3_busy_handler?



Dear admin,


you can implement the routine to sets a callback function busy_handler in TSQLDataBase?

Thanks

Last edited by eraldo (2013-04-16 17:16:35)

Offline

#2 2013-04-16 18:25:30

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Some example with sqlite3_busy_handler

We do not use it in the framework because we protect db access with one connection.

This api is for low level sqlite3 call.
Ask in the sqlite3 maillist, perharps.

Offline

#3 2013-04-16 19:20:44

eraldo
Member
From: Brasil
Registered: 2010-07-22
Posts: 69
Website

Re: Some example with sqlite3_busy_handler

Dear admin,

. BusyTimeout does not work...

I try to enter a value greater than 0 but does not work.

  vdb: = TSQLRestServerDB.Create (dm.Model, StringToUTF8 ('base');
  vdb.DB.BusyTimeout: = 2000;

Offline

#4 2013-04-16 21:41:52

eraldo
Member
From: Brasil
Registered: 2010-07-22
Posts: 69
Website

Re: Some example with sqlite3_busy_handler

eraldo wrote:

Dear admin,

. BusyTimeout does not work...

I try to enter a value greater than 0 but does not work.

  vdb: = TSQLRestServerDB.Create (dm.Model, StringToUTF8 ('base');
  vdb.DB.BusyTimeout: = 2000;


excuse me.
The property BusyTimeout works perfectly.

The confusion was mine.

Offline

Board footer

Powered by FluxBB