Skip to content

Commit 16a7403

Browse files
authored
Merge pull request #88 from appwrite/dev
Add time between queries
2 parents 1c63c04 + dbecf1e commit 16a7403

Some content is hidden

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

43 files changed

+1669
-19
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 18.0.0
4+
5+
* Rename `CreditCard` enum value `unionChinaPay` to `unionPay`
6+
* Add time between query support
7+
* Add spatial attribute support
8+
* Add spatial index support
9+
* Add spatial query support
10+
311
## 17.0.0
412

513
* Support for Appwrite 1.8

README.md

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

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^17.0.0
26+
dart_appwrite: ^18.0.0
2727
```
2828
2929
You can install packages from the command line:

docs/examples/account/update-prefs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ Client client = Client()
88
Account account = Account(client);
99

1010
User result = await account.updatePrefs(
11-
prefs: {},
11+
prefs: {
12+
"language": "en",
13+
"timezone": "UTC",
14+
"darkTheme": true
15+
},
1216
);

docs/examples/databases/create-document.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Document result = await databases.createDocument(
1111
databaseId: '<DATABASE_ID>',
1212
collectionId: '<COLLECTION_ID>',
1313
documentId: '<DOCUMENT_ID>',
14-
data: {},
14+
data: {
15+
"username": "walter.obrien",
16+
"email": "[email protected]",
17+
"fullName": "Walter O'Brien",
18+
"age": 30,
19+
"isAdmin": false
20+
},
1521
permissions: ["read("any")"], // (optional)
1622
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Databases databases = Databases(client);
9+
10+
AttributeLine result = await databases.createLineAttribute(
11+
databaseId: '<DATABASE_ID>',
12+
collectionId: '<COLLECTION_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: [[1,2], [3, 4]], // (optional)
16+
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Databases databases = Databases(client);
9+
10+
AttributePoint result = await databases.createPointAttribute(
11+
databaseId: '<DATABASE_ID>',
12+
collectionId: '<COLLECTION_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: [[1,2], [3, 4]], // (optional)
16+
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Databases databases = Databases(client);
9+
10+
AttributePolygon result = await databases.createPolygonAttribute(
11+
databaseId: '<DATABASE_ID>',
12+
collectionId: '<COLLECTION_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: [[1,2], [3, 4]], // (optional)
16+
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Databases databases = Databases(client);
9+
10+
AttributeLine result = await databases.updateLineAttribute(
11+
databaseId: '<DATABASE_ID>',
12+
collectionId: '<COLLECTION_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: [[1,2], [3, 4]], // (optional)
16+
newKey: '', // (optional)
17+
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Databases databases = Databases(client);
9+
10+
AttributePoint result = await databases.updatePointAttribute(
11+
databaseId: '<DATABASE_ID>',
12+
collectionId: '<COLLECTION_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: [[1,2], [3, 4]], // (optional)
16+
newKey: '', // (optional)
17+
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Databases databases = Databases(client);
9+
10+
AttributePolygon result = await databases.updatePolygonAttribute(
11+
databaseId: '<DATABASE_ID>',
12+
collectionId: '<COLLECTION_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: [[1,2], [3, 4]], // (optional)
16+
newKey: '', // (optional)
17+
);

0 commit comments

Comments
 (0)