forked from fl00r/go-tarantool-1.6
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: add separate types for constants
Closes #158
- Loading branch information
1 parent
1963297
commit ade4e6f
Showing
11 changed files
with
90 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package tarantool | ||
|
||
import ( | ||
"github.com/tarantool/go-iproto" | ||
) | ||
|
||
// Iter is an enumeration type of a select iterator. | ||
type Iter uint32 | ||
|
||
const ( | ||
// Key == x ASC order. | ||
IterEq Iter = Iter(iproto.ITER_EQ) | ||
// Key == x DESC order. | ||
IterReq Iter = Iter(iproto.ITER_REQ) | ||
// All tuples. | ||
IterAll Iter = Iter(iproto.ITER_ALL) | ||
// Key < x. | ||
IterLt Iter = Iter(iproto.ITER_LT) | ||
// Key <= x. | ||
IterLe Iter = Iter(iproto.ITER_LE) | ||
// Key >= x. | ||
IterGe Iter = Iter(iproto.ITER_GE) | ||
// Key > x. | ||
IterGt Iter = Iter(iproto.ITER_GT) | ||
// All bits from x are set in key. | ||
IterBitsAllSet Iter = Iter(iproto.ITER_BITS_ALL_SET) | ||
// All bits are not set. | ||
IterBitsAnySet Iter = Iter(iproto.ITER_BITS_ANY_SET) | ||
// All bits are not set. | ||
IterBitsAllNotSet Iter = Iter(iproto.ITER_BITS_ALL_NOT_SET) | ||
// Key overlaps x. | ||
IterOverlaps Iter = Iter(iproto.ITER_OVERLAPS) | ||
// Tuples in distance ascending order from specified point. | ||
IterNeighbor Iter = Iter(iproto.ITER_NEIGHBOR) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters