Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a version control database storage engine exist?

I was just wondering if a storage engine type existed that allowed you to do version control on row level contents. For instance, if I have a simple table with ID, name, value, and ID is the PK, I could see that row 354 started as (354, "zak", "test")v1 then was updated to be (354, "zak", "this is version 2 of the value")v2 , and could see a change history on the row with something like select history (value) where ID = 354.

It's kind of an esoteric thing, but it would beat having to keep writing these separate history tables and functions every time a change is made...

like image 538
Zak Avatar asked Mar 23 '10 20:03

Zak


People also ask

What is a storage engine in a database?

A database storage engine is an internal software component that a database server uses to store, read, update, and delete data in the underlying memory and storage systems.

How many types of database engines are there?

A storage engine is a software module that a database management system uses to create, read, update data from a database. There are two types of storage engines in MySQL: transactional and non-transactional. For MySQL 5.5 and later, the default storage engine is InnoDB.

What is the difference between DBMS and DB engine?

The DBMS provides users and programmers with a systematic way to create, retrieve, update and manage data. Database storage engine is a mechanism employed by database management software that defines how it stores and handles data.


1 Answers

It seems you are looking more for auditing features. Oracle and several other DBMS have full auditing features. But many DBAs still end up implementing trigger based row auditing. It all depends on your needs.

Oracle supports several granularities of auditing that are easy to configure from the command line.

I see you tagged as MySQL, but asked about any storage engine. Anyway, other answers are saying the same thing, so I'm going delete this post as originally it was about the flashback features.

like image 194
codenheim Avatar answered Oct 16 '22 09:10

codenheim