reset: docs for easier review.

This commit is contained in:
Darshan 2025-07-28 11:46:43 +05:30
parent be3d91d541
commit 00290bdb65
724 changed files with 12612 additions and 0 deletions

View 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());
})
);

View 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
.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());
})
);

View 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());
})
);

View 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());
})
);

View 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());
})
);

View 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());
})
);

View 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());
})
);

View file

@ -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)
)

View 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
.setAdmin("") //
.setKey("") //
val tables = Tables(client)
val result = tables.createRows(
databaseId = "<DATABASE_ID>",
tableId = "<TABLE_ID>",
rows = listOf(),
)

View file

@ -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>",
)

View 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)
)

View file

@ -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)
)

View file

@ -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)
)

View file

@ -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>",
)

View file

@ -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
)

View file

@ -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: []
)

View file

@ -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>"
)

View 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
)

View file

@ -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
)

View file

@ -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
)

View file

@ -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>"
)

View file

@ -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
);

View file

@ -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: [],
);

View file

@ -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>',
);

View file

@ -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
);

View file

@ -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
);

View file

@ -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
);

View file

@ -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>',
);

View file

@ -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
}
}

View file

@ -0,0 +1,19 @@
mutation {
tablesCreateRows(
databaseId: "<DATABASE_ID>",
tableId: "<TABLE_ID>",
rows: []
) {
total
rows {
_id
_sequence
_tableId
_databaseId
_createdAt
_updatedAt
_permissions
data
}
}
}

View file

@ -0,0 +1,9 @@
mutation {
tablesDeleteRow(
databaseId: "<DATABASE_ID>",
tableId: "<TABLE_ID>",
rowId: "<ROW_ID>"
) {
status
}
}

View file

@ -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
}
}

View file

@ -0,0 +1,16 @@
mutation {
tablesUpsertRow(
databaseId: "<DATABASE_ID>",
tableId: "<TABLE_ID>",
rowId: "<ROW_ID>"
) {
_id
_sequence
_tableId
_databaseId
_createdAt
_updatedAt
_permissions
data
}
}

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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\")"]
}

View file

@ -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": []
}

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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\")"]
}

View file

@ -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>

View 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);

View file

@ -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);

View 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);

View 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);

View 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);

View 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);

View 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);

View file

@ -0,0 +1,7 @@
appwrite tables createBooleanColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \

View file

@ -0,0 +1,7 @@
appwrite tables createDatetimeColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \

View file

@ -0,0 +1,7 @@
appwrite tables createEmailColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \

View file

@ -0,0 +1,8 @@
appwrite tables createEnumColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--elements one two three \
--required false \

View file

@ -0,0 +1,9 @@
appwrite tables createFloatColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \

View file

@ -0,0 +1,8 @@
appwrite tables createIndex \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--type key \
--columns one two three \

View file

@ -0,0 +1,9 @@
appwrite tables createIntegerColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \

View file

@ -0,0 +1,7 @@
appwrite tables createIpColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \

View file

@ -0,0 +1,9 @@
appwrite tables createRelationshipColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--relatedTableId <RELATED_TABLE_ID> \
--type oneToOne \

View file

@ -0,0 +1,6 @@
appwrite tables createRow \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--rowId <ROW_ID> \
--data '{ "key": "value" }' \

View file

@ -0,0 +1,4 @@
appwrite tables createRows \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--rows one two three

View file

@ -0,0 +1,9 @@
appwrite tables createStringColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--size 1 \
--required false \

View file

@ -0,0 +1,7 @@
appwrite tables createUrlColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \

View file

@ -0,0 +1,7 @@
appwrite tables create \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--name <NAME> \

View file

@ -0,0 +1,7 @@
appwrite tables decrementRowColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--rowId <ROW_ID> \
--column '' \

View file

@ -0,0 +1,4 @@
appwrite tables deleteColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key ''

View file

@ -0,0 +1,4 @@
appwrite tables deleteIndex \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key ''

View file

@ -0,0 +1,4 @@
appwrite tables deleteRow \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--rowId <ROW_ID>

View file

@ -0,0 +1,4 @@
appwrite tables deleteRows \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -0,0 +1,3 @@
appwrite tables delete \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID>

View file

@ -0,0 +1,4 @@
appwrite tables getColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key ''

View file

@ -0,0 +1,4 @@
appwrite tables getIndex \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key ''

View file

@ -0,0 +1,5 @@
appwrite tables getRow \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--rowId <ROW_ID> \

View file

@ -0,0 +1,4 @@
appwrite tables getTableUsage \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -0,0 +1,4 @@
appwrite tables getUsage \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -0,0 +1,3 @@
appwrite tables get \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID>

View file

@ -0,0 +1,7 @@
appwrite tables incrementRowColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--rowId <ROW_ID> \
--column '' \

View file

@ -0,0 +1,4 @@
appwrite tables listColumns \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -0,0 +1,4 @@
appwrite tables listIndexes \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -0,0 +1,4 @@
appwrite tables listLogs \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -0,0 +1,5 @@
appwrite tables listRowLogs \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--rowId <ROW_ID> \

View file

@ -0,0 +1,4 @@
appwrite tables listRows \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -0,0 +1,4 @@
appwrite tables list \
--databaseId <DATABASE_ID> \

View file

@ -0,0 +1,7 @@
appwrite tables updateBooleanColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \
--default false \

View file

@ -0,0 +1,7 @@
appwrite tables updateDatetimeColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \
--default '' \

View file

@ -0,0 +1,7 @@
appwrite tables updateEmailColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \
--default email@example.com \

View file

@ -0,0 +1,8 @@
appwrite tables updateEnumColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--elements one two three \
--required false \
--default <DEFAULT> \

View file

@ -0,0 +1,9 @@
appwrite tables updateFloatColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \
--default null \

View file

@ -0,0 +1,9 @@
appwrite tables updateIntegerColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \
--default null \

View file

@ -0,0 +1,7 @@
appwrite tables updateIpColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \
--required false \
--default '' \

View file

@ -0,0 +1,6 @@
appwrite tables updateRelationshipColumn \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--key '' \

View file

@ -0,0 +1,6 @@
appwrite tables updateRow \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \
--rowId <ROW_ID> \

View file

@ -0,0 +1,5 @@
appwrite tables updateRows \
--databaseId <DATABASE_ID> \
--tableId <TABLE_ID> \

View file

@ -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