Monday, October 7, 2019

SQLite Introduction

SQLite Introduction

SQL (Structured Query Language) is a special programming language that is designed for handling and managing data held in a Relation database management system (RDBMS). 

As the name suggest, SQLite is a lightest version of SQL. It does not require any Server, No configuration.

In the simplest terms, SQLite is a public-domain software package that provides a relational database management system, or RDBMS.

The “Lite” in SQLite does not refer to its capabilities. Rather, SQLite is lightweight when it comes to setup complexity, administrative overhead, and resource usage.

Overview of SQLite

SQLite is an open source embedded relational database management system or RDBMS contained in a C programming library. Relational database systems are used to store data in large tables.

In contrast to other popular RDBMS products like Oracle Database, IBM’s DB2, and Microsoft’s SQL Server, SQLite does not require any administrative overhead or any setup complexity.

As the other databases are working as a standalone process, SQLite is a not working as a standalone process. You have to link it with your application statically or dynamically.

SQLite uses dynamically and weakly typed SQL for column. It means you can store any value in any column, regardless of the data type. SQLite implements most of the SQL92 standard. 

Features of SQLite

Following are the features of SQLite databases.

Server less: SQLite does not require a separate server process or system to operate. The SQLite library accesses its storage files directly.

Zero Configuration: No server means no setup. Creating a SQLite database instance is as easy as opening a file.

Cross-Platform: A complete SQLite database is stored in a single cross-platform disk file, requiring no administration.

Self-Contained: A single library contains the entire database system, which integrates directly into a host application.

Transactional: SQLite transactions are fully ACID-compliant means all queries are Atomic, Consistent, Isolated, and Durable.

Light-weight: As the name suggests “Lite”, SQLite is very small and light weight.

Familiar language: Familiar query language for database developers and admins.

Highly Reliable: The SQLite development team takes code testing and verification very seriously.

Weakness of SQLite

Following are the drawbacks of SQLite database.

  • SQLite not works well in client/server Architecture.
  • If you are using SQLite as backend for High-volume website, SQLite does not works fine as compared to enterprise client/server database.
  • A SQLite database is limited in size to 140 terabytes (TB). SQLite stores the whole database in Single Disk File. Many file systems not allow these much size of file.
  • SQLite has not Implemented RIGHT OUTER JOIN and FULL OUTER JOIN. With SQLite we can only implement LEFT OUTER JOIN.
  • It is not possible to rename a columnremove a column, or add / remove constraints from a table in SQLite. While you can always create a new table and then drop the older one.
  • Views in SQLite are read-only. We can’t use DML statements (Insert, Update, and Delete) with Views.
  • We cannot use GRANT and REVOKE statement with SQLite.
These are the features, advantages and disadvantages of using SQLite in our applications.

No comments:

Post a Comment

Lab 09: Publish and subscribe to Event Grid events

  Microsoft Azure user interface Given the dynamic nature of Microsoft cloud tools, you might experience Azure UI changes that occur after t...