[Lazarus] SQLitePass package install problems

Luca Olivetti luca at wetron.es
Mon Jul 12 09:02:25 CEST 2010


En/na Frank Church ha escrit:
> As someone interested in SQLite, does it offer support for 
> http://www.sqlite.org/c3ref/busy_timeout.html and 
> http://www.sqlite.org/c3ref/busy_handler.html, or implement them in some 
> way?

I use the following with zeos, there should be a way to adapt it to 
other sqlite components if you can get the underlying handle to the 
sqlite connection:

function mybusyhandler(para1:pointer; times:longint):longint;cdecl;
begin
...
end;


procedure TDataModule.DbConnectionAfterConnect(Sender:TObject);
var c:TZConnection;
begin
   c:=TZConnection(sender);
   sqlite3_busy_handler((c.DbcConnection as 
IZSQLiteConnection).GetConnectionHandle, @mybusyhandler, nil);
end;

Bye
-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133)  Fax +34 93 5883007




More information about the Lazarus mailing list