Skip to content

Commit e0ea4ae

Browse files
authored
Merge pull request #51 from appwrite/dev
feat: PHP SDK update for version 17.5.0
2 parents 3aa44b7 + fc75b19 commit e0ea4ae

Some content is hidden

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

83 files changed

+1105
-108
lines changed

CHANGELOG.md

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

3+
## 17.5.0
4+
5+
* Add `total` parameter to list queries allowing skipping counting rows in a table for improved performance
6+
* Add `Operator` class for atomic modification of rows via update, bulk update, upsert, and bulk upsert operations
7+
* Add `createResendProvider` and `updateResendProvider` methods to `Messaging` service
8+
39
## 17.4.1
410

511
* Add transaction support for Databases and TablesDB

docs/account.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ GET https://cloud.appwrite.io/v1/account/identities
5151
| Field Name | Type | Description | Default |
5252
| --- | --- | --- | --- |
5353
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry | [] |
54+
| total | boolean | When set to false, the total count returned will be 0 and will not be calculated. | 1 |
5455

5556

5657
```http request
@@ -84,6 +85,7 @@ GET https://cloud.appwrite.io/v1/account/logs
8485
| Field Name | Type | Description | Default |
8586
| --- | --- | --- | --- |
8687
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset | [] |
88+
| total | boolean | When set to false, the total count returned will be 0 and will not be calculated. | 1 |
8789

8890

8991
```http request

docs/databases.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ GET https://cloud.appwrite.io/v1/databases
1313
| --- | --- | --- | --- |
1414
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name | [] |
1515
| search | string | Search term to filter your list results. Max length: 256 chars. | |
16+
| total | boolean | When set to false, the total count returned will be 0 and will not be calculated. | 1 |
1617

1718

1819
```http request
@@ -166,6 +167,7 @@ GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections
166167
| databaseId | string | **Required** Database ID. | |
167168
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, documentSecurity | [] |
168169
| search | string | Search term to filter your list results. Max length: 256 chars. | |
170+
| total | boolean | When set to false, the total count returned will be 0 and will not be calculated. | 1 |
169171

170172

171173
```http request
@@ -245,6 +247,7 @@ GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
245247
| databaseId | string | **Required** Database ID. | |
246248
| collectionId | string | **Required** Collection ID. | |
247249
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, type, size, required, array, status, error | [] |
250+
| total | boolean | When set to false, the total count returned will be 0 and will not be calculated. | 1 |
248251

249252

250253
```http request
@@ -787,6 +790,7 @@ GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
787790
| collectionId | string | **Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). | |
788791
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. | [] |
789792
| transactionId | string | Transaction ID to read uncommitted changes within the transaction. | |
793+
| total | boolean | When set to false, the total count returned will be 0 and will not be calculated. | 1 |
790794

791795

792796
```http request
@@ -993,6 +997,7 @@ GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
993997
| databaseId | string | **Required** Database ID. | |
994998
| collectionId | string | **Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). | |
995999
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, type, status, attributes, error | [] |
1000+
| total | boolean | When set to false, the total count returned will be 0 and will not be calculated. | 1 |
9961001

9971002

9981003
```http request

docs/examples/account/list-identities.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ $client = (new Client())
1111
$account = new Account($client);
1212

1313
$result = $account->listIdentities(
14-
queries: [] // optional
14+
queries: [], // optional
15+
total: false // optional
1516
);

docs/examples/account/list-logs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ $client = (new Client())
1111
$account = new Account($client);
1212

1313
$result = $account->listLogs(
14-
queries: [] // optional
14+
queries: [], // optional
15+
total: false // optional
1516
);

docs/examples/databases/create-collection.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
use Appwrite\Client;
44
use Appwrite\Services\Databases;
5+
use Appwrite\Permission;
6+
use Appwrite\Role;
57
68
$client = (new Client())
79
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -14,7 +16,7 @@ $result = $databases->createCollection(
1416
databaseId: '<DATABASE_ID>',
1517
collectionId: '<COLLECTION_ID>',
1618
name: '<NAME>',
17-
permissions: ["read("any")"], // optional
19+
permissions: [Permission::read(Role::any())], // optional
1820
documentSecurity: false, // optional
1921
enabled: false // optional
2022
);

docs/examples/databases/create-document.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
use Appwrite\Client;
44
use Appwrite\Services\Databases;
5+
use Appwrite\Permission;
6+
use Appwrite\Role;
57
68
$client = (new Client())
79
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -21,6 +23,6 @@ $result = $databases->createDocument(
2123
'age' => 30,
2224
'isAdmin' => false
2325
],
24-
permissions: ["read("any")"], // optional
26+
permissions: [Permission::read(Role::any())], // optional
2527
transactionId: '<TRANSACTION_ID>' // optional
2628
);

docs/examples/databases/list-attributes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ $databases = new Databases($client);
1313
$result = $databases->listAttributes(
1414
databaseId: '<DATABASE_ID>',
1515
collectionId: '<COLLECTION_ID>',
16-
queries: [] // optional
16+
queries: [], // optional
17+
total: false // optional
1718
);

docs/examples/databases/list-collections.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ $databases = new Databases($client);
1313
$result = $databases->listCollections(
1414
databaseId: '<DATABASE_ID>',
1515
queries: [], // optional
16-
search: '<SEARCH>' // optional
16+
search: '<SEARCH>', // optional
17+
total: false // optional
1718
);

docs/examples/databases/list-documents.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ $result = $databases->listDocuments(
1414
databaseId: '<DATABASE_ID>',
1515
collectionId: '<COLLECTION_ID>',
1616
queries: [], // optional
17-
transactionId: '<TRANSACTION_ID>' // optional
17+
transactionId: '<TRANSACTION_ID>', // optional
18+
total: false // optional
1819
);

0 commit comments

Comments
 (0)