SQLITE TRANSPLANT
SQLite is an excellent embedded database engine. It
supports most of SQL92 standard syntax, and its architecture
primarily consists of 8 modules composed of three subsystems.
The module of API interface provides functions for
external. The Word Breaker (Tokenizer) and Analyzer (Parser)
in the compiler check the syntax of the SQL sentence, and put
the sentence into the hierarchical data structures —syntax tree,
which is facilitate for following parts. The Code Generator
produces a type of assembly code for SQLite according to the
syntax tree, and the Virtual Machine implements the code.
Virtual Machine is mainly an abstract computing engine
designed for the operation of the database. The Back Part
includes the B-tree, page cache, and the operating system
interfaces. B-tree is mainly to support the index, maintain the
complex relationship between the various pages, and find the
required data easily and quickly. The main role of the page
cache is to transfer pages between B-tree and the hard disk
through the operating system interface.
All I/O operations in SQLite are eventually converted into
operating system calls. SQLite source code has provided
operating system interface functions for Windows, WinCE,
Unix, OS2, but not for μC/OS-II. Corresponding functions
need to be added, which is difficult and complex. Fortunately,
there are little operating system restrictions on SQLite. With
the help of SQLite source code for Windows and μC / FS,
interface functions for μC/OS-II are implemented.
In the process of rewriting the code of interface functions,
SQLite source code for Windows which are mainly in os_win.c, is greatly referred. However, μC/OS-II is quite
incomplete compared with Windows, many data structures and
functions in windows cannot find their counterparts in μC/OSII.
That brings a lot of trouble to rewrite them. The author
rewrites most of functions needed according to his own
understanding, but with simplification, and may make the
database much less colorful.
SQLite SQLite เป็นเลิศปลูกถ่าย
ฝังตัวเครื่องยนต์ฐานข้อมูล มัน
สนับสนุนมากที่สุดของ sql92 ไวยากรณ์มาตรฐาน และสถาปัตยกรรม
หลักประกอบด้วย 8 หน่วย ประกอบด้วย 3 ระบบย่อยดังนี้
โมดูล API อินเตอร์เฟซมีฟังก์ชั่นสำหรับ
ภายนอก คำว่า Breaker ( tokenizer ) และวิเคราะห์ ( parser ) ตรวจสอบ
ในคอมไพเลอร์ของไวยากรณ์ SQL และใส่
ประโยคประโยคในลำดับชั้นโครงสร้างต้นไม้วากยสัมพันธ์ - ข้อมูลที่อำนวยความสะดวกสำหรับการติดตาม
, ชิ้นส่วน รหัสเครื่องกำเนิดไฟฟ้า
ผลิตชนิดของรหัสประกอบ SQLite ตาม
ต้นไม้ไวยากรณ์และเครื่องเสมือนใช้รหัส .
เครื่องเสมือนเป็นนามธรรมคอมพิวเตอร์เครื่องยนต์
ออกแบบมาสำหรับการดำเนินงานของฐานข้อมูล ส่วนย้อนกลับ
รวมถึงต้นไม้ , แคชหน้าและระบบปฏิบัติการ
interfaces . ต้นไม้เป็นหลักเพื่อสนับสนุนดัชนีรักษา
ความสัมพันธ์ที่ซับซ้อนระหว่างหน้าต่าง ๆ และหา
ข้อมูลที่ต้องการได้อย่างสะดวกและรวดเร็ว บทบาทหลักของหน้า
แคชโอนหน้าระหว่างต้นไม้และฮาร์ดดิสก์
ผ่านทางอินเตอร์เฟซระบบปฏิบัติการ .
ทั้งหมด I / O การดำเนินงานใน SQLite ในที่สุดก็แปลงเป็น
ระบบปฏิบัติการโทรศัพท์SQLite ซอร์สโค้ดให้
ระบบปฏิบัติการสำหรับ Windows อินเตอร์เฟซฟังก์ชั่นเด็ดขาด
, , UNIX , os2 แต่ไม่ได้μ C / os-ii . ที่ฟังก์ชัน
ต้องเพิ่ม ซึ่งเป็นเรื่องยากและซับซ้อน โชคดี
มีเล็กน้อยระบบปฏิบัติการจำกัดใน SQLite . กับ
ช่วยเหลือของ SQLite รหัสแหล่งที่มาสำหรับ Windows และμ C / FS ,
อินเตอร์เฟซฟังก์ชั่นสำหรับμ c /
os-ii จะดําเนินการในกระบวนการของการเขียนโค้ดของฟังก์ชั่นอินเตอร์เฟซ
SQLite รหัสแหล่งที่มาสำหรับ Windows ซึ่งเป็นหลักใน os_win . C เป็นอย่างมาก เรียกว่า อย่างไรก็ตาม μ C / os-ii ค่อนข้าง
สมบูรณ์เมื่อเทียบกับ Windows หลายโครงสร้างข้อมูลและฟังก์ชันใน Windows ไม่สามารถหา
คู่ของพวกเขาในμ C / osii .
ที่นำปัญหามากมายที่จะเขียนพวกเขา . ผู้เขียน
เขียนใหม่ที่สุดของฟังก์ชันที่จำเป็นตามความเข้าใจของตัวเอง
, แต่ด้วยราคา และอาจทำให้
ฐานข้อมูลที่มีสีสันมากน้อย
การแปล กรุณารอสักครู่..
