What is SQLite?

In this post, we will discuss about SQLite – A Thin Relational Database.

SQLite is used in most of the applications which need less complicated relational database.

SQLite is embedded in every Android device and it provides phenomenal support to perform database operations in Android via in built Android APIs.

Here are the quick links:

Quick Links

What is SQLite?

SQLite is an Open Source database. SQLite supports standard relational database features like SQL syntax, transactions and prepared statements. The database requires limited memory at runtime (approx. 250 KByte) which makes it a light weight database to embed into other runtimes.
SQLite Logo
SQLite supports the data types TEXT (like String in Java), INTEGER (like long in Java) and REAL (like double in Java). All other types must be converted into one of these fields before getting saved in the database. SQLite itself does not validate if the types written to the columns are actually of the defined type, e.g. you can write an integer into a string column and vice versa.
[pgsubscribe]

SQLite is different from most other SQL database engines in that its primary design goal is to be simple:

  1. Simple to administer
  2. Simple to operate
  3. Simple to embed in a larger program
  4. Simple to maintain and customize

Features of SQLite

  1. Zero configuration – SQLite does not need to be Installed as there is no setup procedure to use it.
  2. Serverless – SQLite is not implemented as a separate server process. With SQLite, the process that wants to access the database reads and writes directly from the database files on disk as there is no intermediary server process.
  3. Stable Cross-Platform Database File – The SQLite file format is cross-platform. A database file written on one machine can be copied to and used on a different machine with a different architecture.
  4. Single Database File – An SQLite database is a single ordinary disk file that can be located anywhere in the directory hierarchy.
  5. Compact – When optimized for size, the whole SQLite library with everything enabled is less than 400KB in size

Advantages of using SQLite

Below are the advantages of using SQLite:

  1. There is no file parsing and no need to generate code to read/write/update the file.
  2. Content can be accessed and updated using powerful SQL queries, greatly reducing the complexity of the application code.
  3. Extending the file format for new capabilities in later releases is a simple as adding new tables or new columns to existing tables.
  4. Diverse content which might otherwise be stored as a “pile-of-files” can be encapsulated into a single disk file.
  5. The content can be viewed using third-party tools like Toad.
  6. The application file is portable across all operating systems, 32-bit and 64-bit and big- and little-endian architectures.
  7. The application only has to load as much data as it needs, rather than reading the entire application file and holding a complete parse in memory. Startup time and memory consumption are reduced.
  8. Small edits only overwrite the parts of the file that change, not the entire file, thus improving performance and reducing wear on SSD drives.
  9. Content is updated continuously and automically so that there is no work lost in the event of a power failure or crash.
  10. Performance problems can often be resolved using CREATE INDEX rather than redesigning, rewriting, and retesting application code.
  11. Well Known Users of SQLite

    Adobe
    Mozilla
    Google
    McAfee
    Skype
    PHP
    Microsoft

    Reference

    http://www.sqlite.org/
    [pgwriteforus]
    [pgfeedback]

Related Articles

Author: Udhay

Share This Post On
468 ad
  • Jade

    Well, said great introduction and well defined.Keep up the good writings.

  • Thanks You!

Join now to get more access to our Android Tutorials

Join now to get more access to our Android Tutorials

Once you Join, you will receive Mail containing latest Android Tutorials once a month !!

I promise I wont spam you !!

You have Successfully Subscribed!

Pin It on Pinterest

Shares