You can use my SQLite wrapper (also some more info in my blog) which supports multiple platforms. In Windows you'll need to deploy sqlite3.dll with your application, there is no need for this on OSX. You can get sources from the svn. Example usage:
uses
SQLiteTable3,
{$IFDEF DELPHI16_UP}
System.SysUtils;
{$ELSE}
SysUtils;
{$ENDIF}
procedure Demo;
var
slDBpath: string;
db: TSQLiteDatabase;
pstm TSQLitePreparedStatement;
begin
slDBpath := IncludeTrailingPathDelimiter(GetHomePath) + 'test.db';
db := TSQLiteDatabase.Create(slDBpath);
try
if db.TableExists('testtable') then
begin
pstm := TSQLitePreparedStatement.Create(db,
'insert into testtable (name,number) values (?,?)', //sql statement
['NewRec', 99.99]); //parameter values
try
pstm.ExecSQL;
finally
pstm.Free;
end;
end;
finally
db.Free;
end;
end;