SQLite Architecture (the Architecture of SQLite)

Source: Internet
Author: User
Tags generator sqlite

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.