sq lite presentation
TRANSCRIPT
![Page 1: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/1.jpg)
SQLite Database
PROF. ERWIN M. GLOBIO, MSITRESOURCE SPEAKER
![Page 2: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/2.jpg)
Agenda Overview Features Suggested Uses Tools
![Page 3: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/3.jpg)
Overview
![Page 4: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/4.jpg)
SQLite is…• in-process library• self-contained• serverless• zero-configuration• transactional
• the code is in the public domain
![Page 5: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/5.jpg)
in-process library• SQLite does not have a separate server
process• the library size can be less than 350KiB!• SQLite be made to run in minimal stack
space (4KiB)transactional• SQLite generally runs faster the more
memory you give it!
![Page 6: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/6.jpg)
Self-contained• It requires very minimal support from
external libraries• It requires very minimal support from the
operating system• The only required C library functions called
are: • memset() • memcpy() • memcmp() • strcmp()
• malloc(), free(), and realloc()
![Page 7: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/7.jpg)
Serverless• Most SQL database engines are implemented as a separate
server process. Programs that want to access the database communicate with the server using some kind of interprocess communication (typically TCP/IP) to send requests to the server and to receive back results. SQLite does not work this way. With SQLite, the process that wants to access the database reads and writes directly from the database files on disk. There is no intermediary server process.
• The main advantage is that there is no separate server process to install, setup, configure, initialize, manage, and troubleshoot.
• Any program that is able to access the disk is able to use an SQLite database.
![Page 8: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/8.jpg)
Zero configuration• SQLite does not need to be "installed"
before it is used.• There is no "setup" procedure.• There is no server process that needs to be
started, stopped, or configured.• SQLite uses no configuration files.
SQLite just works.
![Page 9: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/9.jpg)
Transactional• SQLite implements serializable transactions that are atomic, consistent,
isolated, and durable (ACID).
• All changes within a single transaction in SQLite either occur completely or not at all, even if the act of writing the change out to the disk is interrupted by
• a program crash,• an operating system crash, or• a power failure.
![Page 10: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/10.jpg)
Features
![Page 11: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/11.jpg)
Features• Implements most of SQL92.
• RIGHT and FULL OUTER JOIN• Only the RENAME TABLE and ADD COLUMN variants of the ALTER TABLE• VIEWs in SQLite are read-only.
• Supports terabyte-sized databases and gigabyte-sized strings and blobs.
• Faster than popular client/server database engines for most common operations.
• Cross-platform: Unix (Linux, Mac OS-X, Android, iOS) and Windows (Win32, WinCE, WinRT)
![Page 12: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/12.jpg)
Suggested Uses
![Page 13: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/13.jpg)
Suggested Uses• Database For Gadgets
• cellphones, PDAs, MP3 players
• Website Database• Internal or temporary databases
![Page 14: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/14.jpg)
Applications that use it• Browsers
• Mozilla Firefox (bookmarks, cookies, contacts)• Google Chrome• Opera
• Applicazioni• Skype• Adobe AIR• Flame (anche gli hakers lo usano!)• SpiceWorks (software per sistemisti e help desk)
![Page 15: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/15.jpg)
Tools
![Page 16: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/16.jpg)
demo
SQLite Expert
![Page 17: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/17.jpg)
![Page 18: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/18.jpg)
![Page 19: Sq lite presentation](https://reader035.vdocuments.net/reader035/viewer/2022062514/5580b777d8b42ac6088b4c8d/html5/thumbnails/19.jpg)
Thank you!