{"id":2526,"date":"2016-06-03T12:23:35","date_gmt":"2016-06-03T16:23:35","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=2526"},"modified":"2024-02-20T10:39:02","modified_gmt":"2024-02-20T07:39:02","slug":"sqlite-overview","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/sqlite-overview\/","title":{"rendered":"Getting to Know SQLite for the Absolute Beginner"},"content":{"rendered":"
The problem with relational database server systems such as Oracle<\/a>, SQL Server,\u00a0PostgreSQL, MySQL<\/a> and others is that they require a significant amount of computer resources to function optimally. Enter SQLite<\/a> the solution initially release back in 2000.<\/p>\n SQLite which began as a Tcl extension was started back in 2000. It was developed by D. Richard Hipp. At the time he was working for General Dynamics on contract with the United States Navy designing software for guided missile destroyers.<\/p>\n SQLite is a relational database<\/a> management system that does not run off as a server in the traditional sense. It is designed to run as a light-weight library written in the C programming language.<\/p>\n Rather than running as a client-server model, SQLite is designed to be embedded into the program with which it is designed to run on. It is therefore widely used and preferred for embedded applications that need some sort of local storage.<\/p>\n The library uses standard Structured Query Language (SQL)<\/a> to do transactions on the data managed by the library.<\/p>\n The SQLite database format with multiple tables, indices, triggers, and views is contained in a single portable file stored on disk. The cross platform<\/a> data format can be moved around by simply copying the file. This file is compatible with 32-bit and 64-bit systems. It also works just the same between big-endian and little-endian architectures.<\/p>\n You can find this versatile library in several places from Desktop applications, Web browsers<\/a>, smartphones and regular cellphones. You can also find it used in all sorts of hand held devices, portable music players, DVD players and more. The list is endless. You can find it running in as little as 4 KB stack space and as little as 100 KB of available heap.<\/p>\n Being open source<\/a> and in public domain, this reduces restrictions and makes this embedded database engine free and available to be used by anyone for both commercial and personal uses.<\/p>\n As this library is considered ACID (conforms to the properties of Atomicity, Consistency, Isolation and Durability), it is considered safe to use even when memory allocation failures and disk I\/O errors are encountered.<\/p>\n SQLite is not ideal for use in situations where client-server applications would make more sense. This situations are for example where several clients are performing transactions on the same database server over a network especially where latency is a factor.<\/p>\n High volume websites will not play well with SQLite as opposed to a low volume website. In this case an enterprise class client-server database system like those mentioned in the first paragraph of this article may make more sense.<\/p>\n If you are dealing with high concurrency one reads, it may not be a problem using this library however when using multiple writes you will land into problems trying to rely on it as it supports only one writer instance at a time.<\/p>\n Again using very large datasets may not be what you want out of this library. It may well support a file size up to 140 terabytes, notwithstanding the maximum filesize for the underlying platform. Nevertheless it would not be a good ideal to hod all that data in a single file database.<\/p>\n SQLite however can be ideal for education and training purposes. It can also be used to stand in for more permanent enterprise database systems during demos or prototypes.<\/p>\n It can be used for archival purposes as well as Ad hoc data files. It can also be used for local caching of enterprise data, local storage for websites and many more.<\/p>\n By default SQLite databases are not encrypted nor are they password protected. By this very fact it makes this embedded database not ideal for storing sensitive information off the shelf.<\/p>\n The good news is that there are tools like SQLite Encryption Extension and SQLite Crypt and many other ports that allow users to secure their databases. It is highly recommended to implement those solutions should your application store sensitive data.<\/p>\n You can get a copy of the SQLite source code in all its variants as well as compiled binaries from the official download page<\/a>.<\/p>\n Ref: The problem with relational database server systems such as Oracle, SQL Server,\u00a0PostgreSQL, MySQL and others is that they require a significant amount of computer resources to function optimally. Enter SQLite…<\/p>\n","protected":false},"author":1,"featured_media":2527,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[111,164,180,220,424,433,449,543,544,549,551,591],"yoast_head":"\nWhat is SQLite?<\/h2>\n
Where Can I Find SQLite?<\/h2>\n
Usage<\/h2>\n
Security<\/h2>\n
\nhttps:\/\/www.sqlite.org<\/a> – Official SQLite Website
\nhttps:\/\/en.wikipedia.org\/wiki\/ACID<\/a> – Definition of ACID
\nhttps:\/\/www.sqlite.org\/cvstrac\/wiki?p=SqliteWebSecurity – Web Security
\nhttp:\/\/stackoverflow.com\/questions\/1259561\/encrypt-sqlite-database-in-c-sharp<\/a> – SQLite security ports<\/p>\n","protected":false},"excerpt":{"rendered":"