Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any value in including SQLite in VCS's

Having an argument with my team. We are developing an application using SQLite and some want to add it to the repo (GIT) and some don't. Previously with RDBMS system there has been no perceived benefit of using VCS on the DB. However SQLite is a self contained file with no external dependencies so i assume, even though it is binary, that a commit of the project code + the SQLite file will give an accurate snapshot of the state of play at that point.

I also assume that a branch and merge would work as well.

Has anyone actually done this and if so does it work?

like image 861
PurplePilot Avatar asked Dec 14 '10 12:12

PurplePilot


People also ask

Why you should not use SQLite?

High write volumes: SQLite allows only one write operation to take place at any given time, which significantly limits its throughput. If your application requires lots of write operations or multiple concurrent writers, SQLite may not be adequate for your needs.

Is SQLite key value?

SQLite is not a key-value store, and it's not suitable for concurrent application out of the box. Sled can save you a lot of trouble, and it's "just working" in concurrent programs with an API that feels natural and powerful.

Can I use SQLite in web application?

SQLite works great as the database engine for most low to medium traffic websites (which is to say, most websites). The amount of web traffic that SQLite can handle depends on how heavily the website uses its database. Generally speaking, any site that gets fewer than 100K hits/day should work fine with SQLite.

How do you cite SQLite?

Citation in Harvard styleHipp, R.D., 2020. SQLite, Available at: https://www.sqlite.org/index.html.


1 Answers

You'd get more benefit from GIT's versioning facilities if you stored a dump of the SQLite database (i.e. commands required to create it) rather than the database file itself. That way you could look at the history of the dump file and see tables or data being added etc.

like image 55
araqnid Avatar answered Oct 19 '22 19:10

araqnid