SQLite Study Notes (2)

Source: Internet
Author: User

(1) virtual database engine (vbde), including vbdeProgramProgram counter, result field name and type, parameter binding value, running stack, and fixed number of internal units. Each Command of the vbde virtual machine is composed of one of the 128 operation codes and three operands. C API can directly interact with vbde.

To obtain the vbde program of SQL, you can perform the following operations;

. Mode Column

. Header on

. Width x ......

. Explain select * from Testname;

 

B * tree record: contains two domains: key field and data field. B * tree (tasks are sorted and traversed) pages are composed of B * tree records.

Hierarchical Data Organization Model: The data structure increases from the bottom to the top, and the data sequence increases from the top to the bottom. C API ------ VBED------B-tree ------ pager ------- OS interface ------ database file.

B * tree API classification; access and transaction functions, table functions, cursor functions, record functions,

(2) compiler: the input is a separate SQL command, and the output is an optimized vbde program. In analyzer, analyzer,CodeGenerator.

(3) Word Divider

(4) analyzer;

(5) code generator; without clearly defined interfaces, it is responsible for generating code and optimizing queries.

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.