Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
2e6e09f6
Verified
Commit
2e6e09f6
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
Rename TransactionType cases to ..._ONLY
parent
940ffaab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!33
Release 0.1
,
!32
fix windows build
Pipeline
#15245
failed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/caosdb/transaction.h
+12
-12
12 additions, 12 deletions
include/caosdb/transaction.h
with
12 additions
and
12 deletions
include/caosdb/transaction.h
+
12
−
12
View file @
2e6e09f6
...
...
@@ -91,11 +91,11 @@
return StatusCode::TRANSACTION_STATUS_ERROR; \
} \
switch (this->transaction_type) { \
case NONE: \
this->transaction_type = TransactionType::DELETE
2
; \
case DELETE
2
: \
case MIXED_WRITE: \
case MIXED_READ_AND_WRITE: \
case
TransactionType::
NONE: \
this->transaction_type = TransactionType::DELETE
_ONLY
; \
case
TransactionType::
DELETE
_ONLY
: \
case
TransactionType::
MIXED_WRITE: \
case
TransactionType::
MIXED_READ_AND_WRITE: \
break; \
default: \
CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
...
...
@@ -114,8 +114,8 @@
} \
switch (this->transaction_type) { \
case TransactionType::NONE: \
this->transaction_type = TransactionType::INSERT; \
case TransactionType::INSERT: \
this->transaction_type = TransactionType::INSERT
_ONLY
; \
case TransactionType::INSERT
_ONLY
: \
case TransactionType::MIXED_WRITE: \
case TransactionType::MIXED_READ_AND_WRITE: \
break; \
...
...
@@ -136,8 +136,8 @@
} \
switch (this->transaction_type) { \
case TransactionType::NONE: \
this->transaction_type = TransactionType::
INSERT
; \
case TransactionType::
INSERT
: \
this->transaction_type = TransactionType::
UPDATE_ONLY
; \
case TransactionType::
UPDATE_ONLY
: \
case TransactionType::MIXED_WRITE: \
case TransactionType::MIXED_READ_AND_WRITE: \
break; \
...
...
@@ -288,9 +288,9 @@ public:
enum
TransactionType
{
NONE
,
//!< Unspecified or not specified yet.
READ_ONLY
,
//!< Only retrievals (by id, by query)
INSERT
,
//!< Only insertions
UPDATE
,
//!< Only updates
DELETE
2
,
//!< Only deletions
INSERT
_ONLY
,
//!< Only insertions
UPDATE
_ONLY
,
//!< Only updates
DELETE
_ONLY
,
//!< Only deletions
MIXED_WRITE
,
//!< Only insertions, deletions, updates
MIXED_READ_AND_WRITE
//!< all kind of transaction.
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment