https://github.com/laurence-ugalde/log-trigger
Trigger to automatically store historical information of a table in a relational database
https://github.com/laurence-ugalde/log-trigger
database database-trigger db2-database log-trigger mysql-database oracle-database sql sql-server-database trigger
Last synced: 22 days ago
JSON representation
Trigger to automatically store historical information of a table in a relational database
- Host: GitHub
- URL: https://github.com/laurence-ugalde/log-trigger
- Owner: laurence-ugalde
- License: cc-by-sa-4.0
- Created: 2022-06-25T18:25:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T03:29:26.000Z (over 2 years ago)
- Last Synced: 2023-03-09T23:22:23.891Z (about 2 years ago)
- Topics: database, database-trigger, db2-database, log-trigger, mysql-database, oracle-database, sql, sql-server-database, trigger
- Language: SQLPL
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# Log trigger
**Log trigger** is a a pattern to create a [trigger](https://en.wikipedia.org/wiki/Database_trigger) to automatically store historical information
of a table in a relational database.It works on a parallel table, creating infomation in a scheme of [tuple versioning](https://en.wikipedia.org/wiki/Tuple-versioning).
More detailed information: Log trigger in [Wikipedia](https://en.wikipedia.org/wiki/Log_trigger).
## Repository
The intention of this repository is to mantain the definition of the **Log trigger** in as many database providers as possible,
given that they use very different syntax and semantics, specially for triggers.Currently, we have the defintition for the following database providers:
* **IBM DB2**
* **Microsoft SQL Server**
* **MySQL**
* **Oracle**## License
Log trigger is licensed under the [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) license, so you can use it freely,
even for commercial purposes, provided you give appropriate credit to the author.Shield: [![CC BY-SA 4.0][cc-by-sa-shield]][cc-by-sa]
This work is licensed under a
[Creative Commons Attribution-ShareAlike 4.0 International License][cc-by-sa].[![CC BY-SA 4.0][cc-by-sa-image]][cc-by-sa]
[cc-by-sa]: http://creativecommons.org/licenses/by-sa/4.0/
[cc-by-sa-image]: https://licensebuttons.net/l/by-sa/4.0/88x31.png
[cc-by-sa-shield]: https://img.shields.io/badge/License-CC%20BY--SA%204.0-lightgrey.svg## Contributing
If you know how to implement the Log trigger in a database provider other than those maintained in this repository, feel free to
request a pull.