diff --git a/README.md b/README.md
index 9ddec57..8469be2 100644
--- a/README.md
+++ b/README.md
@@ -2,11 +2,11 @@


-
+
[](https://twitter.com/appwrite)
[](https://appwrite.io/discord)
-**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-kotlin/releases).**
+**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-kotlin/releases).**
> This is the Kotlin SDK for integrating with Appwrite from your Kotlin server-side code. If you're looking for the Android SDK you should check [appwrite/sdk-for-android](https://github.com/appwrite/sdk-for-android)
@@ -39,7 +39,7 @@ repositories {
Next, add the dependency to your project's `build.gradle(.kts)` file:
```groovy
-implementation("io.appwrite:sdk-for-kotlin:9.1.2")
+implementation("io.appwrite:sdk-for-kotlin:10.0.0")
```
### Maven
@@ -50,7 +50,7 @@ Add this to your project's `pom.xml` file:
io.appwrite
sdk-for-kotlin
- 9.1.2
+ 10.0.0
```
diff --git a/docs/examples/java/account/create-j-w-t.md b/docs/examples/java/account/create-jwt.md
similarity index 100%
rename from docs/examples/java/account/create-j-w-t.md
rename to docs/examples/java/account/create-jwt.md
diff --git a/docs/examples/java/account/create-magic-u-r-l-token.md b/docs/examples/java/account/create-magic-url-token.md
similarity index 100%
rename from docs/examples/java/account/create-magic-u-r-l-token.md
rename to docs/examples/java/account/create-magic-url-token.md
diff --git a/docs/examples/java/account/create-mfa-authenticator.md b/docs/examples/java/account/create-mfa-authenticator.md
index ee37e48..d38ddd3 100644
--- a/docs/examples/java/account/create-mfa-authenticator.md
+++ b/docs/examples/java/account/create-mfa-authenticator.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
-account.createMfaAuthenticator(
+account.createMFAAuthenticator(
AuthenticatorType.TOTP, // type
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/account/create-mfa-challenge.md b/docs/examples/java/account/create-mfa-challenge.md
index 4a07e26..5c048cb 100644
--- a/docs/examples/java/account/create-mfa-challenge.md
+++ b/docs/examples/java/account/create-mfa-challenge.md
@@ -9,7 +9,7 @@ Client client = new Client()
Account account = new Account(client);
-account.createMfaChallenge(
+account.createMFAChallenge(
AuthenticationFactor.EMAIL, // factor
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/account/create-mfa-recovery-codes.md b/docs/examples/java/account/create-mfa-recovery-codes.md
index eb76cdc..6a47a17 100644
--- a/docs/examples/java/account/create-mfa-recovery-codes.md
+++ b/docs/examples/java/account/create-mfa-recovery-codes.md
@@ -9,7 +9,7 @@ Client client = new Client()
Account account = new Account(client);
-account.createMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> {
+account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
diff --git a/docs/examples/java/account/create-o-auth2token.md b/docs/examples/java/account/create-o-auth-2-token.md
similarity index 100%
rename from docs/examples/java/account/create-o-auth2token.md
rename to docs/examples/java/account/create-o-auth-2-token.md
diff --git a/docs/examples/java/account/delete-mfa-authenticator.md b/docs/examples/java/account/delete-mfa-authenticator.md
index 06835f6..20a6acd 100644
--- a/docs/examples/java/account/delete-mfa-authenticator.md
+++ b/docs/examples/java/account/delete-mfa-authenticator.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
-account.deleteMfaAuthenticator(
+account.deleteMFAAuthenticator(
AuthenticatorType.TOTP, // type
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/account/get-mfa-recovery-codes.md b/docs/examples/java/account/get-mfa-recovery-codes.md
index c818c3e..813a0a6 100644
--- a/docs/examples/java/account/get-mfa-recovery-codes.md
+++ b/docs/examples/java/account/get-mfa-recovery-codes.md
@@ -9,7 +9,7 @@ Client client = new Client()
Account account = new Account(client);
-account.getMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> {
+account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
diff --git a/docs/examples/java/account/list-mfa-factors.md b/docs/examples/java/account/list-mfa-factors.md
index d9f90a4..0bdc378 100644
--- a/docs/examples/java/account/list-mfa-factors.md
+++ b/docs/examples/java/account/list-mfa-factors.md
@@ -9,7 +9,7 @@ Client client = new Client()
Account account = new Account(client);
-account.listMfaFactors(new CoroutineCallback<>((result, error) -> {
+account.listMFAFactors(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
diff --git a/docs/examples/java/account/update-magic-u-r-l-session.md b/docs/examples/java/account/update-magic-url-session.md
similarity index 100%
rename from docs/examples/java/account/update-magic-u-r-l-session.md
rename to docs/examples/java/account/update-magic-url-session.md
diff --git a/docs/examples/java/account/update-mfa-authenticator.md b/docs/examples/java/account/update-mfa-authenticator.md
index 947c85a..87e3852 100644
--- a/docs/examples/java/account/update-mfa-authenticator.md
+++ b/docs/examples/java/account/update-mfa-authenticator.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
-account.updateMfaAuthenticator(
+account.updateMFAAuthenticator(
AuthenticatorType.TOTP, // type
"", // otp
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/account/update-mfa-challenge.md b/docs/examples/java/account/update-mfa-challenge.md
index b9b0ae9..5e1bebe 100644
--- a/docs/examples/java/account/update-mfa-challenge.md
+++ b/docs/examples/java/account/update-mfa-challenge.md
@@ -9,7 +9,7 @@ Client client = new Client()
Account account = new Account(client);
-account.updateMfaChallenge(
+account.updateMFAChallenge(
"", // challengeId
"", // otp
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/account/update-mfa-recovery-codes.md b/docs/examples/java/account/update-mfa-recovery-codes.md
index 4b3e527..7c303dd 100644
--- a/docs/examples/java/account/update-mfa-recovery-codes.md
+++ b/docs/examples/java/account/update-mfa-recovery-codes.md
@@ -9,7 +9,7 @@ Client client = new Client()
Account account = new Account(client);
-account.updateMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> {
+account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
diff --git a/docs/examples/java/account/update-m-f-a.md b/docs/examples/java/account/update-mfa.md
similarity index 100%
rename from docs/examples/java/account/update-m-f-a.md
rename to docs/examples/java/account/update-mfa.md
diff --git a/docs/examples/java/avatars/get-q-r.md b/docs/examples/java/avatars/get-qr.md
similarity index 100%
rename from docs/examples/java/avatars/get-q-r.md
rename to docs/examples/java/avatars/get-qr.md
diff --git a/docs/examples/java/databases/decrement-document-attribute.md b/docs/examples/java/databases/decrement-document-attribute.md
index 34b7472..a44cc51 100644
--- a/docs/examples/java/databases/decrement-document-attribute.md
+++ b/docs/examples/java/databases/decrement-document-attribute.md
@@ -5,7 +5,7 @@ import io.appwrite.services.Databases;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("") // Your project ID
- .setKey(""); // Your secret API key
+ .setSession(""); // The user session to authenticate with
Databases databases = new Databases(client);
diff --git a/docs/examples/java/databases/increment-document-attribute.md b/docs/examples/java/databases/increment-document-attribute.md
index ca9c357..b5b5054 100644
--- a/docs/examples/java/databases/increment-document-attribute.md
+++ b/docs/examples/java/databases/increment-document-attribute.md
@@ -5,7 +5,7 @@ import io.appwrite.services.Databases;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("") // Your project ID
- .setKey(""); // Your secret API key
+ .setSession(""); // The user session to authenticate with
Databases databases = new Databases(client);
diff --git a/docs/examples/java/health/get-d-b.md b/docs/examples/java/health/get-db.md
similarity index 100%
rename from docs/examples/java/health/get-d-b.md
rename to docs/examples/java/health/get-db.md
diff --git a/docs/examples/java/locale/list-countries-e-u.md b/docs/examples/java/locale/list-countries-eu.md
similarity index 100%
rename from docs/examples/java/locale/list-countries-e-u.md
rename to docs/examples/java/locale/list-countries-eu.md
diff --git a/docs/examples/java/messaging/create-apns-provider.md b/docs/examples/java/messaging/create-apns-provider.md
index 0f66180..acae476 100644
--- a/docs/examples/java/messaging/create-apns-provider.md
+++ b/docs/examples/java/messaging/create-apns-provider.md
@@ -9,7 +9,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.createApnsProvider(
+messaging.createAPNSProvider(
"", // providerId
"", // name
"", // authKey (optional)
diff --git a/docs/examples/java/messaging/create-fcm-provider.md b/docs/examples/java/messaging/create-fcm-provider.md
index 636a1bd..0d67e28 100644
--- a/docs/examples/java/messaging/create-fcm-provider.md
+++ b/docs/examples/java/messaging/create-fcm-provider.md
@@ -9,7 +9,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.createFcmProvider(
+messaging.createFCMProvider(
"", // providerId
"", // name
mapOf( "a" to "b" ), // serviceAccountJSON (optional)
diff --git a/docs/examples/java/messaging/create-msg91provider.md b/docs/examples/java/messaging/create-msg-91-provider.md
similarity index 100%
rename from docs/examples/java/messaging/create-msg91provider.md
rename to docs/examples/java/messaging/create-msg-91-provider.md
diff --git a/docs/examples/java/messaging/create-sms.md b/docs/examples/java/messaging/create-sms.md
index 9e3e3bd..ca40cc3 100644
--- a/docs/examples/java/messaging/create-sms.md
+++ b/docs/examples/java/messaging/create-sms.md
@@ -9,7 +9,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.createSms(
+messaging.createSMS(
"", // messageId
"", // content
listOf(), // topics (optional)
diff --git a/docs/examples/java/messaging/create-smtp-provider.md b/docs/examples/java/messaging/create-smtp-provider.md
index ebd153c..1f1a0f9 100644
--- a/docs/examples/java/messaging/create-smtp-provider.md
+++ b/docs/examples/java/messaging/create-smtp-provider.md
@@ -9,7 +9,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.createSmtpProvider(
+messaging.createSMTPProvider(
"", // providerId
"", // name
"", // host
diff --git a/docs/examples/java/messaging/update-apns-provider.md b/docs/examples/java/messaging/update-apns-provider.md
index 737a142..c5da5ba 100644
--- a/docs/examples/java/messaging/update-apns-provider.md
+++ b/docs/examples/java/messaging/update-apns-provider.md
@@ -9,7 +9,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.updateApnsProvider(
+messaging.updateAPNSProvider(
"", // providerId
"", // name (optional)
false, // enabled (optional)
diff --git a/docs/examples/java/messaging/update-fcm-provider.md b/docs/examples/java/messaging/update-fcm-provider.md
index 68c56ef..dd92f93 100644
--- a/docs/examples/java/messaging/update-fcm-provider.md
+++ b/docs/examples/java/messaging/update-fcm-provider.md
@@ -9,7 +9,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.updateFcmProvider(
+messaging.updateFCMProvider(
"", // providerId
"", // name (optional)
false, // enabled (optional)
diff --git a/docs/examples/java/messaging/update-msg91provider.md b/docs/examples/java/messaging/update-msg-91-provider.md
similarity index 100%
rename from docs/examples/java/messaging/update-msg91provider.md
rename to docs/examples/java/messaging/update-msg-91-provider.md
diff --git a/docs/examples/java/messaging/update-sms.md b/docs/examples/java/messaging/update-sms.md
index c55cfdf..c59505b 100644
--- a/docs/examples/java/messaging/update-sms.md
+++ b/docs/examples/java/messaging/update-sms.md
@@ -9,7 +9,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.updateSms(
+messaging.updateSMS(
"", // messageId
listOf(), // topics (optional)
listOf(), // users (optional)
diff --git a/docs/examples/java/messaging/update-smtp-provider.md b/docs/examples/java/messaging/update-smtp-provider.md
index 3f39661..36f1200 100644
--- a/docs/examples/java/messaging/update-smtp-provider.md
+++ b/docs/examples/java/messaging/update-smtp-provider.md
@@ -9,7 +9,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.updateSmtpProvider(
+messaging.updateSMTPProvider(
"", // providerId
"", // name (optional)
"", // host (optional)
diff --git a/docs/examples/java/tablesdb/create-boolean-column.md b/docs/examples/java/tablesdb/create-boolean-column.md
new file mode 100644
index 0000000..14a96a1
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-boolean-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createBooleanColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ false, // default (optional)
+ false, // array (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-datetime-column.md b/docs/examples/java/tablesdb/create-datetime-column.md
new file mode 100644
index 0000000..6dd28b3
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-datetime-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createDatetimeColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ "", // default (optional)
+ false, // array (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-email-column.md b/docs/examples/java/tablesdb/create-email-column.md
new file mode 100644
index 0000000..e9f3d36
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-email-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createEmailColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ "email@example.com", // default (optional)
+ false, // array (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-enum-column.md b/docs/examples/java/tablesdb/create-enum-column.md
new file mode 100644
index 0000000..bc31bbe
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-enum-column.md
@@ -0,0 +1,29 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createEnumColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ listOf(), // elements
+ false, // required
+ "", // default (optional)
+ false, // array (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-float-column.md b/docs/examples/java/tablesdb/create-float-column.md
new file mode 100644
index 0000000..51312d0
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-float-column.md
@@ -0,0 +1,30 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createFloatColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ 0, // min (optional)
+ 0, // max (optional)
+ 0, // default (optional)
+ false, // array (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-index.md b/docs/examples/java/tablesdb/create-index.md
new file mode 100644
index 0000000..991bd34
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-index.md
@@ -0,0 +1,30 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+import io.appwrite.enums.IndexType;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createIndex(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ IndexType.KEY, // type
+ listOf(), // columns
+ listOf(), // orders (optional)
+ listOf(), // lengths (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-integer-column.md b/docs/examples/java/tablesdb/create-integer-column.md
new file mode 100644
index 0000000..1e0a363
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-integer-column.md
@@ -0,0 +1,30 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createIntegerColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ 0, // min (optional)
+ 0, // max (optional)
+ 0, // default (optional)
+ false, // array (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-ip-column.md b/docs/examples/java/tablesdb/create-ip-column.md
new file mode 100644
index 0000000..a963cc1
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-ip-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createIpColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ "", // default (optional)
+ false, // array (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-relationship-column.md b/docs/examples/java/tablesdb/create-relationship-column.md
new file mode 100644
index 0000000..956c1fa
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-relationship-column.md
@@ -0,0 +1,31 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+import io.appwrite.enums.RelationshipType;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createRelationshipColumn(
+ "", // databaseId
+ "", // tableId
+ "", // relatedTableId
+ RelationshipType.ONETOONE, // type
+ false, // twoWay (optional)
+ "", // key (optional)
+ "", // twoWayKey (optional)
+ RelationMutate.CASCADE, // onDelete (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-row.md b/docs/examples/java/tablesdb/create-row.md
new file mode 100644
index 0000000..4145022
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-row.md
@@ -0,0 +1,27 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createRow(
+ "", // databaseId
+ "", // tableId
+ "", // rowId
+ mapOf( "a" to "b" ), // data
+ listOf("read("any")"), // permissions (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-rows.md b/docs/examples/java/tablesdb/create-rows.md
new file mode 100644
index 0000000..21bdd21
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-rows.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createRows(
+ "", // databaseId
+ "", // tableId
+ listOf(), // rows
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-string-column.md b/docs/examples/java/tablesdb/create-string-column.md
new file mode 100644
index 0000000..3596340
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-string-column.md
@@ -0,0 +1,30 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createStringColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ 1, // size
+ false, // required
+ "", // default (optional)
+ false, // array (optional)
+ false, // encrypt (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-table.md b/docs/examples/java/tablesdb/create-table.md
new file mode 100644
index 0000000..5bd3b6d
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-table.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createTable(
+ "", // databaseId
+ "", // tableId
+ "", // name
+ listOf("read("any")"), // permissions (optional)
+ false, // rowSecurity (optional)
+ false, // enabled (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create-url-column.md b/docs/examples/java/tablesdb/create-url-column.md
new file mode 100644
index 0000000..20c10e6
--- /dev/null
+++ b/docs/examples/java/tablesdb/create-url-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.createUrlColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ "https://example.com", // default (optional)
+ false, // array (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/create.md b/docs/examples/java/tablesdb/create.md
new file mode 100644
index 0000000..112e8e6
--- /dev/null
+++ b/docs/examples/java/tablesdb/create.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.create(
+ "", // databaseId
+ "", // name
+ false, // enabled (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/decrement-row-column.md b/docs/examples/java/tablesdb/decrement-row-column.md
new file mode 100644
index 0000000..b9f250f
--- /dev/null
+++ b/docs/examples/java/tablesdb/decrement-row-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.decrementRowColumn(
+ "", // databaseId
+ "", // tableId
+ "", // rowId
+ "", // column
+ 0, // value (optional)
+ 0, // min (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/delete-column.md b/docs/examples/java/tablesdb/delete-column.md
new file mode 100644
index 0000000..25d94d2
--- /dev/null
+++ b/docs/examples/java/tablesdb/delete-column.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.deleteColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/delete-index.md b/docs/examples/java/tablesdb/delete-index.md
new file mode 100644
index 0000000..aa40dd0
--- /dev/null
+++ b/docs/examples/java/tablesdb/delete-index.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.deleteIndex(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/delete-row.md b/docs/examples/java/tablesdb/delete-row.md
new file mode 100644
index 0000000..fd66525
--- /dev/null
+++ b/docs/examples/java/tablesdb/delete-row.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.deleteRow(
+ "", // databaseId
+ "", // tableId
+ "", // rowId
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/delete-rows.md b/docs/examples/java/tablesdb/delete-rows.md
new file mode 100644
index 0000000..43b772e
--- /dev/null
+++ b/docs/examples/java/tablesdb/delete-rows.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.deleteRows(
+ "", // databaseId
+ "", // tableId
+ listOf(), // queries (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/delete-table.md b/docs/examples/java/tablesdb/delete-table.md
new file mode 100644
index 0000000..dcd6daa
--- /dev/null
+++ b/docs/examples/java/tablesdb/delete-table.md
@@ -0,0 +1,24 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.deleteTable(
+ "", // databaseId
+ "", // tableId
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/delete.md b/docs/examples/java/tablesdb/delete.md
new file mode 100644
index 0000000..ea30c34
--- /dev/null
+++ b/docs/examples/java/tablesdb/delete.md
@@ -0,0 +1,23 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.delete(
+ "", // databaseId
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/get-column.md b/docs/examples/java/tablesdb/get-column.md
new file mode 100644
index 0000000..42ed776
--- /dev/null
+++ b/docs/examples/java/tablesdb/get-column.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.getColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/get-index.md b/docs/examples/java/tablesdb/get-index.md
new file mode 100644
index 0000000..d14579d
--- /dev/null
+++ b/docs/examples/java/tablesdb/get-index.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.getIndex(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/get-row.md b/docs/examples/java/tablesdb/get-row.md
new file mode 100644
index 0000000..03cf3fb
--- /dev/null
+++ b/docs/examples/java/tablesdb/get-row.md
@@ -0,0 +1,26 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.getRow(
+ "", // databaseId
+ "", // tableId
+ "", // rowId
+ listOf(), // queries (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/get-table.md b/docs/examples/java/tablesdb/get-table.md
new file mode 100644
index 0000000..4486249
--- /dev/null
+++ b/docs/examples/java/tablesdb/get-table.md
@@ -0,0 +1,24 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.getTable(
+ "", // databaseId
+ "", // tableId
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/get.md b/docs/examples/java/tablesdb/get.md
new file mode 100644
index 0000000..6480d62
--- /dev/null
+++ b/docs/examples/java/tablesdb/get.md
@@ -0,0 +1,23 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.get(
+ "", // databaseId
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/increment-row-column.md b/docs/examples/java/tablesdb/increment-row-column.md
new file mode 100644
index 0000000..db48d05
--- /dev/null
+++ b/docs/examples/java/tablesdb/increment-row-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.incrementRowColumn(
+ "", // databaseId
+ "", // tableId
+ "", // rowId
+ "", // column
+ 0, // value (optional)
+ 0, // max (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/list-columns.md b/docs/examples/java/tablesdb/list-columns.md
new file mode 100644
index 0000000..f0e70d3
--- /dev/null
+++ b/docs/examples/java/tablesdb/list-columns.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.listColumns(
+ "", // databaseId
+ "", // tableId
+ listOf(), // queries (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/list-indexes.md b/docs/examples/java/tablesdb/list-indexes.md
new file mode 100644
index 0000000..1e5d1f9
--- /dev/null
+++ b/docs/examples/java/tablesdb/list-indexes.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.listIndexes(
+ "", // databaseId
+ "", // tableId
+ listOf(), // queries (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/list-rows.md b/docs/examples/java/tablesdb/list-rows.md
new file mode 100644
index 0000000..52cf2a1
--- /dev/null
+++ b/docs/examples/java/tablesdb/list-rows.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.listRows(
+ "", // databaseId
+ "", // tableId
+ listOf(), // queries (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/list-tables.md b/docs/examples/java/tablesdb/list-tables.md
new file mode 100644
index 0000000..5e98cb6
--- /dev/null
+++ b/docs/examples/java/tablesdb/list-tables.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.listTables(
+ "", // databaseId
+ listOf(), // queries (optional)
+ "", // search (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/list.md b/docs/examples/java/tablesdb/list.md
new file mode 100644
index 0000000..34dc9da
--- /dev/null
+++ b/docs/examples/java/tablesdb/list.md
@@ -0,0 +1,24 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.list(
+ listOf(), // queries (optional)
+ "", // search (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-boolean-column.md b/docs/examples/java/tablesdb/update-boolean-column.md
new file mode 100644
index 0000000..d31932f
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-boolean-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateBooleanColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ false, // default
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-datetime-column.md b/docs/examples/java/tablesdb/update-datetime-column.md
new file mode 100644
index 0000000..b9fb3b2
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-datetime-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateDatetimeColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ "", // default
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-email-column.md b/docs/examples/java/tablesdb/update-email-column.md
new file mode 100644
index 0000000..ed6b93b
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-email-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateEmailColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ "email@example.com", // default
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-enum-column.md b/docs/examples/java/tablesdb/update-enum-column.md
new file mode 100644
index 0000000..5a8036a
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-enum-column.md
@@ -0,0 +1,29 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateEnumColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ listOf(), // elements
+ false, // required
+ "", // default
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-float-column.md b/docs/examples/java/tablesdb/update-float-column.md
new file mode 100644
index 0000000..0487c06
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-float-column.md
@@ -0,0 +1,30 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateFloatColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ 0, // default
+ 0, // min (optional)
+ 0, // max (optional)
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-integer-column.md b/docs/examples/java/tablesdb/update-integer-column.md
new file mode 100644
index 0000000..a9ed33a
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-integer-column.md
@@ -0,0 +1,30 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateIntegerColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ 0, // default
+ 0, // min (optional)
+ 0, // max (optional)
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-ip-column.md b/docs/examples/java/tablesdb/update-ip-column.md
new file mode 100644
index 0000000..3250954
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-ip-column.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateIpColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ "", // default
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-relationship-column.md b/docs/examples/java/tablesdb/update-relationship-column.md
new file mode 100644
index 0000000..45aea8a
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-relationship-column.md
@@ -0,0 +1,27 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateRelationshipColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ RelationMutate.CASCADE, // onDelete (optional)
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-row.md b/docs/examples/java/tablesdb/update-row.md
new file mode 100644
index 0000000..bedc816
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-row.md
@@ -0,0 +1,27 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateRow(
+ "", // databaseId
+ "", // tableId
+ "", // rowId
+ mapOf( "a" to "b" ), // data (optional)
+ listOf("read("any")"), // permissions (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-rows.md b/docs/examples/java/tablesdb/update-rows.md
new file mode 100644
index 0000000..169b57c
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-rows.md
@@ -0,0 +1,26 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateRows(
+ "", // databaseId
+ "", // tableId
+ mapOf( "a" to "b" ), // data (optional)
+ listOf(), // queries (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-string-column.md b/docs/examples/java/tablesdb/update-string-column.md
new file mode 100644
index 0000000..36a2ed5
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-string-column.md
@@ -0,0 +1,29 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateStringColumn(
+ "", // databaseId
+ "", // tableId
+ "", // key
+ false, // required
+ "", // default
+ 1, // size (optional)
+ "", // newKey (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/tablesdb/update-table.md b/docs/examples/java/tablesdb/update-table.md
new file mode 100644
index 0000000..e593a04
--- /dev/null
+++ b/docs/examples/java/tablesdb/update-table.md
@@ -0,0 +1,28 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.TablesDB;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+TablesDB tablesDB = new TablesDB(client);
+
+tablesDB.updateTable(
+ "", // databaseId
+ "", // tableId
+ "