sql.js vs SQLite
sql.js
sql.js.orgSQLite
sqlite.orgSide by side
| Figure | sql.js | SQLite |
|---|---|---|
| Price from | Free | $12.50/mo |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | Yes |
| Web | Yes | Yes |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | — | Yes |
| iOS | — | Yes |
| Android | — | Yes |
| API | Yes | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 16 |
| Spec score · Embedded Databases | 7.6 (#21) | 8.7 (#3) |
| Documentation | The project provides API documentation for its module, database, statement, and statement iterator. | Documentation includes overview guides, SQL syntax, pragmas, C/C++ APIs, compilation instructions, Android bindings, testing, FAQs and compatibility material. |
| License | The project states that sql.js is MIT licensed. | SQLite source code is in the public domain and is free for commercial or private use without a license. |
| SQL features | The API supports prepared statements and custom JavaScript functions and aggregate functions in SQL. | SQLite implements SQL features including partial indexes, indexes on expressions, JSON, common table expressions, and window functions. |
Plans
SQLite
- Public ForumFree
- SQLiteFree
- SQLite Consortium Membership$150 a year
- Technical Support$885 a year
- Annual Maintenance Subscription$1,500 a year
- Annual Maintenance Subscription$1,500 a year
- CEROD$2,000, paid once
- CEROD$2,000, paid once
- SQLite Encryption Extension (SEE)$2,000, paid once
- SQLite Encryption Extension (SEE)$2,000, paid once
In their own words
SQLite
SQLite is a transactional SQL database engine that runs within an application, without a separate server process or configuration. Each complete database resides in a single disk file that works across platforms. Its SQL features include partial indexes, indexes on expressions, JSON, common table expressions, and window functions. Transactions are atomic, consistent, isolated, and durable, including after system crashes and power failures. A database file can have unlimited simultaneous readers, but only one writer at a time. The project recommends SQLite for device-local storage with low writer concurrency and less than a terabyte of content. SQLite is free for commercial or private use, with source code in the public domain. Downloads include source and precompiled binaries for Android, Linux, Mac OS X, and Windows, along with WebAssembly and JavaScript bundles for web applications. A free public forum is available, alongside paid private email and technical support options. The maker is based in Charlotte, North Carolina, and was founded in 2000.