-
Notifications
You must be signed in to change notification settings - Fork 21
Add 1.8.x support #87
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
Merged
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
1310f94
Add 1.8.x support
abnegate 790c5ef
Commit from GitHub Actions (Format and push)
abnegate 1b93037
Add 1.8.x support
abnegate 95e352b
Commit from GitHub Actions (Format and push)
abnegate ae4eb5f
Add 1.8.x support
abnegate da30c6d
Commit from GitHub Actions (Format and push)
abnegate af97ef2
Update doc
abnegate 4b6f8ba
Commit from GitHub Actions (Format and push)
abnegate 992b18d
Add 1.8.x support
abnegate 4c86a95
Commit from GitHub Actions (Format and push)
abnegate 92d084b
Add 1.8.x support
abnegate 72bb930
Commit from GitHub Actions (Format and push)
abnegate 9a283cc
Fix casing
abnegate 81bbb78
Commit from GitHub Actions (Format and push)
abnegate 47451fa
Add 1.8.x support
abnegate 6737919
Commit from GitHub Actions (Format and push)
abnegate b4e5fdc
Add 1.8.x support
abnegate 7d737ac
Commit from GitHub Actions (Format and push)
abnegate 3c70f5b
Fix filepath
abnegate 1cbb3fd
Commit from GitHub Actions (Format and push)
abnegate 5fb7a4e
Fix docs
abnegate dacb79c
Commit from GitHub Actions (Format and push)
abnegate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include: package:lints/recommended.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
ColumnBoolean result = await tablesDb.createBooleanColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
xrequired: false, | ||
xdefault: false, // (optional) | ||
array: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
ColumnDatetime result = await tablesDb.createDatetimeColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
xrequired: false, | ||
xdefault: '', // (optional) | ||
array: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
ColumnEmail result = await tablesDb.createEmailColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
xrequired: false, | ||
xdefault: 'email@example.com', // (optional) | ||
array: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
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); | ||
|
||
ColumnEnum result = await tablesDb.createEnumColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
elements: [], | ||
xrequired: false, | ||
xdefault: '<DEFAULT>', // (optional) | ||
array: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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); | ||
|
||
ColumnFloat result = await tablesDb.createFloatColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
xrequired: false, | ||
min: 0, // (optional) | ||
max: 0, // (optional) | ||
xdefault: 0, // (optional) | ||
array: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
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); | ||
|
||
ColumnIndex result = await tablesDb.createIndex( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
type: IndexType.key, | ||
columns: [], | ||
orders: [], // (optional) | ||
lengths: [], // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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); | ||
|
||
ColumnInteger result = await tablesDb.createIntegerColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
xrequired: false, | ||
min: 0, // (optional) | ||
max: 0, // (optional) | ||
xdefault: 0, // (optional) | ||
array: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
ColumnIp result = await tablesDb.createIpColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
xrequired: false, | ||
xdefault: '', // (optional) | ||
array: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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); | ||
|
||
ColumnRelationship result = await tablesDb.createRelationshipColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
relatedTableId: '<RELATED_TABLE_ID>', | ||
type: RelationshipType.oneToOne, | ||
twoWay: false, // (optional) | ||
key: '', // (optional) | ||
twoWayKey: '', // (optional) | ||
onDelete: RelationMutate.cascade, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
.setSession(''); // The user session to authenticate with | ||
|
||
TablesDb tablesDb = TablesDb(client); | ||
|
||
Row result = await tablesDb.createRow( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
rowId: '<ROW_ID>', | ||
data: {}, | ||
permissions: ["read("any")"], // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
RowList result = await tablesDb.createRows( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
rows: [], | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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); | ||
|
||
ColumnString result = await tablesDb.createStringColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
size: 1, | ||
xrequired: false, | ||
xdefault: '<DEFAULT>', // (optional) | ||
array: false, // (optional) | ||
encrypt: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
Table result = await tablesDb.createTable( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
name: '<NAME>', | ||
permissions: ["read("any")"], // (optional) | ||
rowSecurity: false, // (optional) | ||
enabled: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
ColumnUrl result = await tablesDb.createUrlColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
xrequired: false, | ||
xdefault: 'https://example.com', // (optional) | ||
array: false, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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); | ||
|
||
Database result = await tablesDb.create( | ||
databaseId: '<DATABASE_ID>', | ||
name: '<NAME>', | ||
enabled: false, // (optional) | ||
type: .tablesdb, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
Row result = await tablesDb.decrementRowColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
rowId: '<ROW_ID>', | ||
column: '', | ||
value: 0, // (optional) | ||
min: 0, // (optional) | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
await tablesDb.deleteColumn( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
await tablesDb.deleteIndex( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
key: '', | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
.setSession(''); // The user session to authenticate with | ||
|
||
TablesDb tablesDb = TablesDb(client); | ||
|
||
await tablesDb.deleteRow( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
rowId: '<ROW_ID>', | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
await tablesDb.deleteRows( | ||
databaseId: '<DATABASE_ID>', | ||
tableId: '<TABLE_ID>', | ||
queries: [], // (optional) | ||
); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.