SQLite Cole Hoosier [email protected]. Overview RDBMS –Relational database management system ACID...

15
SQLite SQLite Cole Hoosier Cole Hoosier [email protected] [email protected]

Transcript of SQLite Cole Hoosier [email protected]. Overview RDBMS –Relational database management system ACID...

Page 1: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

SQLiteSQLite

Cole HoosierCole [email protected]@ksu.edu

Page 2: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

OverviewOverview

RDBMSRDBMS– Relational database management Relational database management

systemsystem ACID CompliantACID Compliant

– Atomicity, consistency, isolation, Atomicity, consistency, isolation, durabilitydurability

C LibraryC Library Public DomainPublic Domain

Page 3: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

The GoodThe Good

FastFast Zero configurationZero configuration Variable-length recordsVariable-length records Each DB stored in single fileEach DB stored in single file Libraries are small ( <250KB )Libraries are small ( <250KB ) Supports 5 common operating Supports 5 common operating

systemssystems

Page 4: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

The BadThe Bad

No type-checkingNo type-checking– A feature?A feature?

Only one process can obtain write Only one process can obtain write access at a timeaccess at a time

Higher overhead to initialize a Higher overhead to initialize a transactiontransaction

Page 5: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

The UglyThe Ugly

Not SQL-92 CompleteNot SQL-92 Complete– 33rdrd revision of the SQL standard revision of the SQL standard

No “foreign key” constraintsNo “foreign key” constraints No “check” constraintsNo “check” constraints No “grant”/”revoke” access No “grant”/”revoke” access

permissionspermissions

Page 6: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

Supported LanguagesSupported Languages C/C++/Objective-CC/C++/Objective-C JavaJava .NET.NET LispLisp OCamlOCaml PerlPerl PHPPHP Python **Python ** RubyRuby Visual BasicVisual Basic ODBC DriverODBC Driver Many more….Many more….

Page 7: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

Appropriate UsesAppropriate Uses

WebsitesWebsites Embedded DevicesEmbedded Devices Application File FormatApplication File Format Testing and Demo WorkTesting and Demo Work ClassworkClasswork

Page 8: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

Non-Appropriate UsesNon-Appropriate Uses

Client/Server AppsClient/Server Apps Very High-Volume WebsitesVery High-Volume Websites High concurrencyHigh concurrency

Page 9: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

Example (1)Example (1)

Page 10: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

Example (2)Example (2)

Page 11: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

Example (3)Example (3)

Page 12: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

Example (4)Example (4)

Page 13: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

Example (5)Example (5)

Page 14: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

ReferencesReferences

http://www.sqlite.org/http://www.sqlite.org/ http://en.wikipedia.org/wiki/SQLitehttp://en.wikipedia.org/wiki/SQLite http://en.wikipedia.org/wiki/ACIDhttp://en.wikipedia.org/wiki/ACID http://en.wikipedia.org/wiki/http://en.wikipedia.org/wiki/

Comparison_of_relational_database_Comparison_of_relational_database_management_systemsmanagement_systems

Page 15: SQLite Cole Hoosier hoozh@ksu.edu. Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.

??