SQLite (/ˌɛskjuːɛlˈlaɪt/[3] or /ˈsiːkwəl.laɪt/[4]) is a relational database management system contained in a C programming library. In contrast to many other database management systems, SQLite is not a client–server database engine. Rather, it is embedded into the end program.
SQLite is ACID-compliant and implements most of the SQL standard, using a dynamically and weakly typed SQL syntax that does not guarantee the domain integrity.[5]
SQLite is a popular choice as embedded database software for local/client storage in application software such as web browsers. It is arguably the most widely deployed database engine, as it is used today by several widespread browsers, operating systems, and embedded systems, among others.[6] SQLite has bindings to many programming languages.
Contents [show]
Design[edit]
Unlike client–server database management systems, the SQLite engine has no standalone processes with which the application program communicates. Instead, the SQLite library is linked in and thus becomes an integral part of the application program. The library can also be called dynamically. The application program uses SQLite's functionality through simple function calls, which reduce latency in database access: function calls within a single process are more efficient than inter-process communication. SQLite stores the entire database (definitions, tables, indices, and the data itself) as a single cross-platform file on a host machine. It implements this simple design by locking the entire database file during writing. SQLite read operations can be multitasked, though writes can only be performed sequentially.
Due to the server-less design, SQLite applications require less configuration than client-server databases. SQLite is called zero-conf[7] because it does not require service management (such as startup scripts) or access control based on GRANT and passwords. Access control is handled by means of File system permissions given to the database file itself. Databases in client-server systems use file system permissions which give access to the database files only to the daemon process.
Another implication of the serverless design is that several processes may need to be able to write to the database file. In server-based databases, several writers will all connect to the same daemon, which is able to handle its locks internally. SQLite on the other hand has to rely on file-system locks. It has less knowledge of the other processes that are accessing the database at the same time. Therefore, SQLite is not the preferred choice for write-intensive deployments.[8] However, for simple queries with little concurrency, SQLite performance profits from avoiding the overhead of passing its data to another process.
SQLite uses PostgreSQL as a reference platform. “What would PostgreSQL do” is used to make sense of the SQL standard.[9][10] One major deviation is that, with the exception of primary keys, SQLite does not enforce type checking; the type of a value is dynamic and not strictly constrained by the schema (although the schema will trigger a conversion when storing, if such a conversion is potentially reversible). SQLite strives to follow Postel's Rule.
SQLite ( / ˌɛ skju ːɛผมˈลาɪ T / [ 3 ] หรือ / ˈศรีːกิโลวัตต์เพลงชาติ l.la ɪ T / [ 4 ] ) เป็นฐานข้อมูลเชิงสัมพันธ์ระบบการจัดการที่มีอยู่ในโปรแกรมห้องสมุด ในทางตรงกันข้ามกับหลายระบบการจัดการฐานข้อมูลอื่น ๆ , SQLite ไม่ได้–ไคลเอ็นต์เซิร์ฟเวอร์ฐานข้อมูลเครื่องยนต์ แต่มันถูกฝังลงในโปรแกรมจบ
SQLite เป็นกรดและสอดคล้องกับการใช้ส่วนใหญ่ของ SQL มาตรฐานใช้แบบไดนามิกและป้อแป้พิมพ์ SQL ไวยากรณ์ที่ไม่รับประกันโดเมนที่สมบูรณ์ . [ 5 ]
SQLite เป็นทางเลือกที่เป็นที่นิยมเป็นฐานข้อมูลแบบฝังตัวซอฟต์แวร์ท้องถิ่น / ลูกค้ากระเป๋าในโปรแกรมซอฟต์แวร์เช่นเว็บเบราว์เซอร์ มันเป็น arguably ที่ใช้กันอย่างกว้างขวางมากที่สุดเครื่องมือฐานข้อมูล เป็นใช้อย่างกว้างขวางโดยวันนี้หลายเบราว์เซอร์ ระบบปฏิบัติการ และระบบสมองกลฝังตัว , หมู่คนอื่น ๆ[ 6 ] SQLite มีผูกภาษาโปรแกรมหลาย .
[ ]
เนื้อหาแสดงการออกแบบ [ แก้ไข ]
แตกต่างจากลูกค้าและเซิร์ฟเวอร์ระบบการจัดการฐานข้อมูล SQLite เครื่องยนต์ไม่มีกระบวนการแบบสแตนด์อโลนซึ่งโปรแกรมสื่อสาร . แทน , SQLite ห้องสมุดเชื่อมโยงและจึงกลายเป็นส่วนหนึ่งของโปรแกรมประยุกต์ ห้องสมุดยังสามารถเรียกแบบไดนามิกโปรแกรมที่ใช้เรียกฟังก์ชันการทำงานผ่านของ SQLite ง่ายซึ่งช่วยลดความล่าช้าในการเข้าถึงฐานข้อมูล : เรียกฟังก์ชันภายในขั้นตอนเดียวที่มีประสิทธิภาพกว่า อินเตอร์ กระบวนการสื่อสาร ร้านค้า SQLite ฐานข้อมูลทั้งหมด ( ความหมาย , ตาราง , ดัชนี , ข้อมูลตัวเอง ) เป็นไฟล์ข้ามแพลตฟอร์มเดียวบนโฮสต์เครื่องมันใช้ง่ายในการออกแบบนี้ด้วยการล็อคแฟ้มฐานข้อมูลทั้งหมดในการเขียน สามารถอ่านการดำเนินงานสามารถ multitasked แม้ว่าเขียนสามารถแสดงความสามารถ
เนื่องจากเซิร์ฟเวอร์แบบไม่ต้องปรับแต่งการใช้งาน SQLite น้อยกว่าฐานข้อมูลเซิร์ฟเวอร์ของลูกค้าSQLite เรียกว่าศูนย์ conf [ 7 ] เพราะมันไม่ต้องมีการจัดการบริการ ( เช่นสคริปต์เริ่มต้น ) หรือควบคุมการเข้าถึงตามสิทธิ์ และ รหัสผ่าน การควบคุมการเข้าถึงจะถูกจัดการโดยระบบแฟ้มสิทธิ์ให้กับไฟล์ฐานข้อมูลนั่นเอง ฐานข้อมูลในระบบเซิร์ฟเวอร์ที่ลูกค้าใช้สิทธิ์ระบบแฟ้มที่ให้การเข้าถึงฐานข้อมูลไฟล์เฉพาะกระบวนการดีมอน
อีกความหมายของการออกแบบ serverless คือกระบวนการต่าง ๆ จะต้องสามารถเขียนไปยังแฟ้มฐานข้อมูล ในเซิร์ฟเวอร์ฐานข้อมูลนักเขียนหลายทั้งหมดจะเชื่อมต่อกับเซิร์ฟเวอร์เดียวกันที่สามารถจัดการกับการล็อคภายใน SQLite บนมืออื่น ๆที่ต้องพึ่งพาระบบแฟ้มล็อคมีความรู้น้อยของกระบวนการอื่น ๆที่มีการเข้าถึงฐานข้อมูลพร้อมกัน ดังนั้น , SQLite ไม่ได้เป็นทางเลือกที่ดีสำหรับการเขียนแบบเข้มข้น ) [ 8 ] อย่างไรก็ตาม ค้นหาง่ายด้วยการเล็ก ๆน้อย ๆ , การแสดงผลกำไรจาก SQLite หลีกเลี่ยงค่าใช้จ่ายของการส่งผ่านข้อมูลไปยังกระบวนการอื่น
ใช้ PostgreSQL SQLite เป็นอ้างอิงแพลตฟอร์ม" อะไร จะใช้ PostgreSQL แล้ว " ให้ความรู้สึกของมาตรฐาน SQL [ 9 ] [ 10 ] เป็นหลักส่วนที่มีข้อยกเว้นของคีย์หลัก SQLite ไม่ได้บังคับใช้การตรวจสอบชนิด ชนิดของค่าเป็นแบบไดนามิกและไม่ จำกัด อย่างเคร่งครัดโดยสคีมา ( Schema จะเรียกการเปลี่ยนแปลงแม้ว่า เมื่อเก็บ ถ้าเช่นการแปลงอาจย้อนกลับได้ )SQLite มุ่งมั่นที่จะปฏิบัติตามกฎ พอ ทล .
การแปล กรุณารอสักครู่..
