Skip to content

Commit d426c8f

Browse files
author
Ivan Dlugos
committed
remove query/index.dart in favor of query/query.dart
1 parent 98208af commit d426c8f

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

lib/objectbox.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export "src/model.dart";
99
export "src/store.dart";
1010
export "src/box.dart";
1111
export "src/modelinfo/index.dart";
12-
export "src/query/index.dart";
12+
export "src/query/query.dart";

lib/src/box.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "bindings/flatbuffers.dart";
99
import "bindings/helpers.dart";
1010
import "bindings/structs.dart";
1111
import "modelinfo/index.dart";
12-
import "query/index.dart";
12+
import "query/query.dart";
1313

1414
enum _PutMode {
1515
Put,

lib/src/query/index.dart

Lines changed: 0 additions & 20 deletions
This file was deleted.

lib/src/query/query.dart

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ import "package:ffi/ffi.dart";
1414

1515
part "builder.dart";
1616

17+
class Order {
18+
/// Reverts the order from ascending (default) to descending.
19+
static final descending = 1;
20+
21+
/// Makes upper case letters (e.g. "Z") be sorted before lower case letters (e.g. "a").
22+
/// If not specified, the default is case insensitive for ASCII characters.
23+
static final caseSensitive = 2;
24+
25+
/// For scalars only: changes the comparison to unsigned (default is signed).
26+
static final unsigned = 4;
27+
28+
/// null values will be put last.
29+
/// If not specified, by default null values will be put first.
30+
static final nullsLast = 8;
31+
32+
/// null values should be treated equal to zero (scalars only).
33+
static final nullsAsZero = 16;
34+
}
35+
36+
1737
/// The QueryProperty types are responsible for the operator overloading.
1838
/// A QueryBuilder will be constructed, based on the any / all operations applied.
1939
/// When build() is called on the QueryBuilder a Query object will be created.

0 commit comments

Comments
 (0)