r/freepascal • • Jan 26 '26

[ANN] NDXSQLite - Professional SQLite Library for Free Pascal/Lazarus

I'm excited to share NDXSQLite, a modern SQLite wrapper I've been working on for Free Pascal and Lazarus.

Features

  • Native SQLite3 API - Direct bindings, no SQLDB dependency

  • Thread-safe - Connection pooling with statistics

  • SQLCipher support - Transparent AES-256 database encryption

  • Schema migrations - Version-controlled database evolution

  • TDataSet compatible - Works with Lazarus DB-aware controls

  • Cross-platform - Linux, Windows, macOS (including Apple Silicon)

What's included

  • 30+ classes covering all SQLite features

  • 149 console examples + 10 GUI examples

  • Full documentation (API reference, architecture, security guide)

  • Comprehensive test suite

Quick example

uses ndxsqliteconnection, ndxsqliteconnectionoptions;

var

Conn: TNDXSQLiteConnection;

begin

Conn := TNDXSQLiteConnection.Create('myapp.db');

try

Conn.Open;

Conn.ExecuteNonQuery('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)');

Conn.ExecuteNonQuery('INSERT INTO users (name) VALUES (?)', ['Alice']);

WriteLn('Count: ', Conn.ExecuteScalar('SELECT COUNT(*) FROM users'));

finally

Conn.Free;

end;

end.

GitHub: https://github.com/NDXDeveloper/NDXSQLite

License: MIT

Feedback and contributions welcome!

18 Upvotes

Duplicates