- Published on
What is SQLite?
- Authors
- Name
- Rahul Neelakantan
- Light Weight – It is a lightweight file-based database, i.e. the entire database is stored in a single file.
- C Language – Library is written in C language & that library is ported to other languages, like C#, Python, etc.
- Most Popular – It is the most used database engine in the world, with over 1 trillion (1e12) SQLite databases in active use.
- Creator – D. Richard Hipp is the man who designed SQLite in the spring of 2000.
- SQL Support – It supports most of the standard SQL features but has few limitations like limited ALTER TABLE function, i.e. as it cannot modify or delete columns.
- Quirks – It uses an unusual type system for an SQL-compatible DBMS, the columns are weakly typed, i.e. a string can be inserted into an integer column.
- Use Cases
- It is used as a cache many times as constant queries to SQL server machines would be slow.
- It can be used for desktop/embedded applications
- For Websites with moderate traffic
- Internal / temporary database
- Situations where SQL Server like databases work better
- Client/Server Applications
- High-Volume Websites
- Huge databases
- High Concurrency
Features of SQLite
- Zero-Configuration – No configuration files are required to work with it. There is no need for an administrator to create a new database instance. It just works.
- Serverless – Most SQL systems require a separate process, SQLite can be operated by your program directly, so no installation/server/machine is required.
- Single Database File – Entire database is stored in a single file. That file can range from a few KBs to GBs, so make sure your file system supports it.
- Stable Cross-Platform Database File – A database file written on one machine can be copied to and used on a different machine with a different architecture like Mac/Windows/Linux etc.
- Compact – SQLite is a compact library that is less than 500 KB.
- Flexible Manifest typing – string can be stored in an integer column if you so need it.
- Variable-length records – In many databases, if we define a string column of fixed length 100 then the database allocates fixed space, but SQLite can have variable length records, thereby reducing space wherever it’s not required.
- Open-source – The SQLite source code is available for download. Download from the link provided below, Also you can use SQLite for Open source/Commercial purposes.