Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
08bcbde1
There was an error fetching the commit references. Please try again later.
Commit
08bcbde1
authored
1 year ago
by
Akshay Mahendrakar
Browse files
Options
Downloads
Patches
Plain Diff
prepareOptions - Appending specific keys to []opts (whose values are not default)
parent
a2f253b7
2 merge requests
!270
Core ImmuDB package and TOTP plugin - Implementation
,
!269
Core ImmuDB package and TOTP plugin - Implementation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dalmdl/coreimmudb/coreimmudb.go
+13
-4
dalmdl/coreimmudb/coreimmudb.go
with
13 additions
and
4 deletions
dalmdl/coreimmudb/coreimmudb.go
+
13
−
4
View file @
08bcbde1
...
...
@@ -407,9 +407,18 @@ func (i *ImmuDAO) CreateUser(username, password, dbName string, permission int)
func
prepareOptions
(
getOpts
GetOptions
)
[]
immudb
.
GetOption
{
var
opts
[]
immudb
.
GetOption
opts
=
append
(
opts
,
immudb
.
AtTx
(
getOpts
.
AtTx
))
opts
=
append
(
opts
,
immudb
.
SinceTx
(
getOpts
.
SinceTx
))
opts
=
append
(
opts
,
immudb
.
NoWait
(
getOpts
.
NoWait
))
opts
=
append
(
opts
,
immudb
.
AtRevision
(
getOpts
.
AtRevision
))
if
getOpts
.
AtTx
!=
0
{
opts
=
append
(
opts
,
immudb
.
AtTx
(
getOpts
.
AtTx
))
}
if
getOpts
.
SinceTx
!=
0
{
opts
=
append
(
opts
,
immudb
.
SinceTx
(
getOpts
.
SinceTx
))
}
if
getOpts
.
NoWait
{
opts
=
append
(
opts
,
immudb
.
NoWait
(
getOpts
.
NoWait
))
}
if
getOpts
.
AtRevision
!=
0
{
opts
=
append
(
opts
,
immudb
.
AtRevision
(
getOpts
.
AtRevision
))
}
return
opts
}
This diff is collapsed.
Click to expand it.
Preview
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets