mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
reset: docs for easier review.
This commit is contained in:
parent
be3d91d541
commit
00290bdb65
724 changed files with 12612 additions and 0 deletions
28
docs/examples/1.8.x/client-android/java/tables/create-row.md
Normal file
28
docs/examples/1.8.x/client-android/java/tables/create-row.md
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
import io.appwrite.Client;
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
import io.appwrite.services.Tables;
|
||||||
|
|
||||||
|
Client client = new Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setSession("") // The user session to authenticate with
|
||||||
|
.setKey("") //
|
||||||
|
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
Tables tables = new Tables(client);
|
||||||
|
|
||||||
|
tables.createRow(
|
||||||
|
"<DATABASE_ID>", // databaseId
|
||||||
|
"<TABLE_ID>", // tableId
|
||||||
|
"<ROW_ID>", // rowId
|
||||||
|
mapOf( "a" to "b" ), // data
|
||||||
|
listOf("read("any")"), // permissions (optional)
|
||||||
|
new CoroutineCallback<>((result, error) -> {
|
||||||
|
if (error != null) {
|
||||||
|
error.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.d("Appwrite", result.toString());
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
import io.appwrite.Client;
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
import io.appwrite.services.Tables;
|
||||||
|
|
||||||
|
Client client = new Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setAdmin("") //
|
||||||
|
.setKey(""); //
|
||||||
|
|
||||||
|
Tables tables = new Tables(client);
|
||||||
|
|
||||||
|
tables.createRows(
|
||||||
|
"<DATABASE_ID>", // databaseId
|
||||||
|
"<TABLE_ID>", // tableId
|
||||||
|
listOf(), // rows
|
||||||
|
new CoroutineCallback<>((result, error) -> {
|
||||||
|
if (error != null) {
|
||||||
|
error.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.d("Appwrite", result.toString());
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
24
docs/examples/1.8.x/client-android/java/tables/delete-row.md
Normal file
24
docs/examples/1.8.x/client-android/java/tables/delete-row.md
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
import io.appwrite.Client;
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
import io.appwrite.services.Tables;
|
||||||
|
|
||||||
|
Client client = new Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||||
|
|
||||||
|
Tables tables = new Tables(client);
|
||||||
|
|
||||||
|
tables.deleteRow(
|
||||||
|
"<DATABASE_ID>", // databaseId
|
||||||
|
"<TABLE_ID>", // tableId
|
||||||
|
"<ROW_ID>", // rowId
|
||||||
|
new CoroutineCallback<>((result, error) -> {
|
||||||
|
if (error != null) {
|
||||||
|
error.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.d("Appwrite", result.toString());
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
25
docs/examples/1.8.x/client-android/java/tables/get-row.md
Normal file
25
docs/examples/1.8.x/client-android/java/tables/get-row.md
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
import io.appwrite.Client;
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
import io.appwrite.services.Tables;
|
||||||
|
|
||||||
|
Client client = new Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||||
|
|
||||||
|
Tables tables = new Tables(client);
|
||||||
|
|
||||||
|
tables.getRow(
|
||||||
|
"<DATABASE_ID>", // databaseId
|
||||||
|
"<TABLE_ID>", // tableId
|
||||||
|
"<ROW_ID>", // rowId
|
||||||
|
listOf(), // queries (optional)
|
||||||
|
new CoroutineCallback<>((result, error) -> {
|
||||||
|
if (error != null) {
|
||||||
|
error.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.d("Appwrite", result.toString());
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
24
docs/examples/1.8.x/client-android/java/tables/list-rows.md
Normal file
24
docs/examples/1.8.x/client-android/java/tables/list-rows.md
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
import io.appwrite.Client;
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
import io.appwrite.services.Tables;
|
||||||
|
|
||||||
|
Client client = new Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||||
|
|
||||||
|
Tables tables = new Tables(client);
|
||||||
|
|
||||||
|
tables.listRows(
|
||||||
|
"<DATABASE_ID>", // databaseId
|
||||||
|
"<TABLE_ID>", // tableId
|
||||||
|
listOf(), // queries (optional)
|
||||||
|
new CoroutineCallback<>((result, error) -> {
|
||||||
|
if (error != null) {
|
||||||
|
error.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.d("Appwrite", result.toString());
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
26
docs/examples/1.8.x/client-android/java/tables/update-row.md
Normal file
26
docs/examples/1.8.x/client-android/java/tables/update-row.md
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
import io.appwrite.Client;
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
import io.appwrite.services.Tables;
|
||||||
|
|
||||||
|
Client client = new Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
|
||||||
|
|
||||||
|
Tables tables = new Tables(client);
|
||||||
|
|
||||||
|
tables.updateRow(
|
||||||
|
"<DATABASE_ID>", // databaseId
|
||||||
|
"<TABLE_ID>", // tableId
|
||||||
|
"<ROW_ID>", // rowId
|
||||||
|
mapOf( "a" to "b" ), // data (optional)
|
||||||
|
listOf("read("any")"), // permissions (optional)
|
||||||
|
new CoroutineCallback<>((result, error) -> {
|
||||||
|
if (error != null) {
|
||||||
|
error.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.d("Appwrite", result.toString());
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
26
docs/examples/1.8.x/client-android/java/tables/upsert-row.md
Normal file
26
docs/examples/1.8.x/client-android/java/tables/upsert-row.md
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
import io.appwrite.Client;
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
import io.appwrite.services.Tables;
|
||||||
|
|
||||||
|
Client client = new Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setSession("") // The user session to authenticate with
|
||||||
|
.setKey("") //
|
||||||
|
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
Tables tables = new Tables(client);
|
||||||
|
|
||||||
|
tables.upsertRow(
|
||||||
|
"<DATABASE_ID>", // databaseId
|
||||||
|
"<TABLE_ID>", // tableId
|
||||||
|
"<ROW_ID>", // rowId
|
||||||
|
new CoroutineCallback<>((result, error) -> {
|
||||||
|
if (error != null) {
|
||||||
|
error.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.d("Appwrite", result.toString());
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
import io.appwrite.Client
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback
|
||||||
|
import io.appwrite.services.Tables
|
||||||
|
|
||||||
|
val client = Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setSession("") // The user session to authenticate with
|
||||||
|
.setKey("") //
|
||||||
|
.setJWT("<YOUR_JWT>") // Your secret JSON Web Token
|
||||||
|
|
||||||
|
val tables = Tables(client)
|
||||||
|
|
||||||
|
val result = tables.createRow(
|
||||||
|
databaseId = "<DATABASE_ID>",
|
||||||
|
tableId = "<TABLE_ID>",
|
||||||
|
rowId = "<ROW_ID>",
|
||||||
|
data = mapOf( "a" to "b" ),
|
||||||
|
permissions = listOf("read("any")"), // (optional)
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import io.appwrite.Client
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback
|
||||||
|
import io.appwrite.services.Tables
|
||||||
|
|
||||||
|
val client = Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setAdmin("") //
|
||||||
|
.setKey("") //
|
||||||
|
|
||||||
|
val tables = Tables(client)
|
||||||
|
|
||||||
|
val result = tables.createRows(
|
||||||
|
databaseId = "<DATABASE_ID>",
|
||||||
|
tableId = "<TABLE_ID>",
|
||||||
|
rows = listOf(),
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
import io.appwrite.Client
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback
|
||||||
|
import io.appwrite.services.Tables
|
||||||
|
|
||||||
|
val client = Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
|
val tables = Tables(client)
|
||||||
|
|
||||||
|
val result = tables.deleteRow(
|
||||||
|
databaseId = "<DATABASE_ID>",
|
||||||
|
tableId = "<TABLE_ID>",
|
||||||
|
rowId = "<ROW_ID>",
|
||||||
|
)
|
||||||
16
docs/examples/1.8.x/client-android/kotlin/tables/get-row.md
Normal file
16
docs/examples/1.8.x/client-android/kotlin/tables/get-row.md
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
import io.appwrite.Client
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback
|
||||||
|
import io.appwrite.services.Tables
|
||||||
|
|
||||||
|
val client = Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
|
val tables = Tables(client)
|
||||||
|
|
||||||
|
val result = tables.getRow(
|
||||||
|
databaseId = "<DATABASE_ID>",
|
||||||
|
tableId = "<TABLE_ID>",
|
||||||
|
rowId = "<ROW_ID>",
|
||||||
|
queries = listOf(), // (optional)
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
import io.appwrite.Client
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback
|
||||||
|
import io.appwrite.services.Tables
|
||||||
|
|
||||||
|
val client = Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
|
val tables = Tables(client)
|
||||||
|
|
||||||
|
val result = tables.listRows(
|
||||||
|
databaseId = "<DATABASE_ID>",
|
||||||
|
tableId = "<TABLE_ID>",
|
||||||
|
queries = listOf(), // (optional)
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
import io.appwrite.Client
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback
|
||||||
|
import io.appwrite.services.Tables
|
||||||
|
|
||||||
|
val client = Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
|
val tables = Tables(client)
|
||||||
|
|
||||||
|
val result = tables.updateRow(
|
||||||
|
databaseId = "<DATABASE_ID>",
|
||||||
|
tableId = "<TABLE_ID>",
|
||||||
|
rowId = "<ROW_ID>",
|
||||||
|
data = mapOf( "a" to "b" ), // (optional)
|
||||||
|
permissions = listOf("read("any")"), // (optional)
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
import io.appwrite.Client
|
||||||
|
import io.appwrite.coroutines.CoroutineCallback
|
||||||
|
import io.appwrite.services.Tables
|
||||||
|
|
||||||
|
val client = Client(context)
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setSession("") // The user session to authenticate with
|
||||||
|
.setKey("") //
|
||||||
|
.setJWT("<YOUR_JWT>") // Your secret JSON Web Token
|
||||||
|
|
||||||
|
val tables = Tables(client)
|
||||||
|
|
||||||
|
val result = tables.upsertRow(
|
||||||
|
databaseId = "<DATABASE_ID>",
|
||||||
|
tableId = "<TABLE_ID>",
|
||||||
|
rowId = "<ROW_ID>",
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import Appwrite
|
||||||
|
|
||||||
|
let client = Client()
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setSession("") // The user session to authenticate with
|
||||||
|
.setKey("") //
|
||||||
|
.setJWT("<YOUR_JWT>") // Your secret JSON Web Token
|
||||||
|
|
||||||
|
let tables = Tables(client)
|
||||||
|
|
||||||
|
let row = try await tables.createRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>",
|
||||||
|
data: [:],
|
||||||
|
permissions: ["read("any")"] // optional
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
import Appwrite
|
||||||
|
|
||||||
|
let client = Client()
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setAdmin("") //
|
||||||
|
.setKey("") //
|
||||||
|
|
||||||
|
let tables = Tables(client)
|
||||||
|
|
||||||
|
let rowList = try await tables.createRows(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rows: []
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import Appwrite
|
||||||
|
|
||||||
|
let client = Client()
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
|
let tables = Tables(client)
|
||||||
|
|
||||||
|
let result = try await tables.deleteRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>"
|
||||||
|
)
|
||||||
|
|
||||||
15
docs/examples/1.8.x/client-apple/examples/tables/get-row.md
Normal file
15
docs/examples/1.8.x/client-apple/examples/tables/get-row.md
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
import Appwrite
|
||||||
|
|
||||||
|
let client = Client()
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
|
let tables = Tables(client)
|
||||||
|
|
||||||
|
let row = try await tables.getRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>",
|
||||||
|
queries: [] // optional
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import Appwrite
|
||||||
|
|
||||||
|
let client = Client()
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
|
let tables = Tables(client)
|
||||||
|
|
||||||
|
let rowList = try await tables.listRows(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
queries: [] // optional
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import Appwrite
|
||||||
|
|
||||||
|
let client = Client()
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
|
let tables = Tables(client)
|
||||||
|
|
||||||
|
let row = try await tables.updateRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>",
|
||||||
|
data: [:], // optional
|
||||||
|
permissions: ["read("any")"] // optional
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import Appwrite
|
||||||
|
|
||||||
|
let client = Client()
|
||||||
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.setSession("") // The user session to authenticate with
|
||||||
|
.setKey("") //
|
||||||
|
.setJWT("<YOUR_JWT>") // Your secret JSON Web Token
|
||||||
|
|
||||||
|
let tables = Tables(client)
|
||||||
|
|
||||||
|
let row = try await tables.upsertRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
|
Client client = Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setSession('') // The user session to authenticate with
|
||||||
|
.setKey('') //
|
||||||
|
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
Tables tables = Tables(client);
|
||||||
|
|
||||||
|
Row result = await tables.createRow(
|
||||||
|
databaseId: '<DATABASE_ID>',
|
||||||
|
tableId: '<TABLE_ID>',
|
||||||
|
rowId: '<ROW_ID>',
|
||||||
|
data: {},
|
||||||
|
permissions: ["read("any")"], // optional
|
||||||
|
);
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
|
Client client = Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setAdmin('') //
|
||||||
|
.setKey(''); //
|
||||||
|
|
||||||
|
Tables tables = Tables(client);
|
||||||
|
|
||||||
|
RowList result = await tables.createRows(
|
||||||
|
databaseId: '<DATABASE_ID>',
|
||||||
|
tableId: '<TABLE_ID>',
|
||||||
|
rows: [],
|
||||||
|
);
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
|
Client client = Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
Tables tables = Tables(client);
|
||||||
|
|
||||||
|
await tables.deleteRow(
|
||||||
|
databaseId: '<DATABASE_ID>',
|
||||||
|
tableId: '<TABLE_ID>',
|
||||||
|
rowId: '<ROW_ID>',
|
||||||
|
);
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
|
Client client = Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
Tables tables = Tables(client);
|
||||||
|
|
||||||
|
Row result = await tables.getRow(
|
||||||
|
databaseId: '<DATABASE_ID>',
|
||||||
|
tableId: '<TABLE_ID>',
|
||||||
|
rowId: '<ROW_ID>',
|
||||||
|
queries: [], // optional
|
||||||
|
);
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
|
Client client = Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
Tables tables = Tables(client);
|
||||||
|
|
||||||
|
RowList result = await tables.listRows(
|
||||||
|
databaseId: '<DATABASE_ID>',
|
||||||
|
tableId: '<TABLE_ID>',
|
||||||
|
queries: [], // optional
|
||||||
|
);
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
|
Client client = Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
Tables tables = Tables(client);
|
||||||
|
|
||||||
|
Row result = await tables.updateRow(
|
||||||
|
databaseId: '<DATABASE_ID>',
|
||||||
|
tableId: '<TABLE_ID>',
|
||||||
|
rowId: '<ROW_ID>',
|
||||||
|
data: {}, // optional
|
||||||
|
permissions: ["read("any")"], // optional
|
||||||
|
);
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
|
Client client = Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setSession('') // The user session to authenticate with
|
||||||
|
.setKey('') //
|
||||||
|
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
Tables tables = Tables(client);
|
||||||
|
|
||||||
|
Row result = await tables.upsertRow(
|
||||||
|
databaseId: '<DATABASE_ID>',
|
||||||
|
tableId: '<TABLE_ID>',
|
||||||
|
rowId: '<ROW_ID>',
|
||||||
|
);
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
mutation {
|
||||||
|
tablesCreateRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>",
|
||||||
|
data: "{}",
|
||||||
|
permissions: ["read("any")"]
|
||||||
|
) {
|
||||||
|
_id
|
||||||
|
_sequence
|
||||||
|
_tableId
|
||||||
|
_databaseId
|
||||||
|
_createdAt
|
||||||
|
_updatedAt
|
||||||
|
_permissions
|
||||||
|
data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
mutation {
|
||||||
|
tablesCreateRows(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rows: []
|
||||||
|
) {
|
||||||
|
total
|
||||||
|
rows {
|
||||||
|
_id
|
||||||
|
_sequence
|
||||||
|
_tableId
|
||||||
|
_databaseId
|
||||||
|
_createdAt
|
||||||
|
_updatedAt
|
||||||
|
_permissions
|
||||||
|
data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
mutation {
|
||||||
|
tablesDeleteRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>"
|
||||||
|
) {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
mutation {
|
||||||
|
tablesUpdateRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>",
|
||||||
|
data: "{}",
|
||||||
|
permissions: ["read("any")"]
|
||||||
|
) {
|
||||||
|
_id
|
||||||
|
_sequence
|
||||||
|
_tableId
|
||||||
|
_databaseId
|
||||||
|
_createdAt
|
||||||
|
_updatedAt
|
||||||
|
_permissions
|
||||||
|
data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
mutation {
|
||||||
|
tablesUpsertRow(
|
||||||
|
databaseId: "<DATABASE_ID>",
|
||||||
|
tableId: "<TABLE_ID>",
|
||||||
|
rowId: "<ROW_ID>"
|
||||||
|
) {
|
||||||
|
_id
|
||||||
|
_sequence
|
||||||
|
_tableId
|
||||||
|
_databaseId
|
||||||
|
_createdAt
|
||||||
|
_updatedAt
|
||||||
|
_permissions
|
||||||
|
data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
import { Client, Tables } from "react-native-appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setSession('') // The user session to authenticate with
|
||||||
|
.setKey('') //
|
||||||
|
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.createRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>', // rowId
|
||||||
|
{}, // data
|
||||||
|
["read("any")"] // permissions (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { Client, Tables } from "react-native-appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setAdmin('') //
|
||||||
|
.setKey(''); //
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.createRows(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
[] // rows
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
import { Client, Tables } from "react-native-appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.deleteRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>' // rowId
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { Client, Tables } from "react-native-appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.getRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>', // rowId
|
||||||
|
[] // queries (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
import { Client, Tables } from "react-native-appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.listRows(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
[] // queries (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
import { Client, Tables } from "react-native-appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.updateRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>', // rowId
|
||||||
|
{}, // data (optional)
|
||||||
|
["read("any")"] // permissions (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
import { Client, Tables } from "react-native-appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setSession('') // The user session to authenticate with
|
||||||
|
.setKey('') //
|
||||||
|
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.upsertRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>' // rowId
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1
|
||||||
|
Host: cloud.appwrite.io
|
||||||
|
Content-Type: application/json
|
||||||
|
X-Appwrite-Response-Format: 1.7.0
|
||||||
|
X-Appwrite-Project: <YOUR_PROJECT_ID>
|
||||||
|
X-Appwrite-Session:
|
||||||
|
X-Appwrite-JWT: <YOUR_JWT>
|
||||||
|
|
||||||
|
{
|
||||||
|
"rowId": "<ROW_ID>",
|
||||||
|
"data": {},
|
||||||
|
"permissions": ["read(\"any\")"]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1
|
||||||
|
Host: cloud.appwrite.io
|
||||||
|
Content-Type: application/json
|
||||||
|
X-Appwrite-Response-Format: 1.7.0
|
||||||
|
X-Appwrite-Project: <YOUR_PROJECT_ID>
|
||||||
|
X-Appwrite-Session:
|
||||||
|
X-Appwrite-JWT: <YOUR_JWT>
|
||||||
|
|
||||||
|
{
|
||||||
|
"rows": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
DELETE /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1
|
||||||
|
Host: cloud.appwrite.io
|
||||||
|
Content-Type: application/json
|
||||||
|
X-Appwrite-Response-Format: 1.7.0
|
||||||
|
X-Appwrite-Project: <YOUR_PROJECT_ID>
|
||||||
|
X-Appwrite-Session:
|
||||||
|
X-Appwrite-JWT: <YOUR_JWT>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
GET /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1
|
||||||
|
Host: cloud.appwrite.io
|
||||||
|
X-Appwrite-Response-Format: 1.7.0
|
||||||
|
X-Appwrite-Project: <YOUR_PROJECT_ID>
|
||||||
|
X-Appwrite-Session:
|
||||||
|
X-Appwrite-JWT: <YOUR_JWT>
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
GET /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1
|
||||||
|
Host: cloud.appwrite.io
|
||||||
|
X-Appwrite-Response-Format: 1.7.0
|
||||||
|
X-Appwrite-Project: <YOUR_PROJECT_ID>
|
||||||
|
X-Appwrite-Session:
|
||||||
|
X-Appwrite-JWT: <YOUR_JWT>
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1
|
||||||
|
Host: cloud.appwrite.io
|
||||||
|
Content-Type: application/json
|
||||||
|
X-Appwrite-Response-Format: 1.7.0
|
||||||
|
X-Appwrite-Project: <YOUR_PROJECT_ID>
|
||||||
|
X-Appwrite-Session:
|
||||||
|
X-Appwrite-JWT: <YOUR_JWT>
|
||||||
|
|
||||||
|
{
|
||||||
|
"data": {},
|
||||||
|
"permissions": ["read(\"any\")"]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
PUT /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1
|
||||||
|
Host: cloud.appwrite.io
|
||||||
|
Content-Type: application/json
|
||||||
|
X-Appwrite-Response-Format: 1.7.0
|
||||||
|
X-Appwrite-Project: <YOUR_PROJECT_ID>
|
||||||
|
X-Appwrite-Session:
|
||||||
|
X-Appwrite-JWT: <YOUR_JWT>
|
||||||
|
|
||||||
19
docs/examples/1.8.x/client-web/examples/tables/create-row.md
Normal file
19
docs/examples/1.8.x/client-web/examples/tables/create-row.md
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
import { Client, Tables } from "appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setSession('') // The user session to authenticate with
|
||||||
|
.setKey('') //
|
||||||
|
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.createRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>', // rowId
|
||||||
|
{}, // data
|
||||||
|
["read("any")"] // permissions (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { Client, Tables } from "appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setAdmin('') //
|
||||||
|
.setKey(''); //
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.createRows(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
[] // rows
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
15
docs/examples/1.8.x/client-web/examples/tables/delete-row.md
Normal file
15
docs/examples/1.8.x/client-web/examples/tables/delete-row.md
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
import { Client, Tables } from "appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.deleteRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>' // rowId
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
16
docs/examples/1.8.x/client-web/examples/tables/get-row.md
Normal file
16
docs/examples/1.8.x/client-web/examples/tables/get-row.md
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { Client, Tables } from "appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.getRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>', // rowId
|
||||||
|
[] // queries (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
15
docs/examples/1.8.x/client-web/examples/tables/list-rows.md
Normal file
15
docs/examples/1.8.x/client-web/examples/tables/list-rows.md
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
import { Client, Tables } from "appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.listRows(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
[] // queries (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
17
docs/examples/1.8.x/client-web/examples/tables/update-row.md
Normal file
17
docs/examples/1.8.x/client-web/examples/tables/update-row.md
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
import { Client, Tables } from "appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.updateRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>', // rowId
|
||||||
|
{}, // data (optional)
|
||||||
|
["read("any")"] // permissions (optional)
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
17
docs/examples/1.8.x/client-web/examples/tables/upsert-row.md
Normal file
17
docs/examples/1.8.x/client-web/examples/tables/upsert-row.md
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
import { Client, Tables } from "appwrite";
|
||||||
|
|
||||||
|
const client = new Client()
|
||||||
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setSession('') // The user session to authenticate with
|
||||||
|
.setKey('') //
|
||||||
|
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
const tables = new Tables(client);
|
||||||
|
|
||||||
|
const result = await tables.upsertRow(
|
||||||
|
'<DATABASE_ID>', // databaseId
|
||||||
|
'<TABLE_ID>', // tableId
|
||||||
|
'<ROW_ID>' // rowId
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables createBooleanColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables createDatetimeColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables createEmailColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
appwrite tables createEnumColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--elements one two three \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
appwrite tables createFloatColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
appwrite tables createIndex \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--type key \
|
||||||
|
--columns one two three \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
appwrite tables createIntegerColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables createIpColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
appwrite tables createRelationshipColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--relatedTableId <RELATED_TABLE_ID> \
|
||||||
|
--type oneToOne \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
appwrite tables createRow \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--rowId <ROW_ID> \
|
||||||
|
--data '{ "key": "value" }' \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables createRows \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--rows one two three
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
appwrite tables createStringColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--size 1 \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables createUrlColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables create \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--name <NAME> \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables decrementRowColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--rowId <ROW_ID> \
|
||||||
|
--column '' \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables deleteColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key ''
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables deleteIndex \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key ''
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables deleteRow \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--rowId <ROW_ID>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables deleteRows \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
appwrite tables delete \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables getColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key ''
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables getIndex \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key ''
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
appwrite tables getRow \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--rowId <ROW_ID> \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables getTableUsage \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables getUsage \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
|
||||||
3
docs/examples/1.8.x/console-cli/examples/tables/get.md
Normal file
3
docs/examples/1.8.x/console-cli/examples/tables/get.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
appwrite tables get \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID>
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables incrementRowColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--rowId <ROW_ID> \
|
||||||
|
--column '' \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables listColumns \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables listIndexes \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables listLogs \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
appwrite tables listRowLogs \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--rowId <ROW_ID> \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables listRows \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
|
||||||
4
docs/examples/1.8.x/console-cli/examples/tables/list.md
Normal file
4
docs/examples/1.8.x/console-cli/examples/tables/list.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
appwrite tables list \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables updateBooleanColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
--default false \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables updateDatetimeColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
--default '' \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables updateEmailColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
--default email@example.com \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
appwrite tables updateEnumColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--elements one two three \
|
||||||
|
--required false \
|
||||||
|
--default <DEFAULT> \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
appwrite tables updateFloatColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
--default null \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
appwrite tables updateIntegerColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
--default null \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
appwrite tables updateIpColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
--default '' \
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
appwrite tables updateRelationshipColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
appwrite tables updateRow \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--rowId <ROW_ID> \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
appwrite tables updateRows \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
appwrite tables updateStringColumn \
|
||||||
|
--databaseId <DATABASE_ID> \
|
||||||
|
--tableId <TABLE_ID> \
|
||||||
|
--key '' \
|
||||||
|
--required false \
|
||||||
|
--default <DEFAULT> \
|
||||||
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue