News for hackers. Stuff that matters.
Re:Single-file public-domain/open source C libraries with mi... by zyxley on Saturday January 23, 2016 @12:52AM (#10957371)
> The amalgamation is a single C code file, named "sqlite3.c", that contains all C code for the core SQLite library and the FTS3, FTS5, RTREE, DBSTAT, JSON1, and RBU extensions. This file contains about 184K lines of code (113K if you omit blank lines and comments) and is over 6.4 megabytes in size. Though the the various extensions are included in the "sqlite3.c" amalgamation file, they are disabled using #ifdef statements.

https://www.sqlite.org/amalgamation.html

Re:Single-file public-domain/open source C libraries with mi... by userbinator on Saturday January 23, 2016 @10:01AM (#10958566)
In other words, it's stretching the definition of "single file" a bit... but then again, I don't know any other SQL databases anywhere near as small as SQLite.
Re:Single-file public-domain/open source C libraries with mi... by srpeck on Sunday January 24, 2016 @09:32AM (#10962587)
Smallest commercially viable SQL database is probably the latest k5/kdb (http://kparc.com/), which is implemented in something like 9KB of code (source: http://kparc.com/o.htm).