github.com/sqlite/sqlite ↗
Official Git mirror of the SQLite source tree
Open this visualization on its own page →
Contributors
34
Lines of Code
102,541
From
2000-05-29
To
2022-05-16
About sqlite/sqlite
SQLite is a complete, self-contained SQL database engine written in C that has been actively developed since 2000. The repository contains the full source code history, comprehensive test suites, and documentation for building the database library. It serves as the official Git mirror of SQLite's source tree, though the authoritative version control system is Fossil, a distributed version control system designed specifically to support SQLite development.
The codebase is modular and highly optimized for both small size and performance, featuring key components like a SQL parser generated from a grammar file, a virtual machine that executes prepared statements, a query optimizer, and a B-tree storage engine with transaction support through a pager module. SQLite can be compiled as a single unified source file called the amalgamation, which enables better compiler optimization and is the recommended approach for embedding SQLite in larger applications. The project includes extensive build infrastructure supporting compilation on Unix-like systems and Windows with MSVC, along with comprehensive test infrastructure written in TCL.
The SQLite source code is in the public domain, which means the project does not accept pull requests to maintain the code's unencumbered status. The repository is maintained for developers who need to build SQLite from source or understand its internals, with separate repositories managing most user-facing documentation and additional testing infrastructure. Developers can contribute through the SQLite Forum or contact the lead developer directly for security-related issues.