You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-android/releases).**
10
+
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-android/releases).**
11
11
12
12
Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Android SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
13
13
@@ -38,7 +38,7 @@ repositories {
38
38
Next, add the dependency to your project's `build.gradle(.kts)` file:
Copy file name to clipboardExpand all lines: library/src/main/java/io/appwrite/services/Databases.kt
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,7 @@ class Databases(client: Client) : Service(client) {
220
220
* @param queries 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.
221
221
* @param transactionId Transaction ID to read uncommitted changes within the transaction.
222
222
* @param total When set to false, the total count returned will be 0 and will not be calculated.
223
+
* @param ttl TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
223
224
* @return [io.appwrite.models.DocumentList<T>]
224
225
*/
225
226
@Deprecated(
@@ -233,6 +234,7 @@ class Databases(client: Client) : Service(client) {
233
234
queries:List<String>? = null,
234
235
transactionId:String? = null,
235
236
total:Boolean? = null,
237
+
ttl:Long? = null,
236
238
nestedType:Class<T>,
237
239
): io.appwrite.models.DocumentList<T> {
238
240
val apiPath ="/databases/{databaseId}/collections/{collectionId}/documents"
@@ -243,6 +245,7 @@ class Databases(client: Client) : Service(client) {
243
245
"queries" to queries,
244
246
"transactionId" to transactionId,
245
247
"total" to total,
248
+
"ttl" to ttl,
246
249
)
247
250
val apiHeaders = mutableMapOf<String, String>(
248
251
)
@@ -268,6 +271,7 @@ class Databases(client: Client) : Service(client) {
268
271
* @param queries 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.
269
272
* @param transactionId Transaction ID to read uncommitted changes within the transaction.
270
273
* @param total When set to false, the total count returned will be 0 and will not be calculated.
274
+
* @param ttl TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
271
275
* @return [io.appwrite.models.DocumentList<T>]
272
276
*/
273
277
@Deprecated(
@@ -282,12 +286,14 @@ class Databases(client: Client) : Service(client) {
0 commit comments