TSQLite
TSQLite copied to clipboard
reference counted ISQLiteConnection and ISQLiteStatement
These interfaces are functionally equivalent to TSQLiteConnection and TSQLiteStatement, but their instances do not need to be explicitly deallocated when their reference count goes to zero.
I mean: this code is not leaking any memory.
begin
var conn := TSQLite.Connect(':memory:',saReadWrite);
var stmt := conn.Prepare('select ..... ');
while stmt.read do begin
...
end;
end;