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-m-f-a-authenticator.md b/docs/examples/java/account/create-m-f-a-authenticator.md
new file mode 100644
index 0000000..d38ddd3
--- /dev/null
+++ b/docs/examples/java/account/create-m-f-a-authenticator.md
@@ -0,0 +1,24 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+import io.appwrite.enums.AuthenticatorType;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Account account = new Account(client);
+
+account.createMFAAuthenticator(
+ AuthenticatorType.TOTP, // type
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/account/create-m-f-a-challenge.md b/docs/examples/java/account/create-m-f-a-challenge.md
new file mode 100644
index 0000000..5c048cb
--- /dev/null
+++ b/docs/examples/java/account/create-m-f-a-challenge.md
@@ -0,0 +1,23 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+import io.appwrite.enums.AuthenticationFactor;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject(""); // Your project ID
+
+Account account = new Account(client);
+
+account.createMFAChallenge(
+ AuthenticationFactor.EMAIL, // factor
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/account/create-m-f-a-recovery-codes.md b/docs/examples/java/account/create-m-f-a-recovery-codes.md
new file mode 100644
index 0000000..6a47a17
--- /dev/null
+++ b/docs/examples/java/account/create-m-f-a-recovery-codes.md
@@ -0,0 +1,19 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Account account = new Account(client);
+
+account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+}));
diff --git a/docs/examples/java/account/delete-m-f-a-authenticator.md b/docs/examples/java/account/delete-m-f-a-authenticator.md
new file mode 100644
index 0000000..20a6acd
--- /dev/null
+++ b/docs/examples/java/account/delete-m-f-a-authenticator.md
@@ -0,0 +1,24 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+import io.appwrite.enums.AuthenticatorType;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Account account = new Account(client);
+
+account.deleteMFAAuthenticator(
+ AuthenticatorType.TOTP, // type
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/account/get-m-f-a-recovery-codes.md b/docs/examples/java/account/get-m-f-a-recovery-codes.md
new file mode 100644
index 0000000..813a0a6
--- /dev/null
+++ b/docs/examples/java/account/get-m-f-a-recovery-codes.md
@@ -0,0 +1,19 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Account account = new Account(client);
+
+account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+}));
diff --git a/docs/examples/java/account/list-m-f-a-factors.md b/docs/examples/java/account/list-m-f-a-factors.md
new file mode 100644
index 0000000..0bdc378
--- /dev/null
+++ b/docs/examples/java/account/list-m-f-a-factors.md
@@ -0,0 +1,19 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Account account = new Account(client);
+
+account.listMFAFactors(new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+}));
diff --git a/docs/examples/java/account/update-m-f-a-authenticator.md b/docs/examples/java/account/update-m-f-a-authenticator.md
new file mode 100644
index 0000000..87e3852
--- /dev/null
+++ b/docs/examples/java/account/update-m-f-a-authenticator.md
@@ -0,0 +1,25 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+import io.appwrite.enums.AuthenticatorType;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Account account = new Account(client);
+
+account.updateMFAAuthenticator(
+ AuthenticatorType.TOTP, // type
+ "", // otp
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/account/update-m-f-a-challenge.md b/docs/examples/java/account/update-m-f-a-challenge.md
new file mode 100644
index 0000000..5e1bebe
--- /dev/null
+++ b/docs/examples/java/account/update-m-f-a-challenge.md
@@ -0,0 +1,24 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Account account = new Account(client);
+
+account.updateMFAChallenge(
+ "", // challengeId
+ "", // otp
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/account/update-m-f-a-recovery-codes.md b/docs/examples/java/account/update-m-f-a-recovery-codes.md
new file mode 100644
index 0000000..7c303dd
--- /dev/null
+++ b/docs/examples/java/account/update-m-f-a-recovery-codes.md
@@ -0,0 +1,19 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Account;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Account account = new Account(client);
+
+account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+}));
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/messaging/create-a-p-n-s-provider.md b/docs/examples/java/messaging/create-a-p-n-s-provider.md
new file mode 100644
index 0000000..acae476
--- /dev/null
+++ b/docs/examples/java/messaging/create-a-p-n-s-provider.md
@@ -0,0 +1,30 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.createAPNSProvider(
+ "", // providerId
+ "", // name
+ "", // authKey (optional)
+ "", // authKeyId (optional)
+ "", // teamId (optional)
+ "", // bundleId (optional)
+ false, // sandbox (optional)
+ false, // enabled (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/create-f-c-m-provider.md b/docs/examples/java/messaging/create-f-c-m-provider.md
new file mode 100644
index 0000000..0d67e28
--- /dev/null
+++ b/docs/examples/java/messaging/create-f-c-m-provider.md
@@ -0,0 +1,26 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.createFCMProvider(
+ "", // providerId
+ "", // name
+ mapOf( "a" to "b" ), // serviceAccountJSON (optional)
+ false, // enabled (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/create-s-m-s.md b/docs/examples/java/messaging/create-s-m-s.md
new file mode 100644
index 0000000..ca40cc3
--- /dev/null
+++ b/docs/examples/java/messaging/create-s-m-s.md
@@ -0,0 +1,29 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.createSMS(
+ "", // messageId
+ "", // content
+ listOf(), // topics (optional)
+ listOf(), // users (optional)
+ listOf(), // targets (optional)
+ false, // draft (optional)
+ "", // scheduledAt (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/create-s-m-t-p-provider.md b/docs/examples/java/messaging/create-s-m-t-p-provider.md
new file mode 100644
index 0000000..1f1a0f9
--- /dev/null
+++ b/docs/examples/java/messaging/create-s-m-t-p-provider.md
@@ -0,0 +1,36 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.createSMTPProvider(
+ "", // providerId
+ "", // name
+ "", // host
+ 1, // port (optional)
+ "", // username (optional)
+ "", // password (optional)
+ SmtpEncryption.NONE, // encryption (optional)
+ false, // autoTLS (optional)
+ "", // mailer (optional)
+ "", // fromName (optional)
+ "email@example.com", // fromEmail (optional)
+ "", // replyToName (optional)
+ "email@example.com", // replyToEmail (optional)
+ false, // enabled (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/update-a-p-n-s-provider.md b/docs/examples/java/messaging/update-a-p-n-s-provider.md
new file mode 100644
index 0000000..c5da5ba
--- /dev/null
+++ b/docs/examples/java/messaging/update-a-p-n-s-provider.md
@@ -0,0 +1,30 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.updateAPNSProvider(
+ "", // providerId
+ "", // name (optional)
+ false, // enabled (optional)
+ "", // authKey (optional)
+ "", // authKeyId (optional)
+ "", // teamId (optional)
+ "", // bundleId (optional)
+ false, // sandbox (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/update-f-c-m-provider.md b/docs/examples/java/messaging/update-f-c-m-provider.md
new file mode 100644
index 0000000..dd92f93
--- /dev/null
+++ b/docs/examples/java/messaging/update-f-c-m-provider.md
@@ -0,0 +1,26 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.updateFCMProvider(
+ "", // providerId
+ "", // name (optional)
+ false, // enabled (optional)
+ mapOf( "a" to "b" ), // serviceAccountJSON (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/update-s-m-s.md b/docs/examples/java/messaging/update-s-m-s.md
new file mode 100644
index 0000000..c59505b
--- /dev/null
+++ b/docs/examples/java/messaging/update-s-m-s.md
@@ -0,0 +1,29 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.updateSMS(
+ "", // messageId
+ listOf(), // topics (optional)
+ listOf(), // users (optional)
+ listOf(), // targets (optional)
+ "", // content (optional)
+ false, // draft (optional)
+ "", // scheduledAt (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/update-s-m-t-p-provider.md b/docs/examples/java/messaging/update-s-m-t-p-provider.md
new file mode 100644
index 0000000..36f1200
--- /dev/null
+++ b/docs/examples/java/messaging/update-s-m-t-p-provider.md
@@ -0,0 +1,36 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setKey(""); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.updateSMTPProvider(
+ "", // providerId
+ "", // name (optional)
+ "", // host (optional)
+ 1, // port (optional)
+ "", // username (optional)
+ "", // password (optional)
+ SmtpEncryption.NONE, // encryption (optional)
+ false, // autoTLS (optional)
+ "", // mailer (optional)
+ "", // fromName (optional)
+ "email@example.com", // fromEmail (optional)
+ "", // replyToName (optional)
+ "", // replyToEmail (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-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("