tinySQL

discontinued

by Brian Jepson, later maintained by Davis Swan · since 1996 · also known as tinySQL JDBC

Tiny 1990s pure-Java SQL engine and JDBC driver over dBase (DBF) and text files; unmaintained since 2007.

relationalembedded libraryopen source (copyleft)legacy

discontinued. Last release 2.26 (March 2007) on SourceForge; no maintenance since. Use H2, HSQLDB or SQLite for embedded SQL.

Overview

tinySQL is a lightweight SQL engine written entirely in Java, first shipped with Brian Jepson's 1996 book Java Database Programming. It parses a subset of SQL (SELECT with simple joins, INSERT, UPDATE, DELETE, CREATE/ALTER/DROP TABLE) and executes it against xBase DBF files or flat text files, exposing everything through its own JDBC driver and a small command-line client. It was never meant to be fast; its value was showing how a SQL layer and a JDBC driver can sit on top of non-SQL data. The project moved to SourceForge in 2003 under Davis Swan; the last release, 2.26, dates from March 2007.

Strengths & trade-offs

Strengths

  • +Very small, readable Java codebase showing how a SQL parser and JDBC driver fit together
  • +Reads and writes dBase DBF files that spreadsheets of its era could open
  • +Architecture lets you put a SQL front end over non-SQL sources such as text files

Trade-offs

  • −Abandoned since 2007; targets very old Java versions
  • −Partial SQL: WHERE supports only AND, joins were documented as buggy on dBase files
  • −No locking, transactions or indexes worth relying on

Great for

  • +Studying a minimal SQL engine and JDBC driver implementation
  • +Reading legacy DBF files from old Java code

Think twice for

  • −Any production or multi-user workload
  • −Modern Java applications

Capabilities

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

✓Joins
✓Durable persistence
–Transactions
–Secondary indexes
–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
–Role-based access
–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
None
Consistency
Strong
Schema
Strict
Architecture
Embedded, Single node
Query languages
SQL (subset)

Toy-scale; no query optimisation and limited WHERE support (AND only).

Deployment

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

Ecosystem

apis & protocolsJDBC
client languagesJava

Alternatives to tinySQL

Compare all→
H2 DatabaseRelational23.5

Fast pure-Java SQL engine for embedded, in-memory and test databases, with compatibility modes.

tinysql vs h2 →
HyperSQL (HSQLDB)Relational9.4

Long-running pure-Java SQL database with strong SQL:2023 coverage, used embedded and in LibreOffice.

tinysql vs hsqldb →
Apache DerbyRelational9.6

Pure-Java embedded SQL database from the Cloudscape lineage, retired by Apache in 2025.

tinysql vs apache-derby →
SQLiteRelational75.5

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

tinysql vs sqlite →
Microsoft AccessRelational45.8

Desktop database and forms builder bundled with Microsoft 365; still everywhere in back offices.

tinysql vs microsoft-access →
FirebirdRelational32.8

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

tinysql vs firebird →

tinySQL FAQ

What is tinySQL?

tinySQL is a relational database by Brian Jepson, later maintained by Davis Swan, first released in 1996. tinySQL is a lightweight SQL engine written entirely in Java, first shipped with Brian Jepson's 1996 book Java Database Programming. It parses a subset of SQL (SELECT with simple joins, INSERT, UPDATE, DELETE, CREATE/ALTER/DROP TABLE) and executes it against xBase DBF files or flat text files, exposing everything through its own JDBC driver and a small command-line client. It was never meant to be fast; its value was showing how a SQL layer and a JDBC driver can sit on top of non-SQL data. The project moved to SourceForge in 2003 under Davis Swan; the last release, 2.26, dates from March 2007.

Is tinySQL open source?

Yes. tinySQL is open source. License: GNU LGPL.

Does tinySQL support ACID transactions?

No. tinySQL does not provide ACID transactions; its consistency model is strong.

Does tinySQL scale horizontally?

tinySQL 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 tinySQL?

You can self-host it and embed it in your application.

What is tinySQL best for?

tinySQL is a strong fit for studying a minimal SQL engine and JDBC driver implementation; and reading legacy DBF files from old Java code. Think twice for any production or multi-user workload.

What are the best alternatives to tinySQL?

Common alternatives to tinySQL include H2 Database, HyperSQL (HSQLDB), Apache Derby, SQLite and Microsoft Access. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is tinySQL still maintained?

tinySQL is discontinued. Last release 2.26 (March 2007) on SourceForge; no maintenance since. Use H2, HSQLDB or SQLite for embedded SQL.

How popular is tinySQL?

tinySQL has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.