summaryrefslogtreecommitdiff
path: root/model/database.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-17 22:49:15 +0200
committerxengineering <me@xengineering.eu>2024-10-12 15:24:33 +0200
commit9d3a5fb85dc02e87fab879855c4c3bace5f753f2 (patch)
treefa56a768a78c07e65e1402f6413411ffd801d87a /model/database.go
parent6d59ff7a68af2823b5566dd24e3ff4aa77cbc5fe (diff)
downloadceres-9d3a5fb85dc02e87fab879855c4c3bace5f753f2.tar
ceres-9d3a5fb85dc02e87fab879855c4c3bace5f753f2.tar.zst
ceres-9d3a5fb85dc02e87fab879855c4c3bace5f753f2.zip
model: Fix direct access to database
Instead a database transaction has to be used. Each database interaction should be wrapped into a transaction to make sure any possible change (even side-effects) can be rolled back in case of errors.
Diffstat (limited to 'model/database.go')
0 files changed, 0 insertions, 0 deletions