Skip to content

Commit 5972787

Browse files
author
New year
committed
crud: replace usage of optional types in crud with go-option
fixed #492
1 parent e72726b commit 5972787

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

crud/insert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55

66
"github.com/vmihailenco/msgpack/v5"
7-
7+
"github.com/tarantool/go-option"
88
"github.com/tarantool/go-tarantool/v3"
99
)
1010

crud/optional_adapter.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package crud
2+
3+
import (
4+
"context"
5+
6+
"github.com/vmihailenco/msgpack/v5"
7+
"github.com/tarantool/go-option"
8+
"github.com/tarantool/go-tarantool/v3"
9+
)
10+
11+
//This is adapter for local optional types and tarantool/go-option from file options.go.
12+

crud/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const (
2626
cachedOptName = "cached"
2727
)
2828

29-
// OptUint is an optional uint.
29+
// OptUint is an optional uint. Old local optional type.
3030
type OptUint struct {
3131
value uint
3232
exist bool

0 commit comments

Comments
 (0)