ThinkSQL

maintenance

by Greg Gaughan · since 2000

One developer's ISO-SQL relational server written in Delphi, with MVCC; open-sourced under GPL in 2012.

relationaldatabase engineopen source (copyleft)legacy

maintenance. Source on GitHub (GPL) since 2012 with no development since 2018; the website remains as an archive. Firebird or PostgreSQL are maintained alternatives.

Overview

ThinkSQL is Greg Gaughan's cross-platform relational database server, written in Object Pascal (Delphi and Kylix) with the goal of following the ISO SQL standard closely: transactions, sub-selects, views, set operators, privileges and full referential constraints, on a multi-threaded server with multi-version concurrency control, hash indexes for joins, online backups and a statistical query optimizer. It shipped native ODBC, JDBC, dbExpress and Python DB-API drivers. Sold commercially in the early 2000s, with version 1.04 in 2004 and royalty-free redistribution licences, its server source was released on GitHub under the GPL on 1 January 2012 and has seen almost no changes since. It is a rare, readable example of a complete SQL engine built by one person.

Strengths & trade-offs

Strengths

  • +Close adherence to ISO SQL, including views, set operators and referential constraints
  • +MVCC on a multi-threaded server with online backups
  • +Readable Pascal codebase useful for learning how a full SQL server works

Trade-offs

  • −Essentially unmaintained since its 2012 source release
  • −Delphi/Kylix toolchain is hard to build today
  • −No replication or modern features

Great for

  • +Studying a complete single-author SQL server
  • +Maintaining older applications built on it

Think twice for

  • −New production systems
  • −High availability or scale-out needs

Capabilities

Native or official first-party support · 5 of 25 tracked

✓Transactions
✓Joins
✓Secondary indexes
✓Durable persistence
✓Role-based access
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Full ACID
Consistency
Strong
Schema
Strict
Architecture
Client server, Single node
Query languages
SQL

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsODBC, JDBC, dbExpress, Python DB-API
client languagesJava, Python, Delphi, C

Alternatives to ThinkSQL

Compare all→
FirebirdRelational32.8

Lightweight, MVCC relational database from the InterBase lineage, embeddable or client-server.

thinksql vs firebird →
PostgreSQLRelational93.2

The extensible, standards-first open-source relational database.

thinksql vs postgresql →
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

thinksql vs sqlite →
InterBaseRelational18.3

Embarcadero's small-footprint SQL database for servers and embedded apps, with built-in AES encryption.

thinksql vs interbase →
Progress OpenEdgeRelational20.4

Integrated RDBMS plus ABL 4GL application platform behind thousands of ERP and vertical business apps.

thinksql vs progress-openedge →
MultigresRelational12.4

Alpha-stage, Vitess-inspired sharding, pooling and HA layer for unmodified PostgreSQL, led by Supabase.

thinksql vs multigres →

ThinkSQL FAQ

What is ThinkSQL?

ThinkSQL is a relational database by Greg Gaughan, first released in 2000. ThinkSQL is Greg Gaughan's cross-platform relational database server, written in Object Pascal (Delphi and Kylix) with the goal of following the ISO SQL standard closely: transactions, sub-selects, views, set operators, privileges and full referential constraints, on a multi-threaded server with multi-version concurrency control, hash indexes for joins, online backups and a statistical query optimizer. It shipped native ODBC, JDBC, dbExpress and Python DB-API drivers. Sold commercially in the early 2000s, with version 1.04 in 2004 and royalty-free redistribution licences, its server source was released on GitHub under the GPL on 1 January 2012 and has seen almost no changes since. It is a rare, readable example of a complete SQL engine built by one person.

Is ThinkSQL open source?

Yes. ThinkSQL is open source. License: GNU GPL v2.

Does ThinkSQL support ACID transactions?

Yes. ThinkSQL supports full ACID transactions, with strong consistency.

Does ThinkSQL scale horizontally?

ThinkSQL does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run ThinkSQL?

You can self-host it.

What is ThinkSQL best for?

ThinkSQL is a strong fit for studying a complete single-author SQL server and maintaining older applications built on it. Think twice for new production systems.

What are the best alternatives to ThinkSQL?

Common alternatives to ThinkSQL include Firebird, PostgreSQL, SQLite, InterBase and Progress OpenEdge. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is ThinkSQL still maintained?

ThinkSQL is in maintenance mode. Source on GitHub (GPL) since 2012 with no development since 2018; the website remains as an archive. Firebird or PostgreSQL are maintained alternatives.

How popular is ThinkSQL?

ThinkSQL ranks #655 of 844 databases on the WhichDB Score (0.4/100), and #197 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.