Skip to content

Commit 053e7a2

Browse files
committed
Add time between queries
1 parent ac38bb8 commit 053e7a2

File tree

92 files changed

+3923
-4406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+3923
-4406
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^18.0.0
24+
appwrite: ^18.1.0
2525
```
2626
2727
You can install packages from the command line:

lib/appwrite.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Appwrite Flutter SDK
22
///
3-
/// This SDK is compatible with Appwrite server version 1.8.x.
3+
/// This SDK is compatible with Appwrite server version 1.8.x.
44
/// For older versions, please check
55
/// [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).
66
library appwrite;

lib/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/client_browser.dart';
1+
export 'src/client_browser.dart';

lib/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/client_io.dart';
1+
export 'src/client_io.dart';

lib/query.dart

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class Query {
1111
Map<String, dynamic> toJson() {
1212
final map = <String, dynamic>{'method': method};
1313

14-
if (attribute != null) {
14+
if(attribute != null) {
1515
map['attribute'] = attribute;
1616
}
17-
18-
if (values != null) {
17+
18+
if(values != null) {
1919
map['values'] = values is List ? values : [values];
2020
}
2121

@@ -26,7 +26,7 @@ class Query {
2626
String toString() => jsonEncode(toJson());
2727

2828
/// Filter resources where [attribute] is equal to [value].
29-
///
29+
///
3030
/// [value] can be a single value or a list. If a list is used
3131
/// the query will return resources where [attribute] is equal
3232
/// to any of the values in the list.
@@ -111,6 +111,10 @@ class Query {
111111
static String createdAfter(String value) =>
112112
Query._('createdAfter', null, value).toString();
113113

114+
/// Filter resources where document was created between [start] and [end] (inclusive).
115+
static String createdBetween(String start, String end) =>
116+
Query._('createdBetween', null, [start, end]).toString();
117+
114118
/// Filter resources where document was updated before [value].
115119
static String updatedBefore(String value) =>
116120
Query._('updatedBefore', null, value).toString();
@@ -119,6 +123,10 @@ class Query {
119123
static String updatedAfter(String value) =>
120124
Query._('updatedAfter', null, value).toString();
121125

126+
/// Filter resources where document was updated between [start] and [end] (inclusive).
127+
static String updatedBetween(String start, String end) =>
128+
Query._('updatedBetween', null, [start, end]).toString();
129+
122130
static String or(List<String> queries) => Query._(
123131
'or',
124132
null,
@@ -144,14 +152,14 @@ class Query {
144152
Query._('orderDesc', attribute).toString();
145153

146154
/// Return results before [id].
147-
///
155+
///
148156
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
149157
/// docs for more information.
150158
static String cursorBefore(String id) =>
151159
Query._('cursorBefore', null, id).toString();
152160

153161
/// Return results after [id].
154-
///
162+
///
155163
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
156164
/// docs for more information.
157165
static String cursorAfter(String id) =>
@@ -161,9 +169,9 @@ class Query {
161169
static String limit(int limit) => Query._('limit', null, limit).toString();
162170

163171
/// Return results from [offset].
164-
///
172+
///
165173
/// Refer to the [Offset Pagination](https://appwrite.io/docs/pagination#offset-pagination)
166174
/// docs for more information.
167175
static String offset(int offset) =>
168176
Query._('offset', null, offset).toString();
169-
}
177+
}

lib/realtime_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/realtime_browser.dart';
1+
export 'src/realtime_browser.dart';

lib/realtime_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/realtime_io.dart';
1+
export 'src/realtime_io.dart';

lib/role.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ class Role {
6363
static String label(String name) {
6464
return 'label:$name';
6565
}
66-
}
66+
}

0 commit comments

Comments
 (0)