Professional Documents
Culture Documents
Case Study - SQL Lite Database
Case Study - SQL Lite Database
Case Study - SQL Lite Database
37
Department of Computer Engineering
SY. B. Tech.
CASE STUDY
Title : SQLite
Database
1
VISHWAKARMA INSTITUTE OF TECHNOLOGY, PUNE-
37
Department of Computer Engineering
Overview :
Fig No. 01
Description :
SQLite A Brief History :
● 2000 - D. Richard Hipp designed SQLite for the purpose of
no administration required for operating a program.
● 2000 - In August, SQLite 1.0 released with GNU Database Manager.
● 2011 - Hipp announced to add UNQl interface to SQLite DB and to
develop UNQLite (Document oriented database).
2
VISHWAKARMA INSTITUTE OF TECHNOLOGY, PUNE-
37
Department of Computer Engineering
What is SQLite?
SQLite is an in-process library that implements a self-contained, serverless, zero-
configuration, transactional SQL database engine. It is a database, which is zero-
configured, which means like other databases you do not need to configure it in
your system.
SQLite engine is not a standalone process like other databases, you can link it
statically or dynamically as per your requirement with your application. SQLite
accesses its storage files directly.
Why SQLite?
● SQLite does not require a separate server process or system to
operate (serverless).
● SQLite comes with zero-configuration, which means no setup
or administration needed.
● A complete SQLite database is stored in a single cross-platform disk file.
● SQLite is very small and lightweight, less than 400KiB fully configured
or less than 250KiB with optional features omitted.
● SQLite is self-contained, which means no external dependencies.
● SQLite transactions are fully ACID-compliant, allowing safe access from
multiple processes or threads.
● SQLite supports most of the query language features found in
SQL92 (SQL2) standard.
● SQLite is written in ANSI-C and provides a simple and easy-to-use API.
3
VISHWAKARMA INSTITUTE OF TECHNOLOGY, PUNE-
37
Department of Computer Engineering
Features of SQLite :
SQLite has the following noticeable features: serverless, self-
contained, zero-configuration, transactional.
1] Serverless
SQLite database is integrated with the application that accesses the database. The
applications interact with the SQLite database read and write directly from the
database files stored on disk.
Fig No. 02
4
VISHWAKARMA INSTITUTE OF TECHNOLOGY, PUNE-
37
Department of Computer Engineering
2] Self-Contained
SQLite is developed using ANSI-C. The source code is available as a big sqlite3.c
and its header file sqlite3.h. If you want to develop an application that uses SQLite,
you just need to drop these files into your project and compile it with your code.
3] Zero-configuration
Because of the serverless architecture, you don’t need to “install” SQLite before
using it. There is no server process that needs to be configured, started, and
stopped.
4] Transactional
All transactions in SQLite are fully ACID-compliant. It means all queries and
changes are Atomic, Consistent, Isolated, and Durable.
In other words, all changes within a transaction take place completely or not at all
even when an unexpected situation like application crash, power failure, or
operating system crash occurs.
5
VISHWAKARMA INSTITUTE OF TECHNOLOGY, PUNE-
37
Department of Computer Engineering
MySQL vs SQLite
Fig No. 03
MySQL SQLite
1] MySQL is an open source project 1] SQLite is an open source project
which is owned by Oracle. available in the public domain
2] MySQL requires a database server. 2] SQLite does not require a server to
Hence, it is client/server architecture. run. Hence, it is serverless.
6
VISHWAKARMA INSTITUTE OF TECHNOLOGY, PUNE-
37
Department of Computer Engineering
Conclusion :
References :
1] https://www.sqlitetutorial.net/sqlite-sample-database/
2] https://en.wikipedia.org/wiki/SQLite
3] https://www.sqlite.org/whentouse.html
4] https://www.sqlite.org/
5] https://www.tutorialspoint.com/sqlite/sqlite_overview.html
6]https://medium.com/swlh/5-reasons-to-use-sqlite-the-tiny-giant-for-your-next-pr
oje ct-a6bc384b2df4