Introduced
This document describes the basic architecture of the SQLite library. Very helpful to those who want to understand and modify SQLite.
The following chart shows the components of SQLite and the relationships between them.
Interface (INTERFACE) the implementation functions of SQLite's many external interfacesmain.c, legacy.c and vdbeapi.c. Also with some scattered in other files, thesqlite3_get_table () function is implemented in the table.c,sqlite3_mprintf () function in printf.c,sqlite3 _complete () in tokenize.c. For more information on SQLite, please visit available separately.
In order not to generate naming conflicts with other code, all SQLite APIs are named tothe sqlite3_ is prefixed.
Tokenizer and parserNote: Tokenizer is responsible for parsing the SQL statements into a "string", and Paser is based on these "strings" of the sequence relationship to generate the corresponding grammatical structure.
Code Generator (code generator) generates high-efficiency code that virtual machine can perform to execute codes Generator generated by virtual machine
B-treesqlite database files are stored on disk in a B-tree data structure
Http://www.sqlite.org/arch.html
SQLite Architecture (the Architecture of SQLite)