-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Dart SDK update for version 19.2.0 #94
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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); | ||
|
||
Transaction result = await databases.createOperations( | ||
transactionId: '<TRANSACTION_ID>', | ||
operations: [ | ||
{ | ||
"action": "create", | ||
"databaseId": "<DATABASE_ID>", | ||
"collectionId": "<COLLECTION_ID>", | ||
"documentId": "<DOCUMENT_ID>", | ||
"data": { | ||
"name": "Walter O'Brien" | ||
} | ||
} | ||
], // (optional) | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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); | ||
|
||
Transaction result = await databases.createTransaction( | ||
ttl: 60, // (optional) | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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); | ||
|
||
await databases.deleteTransaction( | ||
transactionId: '<TRANSACTION_ID>', | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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); | ||
|
||
Transaction result = await databases.getTransaction( | ||
transactionId: '<TRANSACTION_ID>', | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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); | ||
|
||
TransactionList result = await databases.listTransactions( | ||
queries: [], // (optional) | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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); | ||
|
||
Transaction result = await databases.updateTransaction( | ||
transactionId: '<TRANSACTION_ID>', | ||
commit: false, // (optional) | ||
rollback: false, // (optional) | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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); | ||
|
||
Transaction result = await tablesDB.createOperations( | ||
transactionId: '<TRANSACTION_ID>', | ||
operations: [ | ||
{ | ||
"action": "create", | ||
"databaseId": "<DATABASE_ID>", | ||
"tableId": "<TABLE_ID>", | ||
"rowId": "<ROW_ID>", | ||
"data": { | ||
"name": "Walter O'Brien" | ||
} | ||
} | ||
], // (optional) | ||
); | ||
Comment on lines
+10
to
+23
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. Replace hard tabs with spaces. The example uses hard tabs for indentation in the operations array (lines 13-22). Replace them with spaces to comply with Markdown standards. Apply this diff to fix the indentation: Transaction result = await tablesDB.createOperations(
transactionId: '<TRANSACTION_ID>',
operations: [
- {
- "action": "create",
- "databaseId": "<DATABASE_ID>",
- "tableId": "<TABLE_ID>",
- "rowId": "<ROW_ID>",
- "data": {
- "name": "Walter O'Brien"
- }
- }
+ {
+ "action": "create",
+ "databaseId": "<DATABASE_ID>",
+ "tableId": "<TABLE_ID>",
+ "rowId": "<ROW_ID>",
+ "data": {
+ "name": "Walter O'Brien"
+ }
+ }
], // (optional)
);
🧰 Tools🪛 markdownlint-cli2 (0.18.1)13-13: Hard tabs (MD010, no-hard-tabs) 14-14: Hard tabs (MD010, no-hard-tabs) 15-15: Hard tabs (MD010, no-hard-tabs) 16-16: Hard tabs (MD010, no-hard-tabs) 17-17: Hard tabs (MD010, no-hard-tabs) 18-18: Hard tabs (MD010, no-hard-tabs) 19-19: Hard tabs (MD010, no-hard-tabs) 20-20: Hard tabs (MD010, no-hard-tabs) 21-21: Hard tabs (MD010, no-hard-tabs) 22-22: Hard tabs (MD010, no-hard-tabs) 🤖 Prompt for AI Agents
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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); | ||
|
||
Transaction result = await tablesDB.createTransaction( | ||
ttl: 60, // (optional) | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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); | ||
|
||
await tablesDB.deleteTransaction( | ||
transactionId: '<TRANSACTION_ID>', | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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); | ||
|
||
Transaction result = await tablesDB.getTransaction( | ||
transactionId: '<TRANSACTION_ID>', | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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); | ||
|
||
TransactionList result = await tablesDB.listTransactions( | ||
queries: [], // (optional) | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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); | ||
|
||
Transaction result = await tablesDB.updateTransaction( | ||
transactionId: '<TRANSACTION_ID>', | ||
commit: false, // (optional) | ||
rollback: false, // (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.
Replace hard tabs with spaces.
Markdownlint flagged hard tabs on these lines, which should be replaced with spaces for consistent indentation.
Apply this diff to replace hard tabs with spaces:
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
13-13: Hard tabs
Column: 1
(MD010, no-hard-tabs)
14-14: Hard tabs
Column: 1
(MD010, no-hard-tabs)
15-15: Hard tabs
Column: 1
(MD010, no-hard-tabs)
16-16: Hard tabs
Column: 1
(MD010, no-hard-tabs)
17-17: Hard tabs
Column: 1
(MD010, no-hard-tabs)
18-18: Hard tabs
Column: 1
(MD010, no-hard-tabs)
19-19: Hard tabs
Column: 1
(MD010, no-hard-tabs)
20-20: Hard tabs
Column: 1
(MD010, no-hard-tabs)
21-21: Hard tabs
Column: 1
(MD010, no-hard-tabs)
22-22: Hard tabs
Column: 1
(MD010, no-hard-tabs)
🤖 Prompt for AI Agents