-
Notifications
You must be signed in to change notification settings - Fork 21
Add time between queries #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e3bc8ca
4f05ba5
2d763a6
bad4269
c92a2fb
856f846
56804f8
b812e87
38ef71c
e8ef3c8
b10e61b
68a27fd
8e6ff0c
ec29ddb
dbecf1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,12 @@ Document result = await databases.createDocument( | |
| databaseId: '<DATABASE_ID>', | ||
| collectionId: '<COLLECTION_ID>', | ||
| documentId: '<DOCUMENT_ID>', | ||
| data: {}, | ||
| data: { | ||
| "username": "walter.obrien", | ||
| "email": "[email protected]", | ||
| "fullName": "Walter O'Brien", | ||
| "age": 30, | ||
| "isAdmin": false | ||
| }, | ||
| permissions: ["read("any")"], // (optional) | ||
| ); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| Databases databases = Databases(client); | ||
|
|
||
| AttributeLine result = await databases.createLineAttribute( | ||
| databaseId: '<DATABASE_ID>', | ||
| collectionId: '<COLLECTION_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| Databases databases = Databases(client); | ||
|
|
||
| AttributePoint result = await databases.createPointAttribute( | ||
| databaseId: '<DATABASE_ID>', | ||
| collectionId: '<COLLECTION_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| ); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| Databases databases = Databases(client); | ||
|
|
||
| AttributePolygon result = await databases.createPolygonAttribute( | ||
| databaseId: '<DATABASE_ID>', | ||
| collectionId: '<COLLECTION_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| Databases databases = Databases(client); | ||
|
|
||
| AttributeLine result = await databases.updateLineAttribute( | ||
| databaseId: '<DATABASE_ID>', | ||
| collectionId: '<COLLECTION_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| newKey: '', // (optional) | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| Databases databases = Databases(client); | ||
|
|
||
| AttributePoint result = await databases.updatePointAttribute( | ||
| databaseId: '<DATABASE_ID>', | ||
| collectionId: '<COLLECTION_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| newKey: '', // (optional) | ||
| ); |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,17 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Client client = Client() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Databases databases = Databases(client); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AttributePolygon result = await databases.updatePolygonAttribute( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| databaseId: '<DATABASE_ID>', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| collectionId: '<COLLECTION_ID>', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| key: '', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| xrequired: false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| xdefault: [[1,2], [3, 4]], // (optional) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| newKey: '', // (optional) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+10
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wrap the snippet in an async entrypoint; top-level Make the example runnable and print the result. -Client client = Client()
- .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
- .setProject('<YOUR_PROJECT_ID>') // Your project ID
- .setKey('<YOUR_API_KEY>'); // Your secret API key
-
-Databases databases = Databases(client);
-
-AttributePolygon result = await databases.updatePolygonAttribute(
- databaseId: '<DATABASE_ID>',
- collectionId: '<COLLECTION_ID>',
- key: '',
- xrequired: false,
- xdefault: [[1,2], [3, 4]], // (optional)
- newKey: '', // (optional)
-);
+Future<void> main() async {
+ final client = Client()
+ ..setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
+ ..setProject('<YOUR_PROJECT_ID>') // Your project ID
+ ..setKey('<YOUR_API_KEY>'); // Your secret API key
+
+ final databases = Databases(client);
+
+ final AttributePolygon result = await databases.updatePolygonAttribute(
+ databaseId: '<DATABASE_ID>',
+ collectionId: '<COLLECTION_ID>',
+ key: '<ATTRIBUTE_KEY>',
+ xrequired: false,
+ // xdefault: [
+ // [ [0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0], [0.0, 0.0] ]
+ // ], // (optional) [rings][points][x,y]
+ // newKey: '<NEW_KEY>', // (optional)
+ );
+
+ print(result.toMap());
+}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Client client = Client() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TablesDB tablesDB = TablesDB(client); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ColumnLine result = await tablesDB.createLineColumn( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| databaseId: '<DATABASE_ID>', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tableId: '<TABLE_ID>', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| key: '', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| xrequired: false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| xdefault: [[1,2], [3, 4]], // (optional) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Async main and placeholders: make the example copy‑paste runnable. Top‑level await and empty keys break quickstart UX. Wrap in -import 'package:dart_appwrite/dart_appwrite.dart';
-
-Client client = Client()
- .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
- .setProject('<YOUR_PROJECT_ID>') // Your project ID
- .setKey('<YOUR_API_KEY>'); // Your secret API key
-
-TablesDB tablesDB = TablesDB(client);
-
-ColumnLine result = await tablesDB.createLineColumn(
- databaseId: '<DATABASE_ID>',
- tableId: '<TABLE_ID>',
- key: '',
- xrequired: false,
- xdefault: [[1,2], [3, 4]], // (optional)
-);
+import 'package:dart_appwrite/dart_appwrite.dart';
+
+Future<void> main() async {
+ final client = Client()
+ ..setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
+ ..setProject('<YOUR_PROJECT_ID>') // Your project ID
+ ..setKey('<YOUR_API_KEY>'); // Your secret API key
+
+ final tablesDB = TablesDB(client);
+
+ final ColumnLine result = await tablesDB.createLineColumn(
+ databaseId: '<DATABASE_ID>',
+ tableId: '<TABLE_ID>',
+ key: '<COLUMN_KEY>',
+ xrequired: false,
+ // xdefault: <VALID_LINE_DEFAULT>, // (optional)
+ );
+ print(result.toMap());
+}📝 Committable suggestion
Suggested change
🧰 Tools🪛 LanguageTool[grammar] ~3-~3: There might be a mistake here. (QB_NEW_EN) [grammar] ~4-~4: There might be a mistake here. (QB_NEW_EN) [grammar] ~5-~5: There might be a mistake here. (QB_NEW_EN) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| TablesDB tablesDB = TablesDB(client); | ||
|
|
||
| ColumnPoint result = await tablesDB.createPointColumn( | ||
| databaseId: '<DATABASE_ID>', | ||
| tableId: '<TABLE_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| TablesDB tablesDB = TablesDB(client); | ||
|
|
||
| ColumnPolygon result = await tablesDB.createPolygonColumn( | ||
| databaseId: '<DATABASE_ID>', | ||
| tableId: '<TABLE_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,12 @@ Row result = await tablesDB.createRow( | |
| databaseId: '<DATABASE_ID>', | ||
| tableId: '<TABLE_ID>', | ||
| rowId: '<ROW_ID>', | ||
| data: {}, | ||
| data: { | ||
| "username": "walter.obrien", | ||
| "email": "[email protected]", | ||
| "fullName": "Walter O'Brien", | ||
| "age": 30, | ||
| "isAdmin": false | ||
| }, | ||
| permissions: ["read("any")"], // (optional) | ||
| ); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| TablesDB tablesDB = TablesDB(client); | ||
|
|
||
| ColumnLine result = await tablesDB.updateLineColumn( | ||
| databaseId: '<DATABASE_ID>', | ||
| tableId: '<TABLE_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| newKey: '', // (optional) | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| TablesDB tablesDB = TablesDB(client); | ||
|
|
||
| ColumnPoint result = await tablesDB.updatePointColumn( | ||
| databaseId: '<DATABASE_ID>', | ||
| tableId: '<TABLE_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| newKey: '', // (optional) | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import 'package:dart_appwrite/dart_appwrite.dart'; | ||
|
|
||
| Client client = Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| .setKey('<YOUR_API_KEY>'); // Your secret API key | ||
|
|
||
| TablesDB tablesDB = TablesDB(client); | ||
|
|
||
| ColumnPolygon result = await tablesDB.updatePolygonColumn( | ||
| databaseId: '<DATABASE_ID>', | ||
| tableId: '<TABLE_ID>', | ||
| key: '', | ||
| xrequired: false, | ||
| xdefault: [[1,2], [3, 4]], // (optional) | ||
| newKey: '', // (optional) | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same issues: use async entrypoint and correct default shape for Point.
This fixes compile/run behavior and clarifies parameters.
📝 Committable suggestion
🧰 Tools
🪛 LanguageTool
[grammar] ~3-~3: There might be a mistake here.
Context: ...ppwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.app...
(QB_NEW_EN)
[grammar] ~4-~4: There might be a mistake here.
Context: ...ud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your...
(QB_NEW_EN)
[grammar] ~5-~5: There might be a mistake here.
Context: ...('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secre...
(QB_NEW_EN)
🤖 Prompt for AI Agents