Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/1.9.x/console-web/examples/apps/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ const result = await apps.create({
appId: '<APP_ID>',
name: '<NAME>',
redirectUris: [],
description: '<DESCRIPTION>', // optional
clientUri: 'https://example.com', // optional
logoUri: 'https://example.com', // optional
privacyPolicyUrl: 'https://example.com', // optional
termsUrl: 'https://example.com', // optional
contacts: [], // optional
enabled: false, // optional
type: 'public', // optional
deviceFlow: false, // optional
Expand Down
6 changes: 6 additions & 0 deletions examples/1.9.x/console-web/examples/apps/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ const apps = new Apps(client);
const result = await apps.update({
appId: '<APP_ID>',
name: '<NAME>',
description: '<DESCRIPTION>', // optional
clientUri: 'https://example.com', // optional
logoUri: 'https://example.com', // optional
privacyPolicyUrl: 'https://example.com', // optional
termsUrl: 'https://example.com', // optional
contacts: [], // optional
enabled: false, // optional
redirectUris: [], // optional
type: 'public', // optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ const result = await compute.createDatabase({
storageAutoscalingThresholdPercent: 50, // optional
storageAutoscalingMaxGb: 0, // optional
metricsEnabled: false, // optional
poolerEnabled: false // optional
poolerEnabled: false, // optional
api: 'compute' // optional
});

console.log(result);
Expand Down
2 changes: 1 addition & 1 deletion examples/1.9.x/console-web/examples/documentsdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const result = await documentsDB.create({
databaseId: '<DATABASE_ID>',
name: '<NAME>',
enabled: false, // optional
specification: '<SPECIFICATION>' // optional
dedicatedDatabaseId: '<DEDICATED_DATABASE_ID>' // optional
});

console.log(result);
Expand Down
3 changes: 2 additions & 1 deletion examples/1.9.x/console-web/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const tablesDB = new TablesDB(client);
const result = await tablesDB.create({
databaseId: '<DATABASE_ID>',
name: '<NAME>',
enabled: false // optional
enabled: false, // optional
dedicatedDatabaseId: '<DEDICATED_DATABASE_ID>' // optional
});

console.log(result);
Expand Down
2 changes: 1 addition & 1 deletion examples/1.9.x/console-web/examples/vectorsdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const result = await vectorsDB.create({
databaseId: '<DATABASE_ID>',
name: '<NAME>',
enabled: false, // optional
specification: '<SPECIFICATION>' // optional
dedicatedDatabaseId: '<DEDICATED_DATABASE_ID>' // optional
});

console.log(result);
Expand Down
1 change: 1 addition & 0 deletions examples/1.9.x/server-dart/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ Database result = await tablesDB.create(
databaseId: '<DATABASE_ID>',
name: '<NAME>',
enabled: false, // (optional)
dedicatedDatabaseId: '<DEDICATED_DATABASE_ID>', // (optional)
);
```
3 changes: 2 additions & 1 deletion examples/1.9.x/server-dotnet/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ TablesDB tablesDB = new TablesDB(client);
Database result = await tablesDB.Create(
databaseId: "<DATABASE_ID>",
name: "<NAME>",
enabled: false // optional
enabled: false, // optional
dedicatedDatabaseId: "<DEDICATED_DATABASE_ID>" // optional
);```
1 change: 1 addition & 0 deletions examples/1.9.x/server-go/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ response, error := service.Create(
"<DATABASE_ID>",
"<NAME>",
tablesdb.WithCreateEnabled(false),
tablesdb.WithCreateDedicatedDatabaseId("<DEDICATED_DATABASE_ID>"),
)
```
6 changes: 4 additions & 2 deletions examples/1.9.x/server-graphql/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ mutation {
tablesDBCreate(
databaseId: "<DATABASE_ID>",
name: "<NAME>",
enabled: false
enabled: false,
dedicatedDatabaseId: "<DEDICATED_DATABASE_ID>"
) {
_id
name
Expand Down Expand Up @@ -44,7 +45,8 @@ mutation {
tablesDBCreate(
databaseId: "<DATABASE_ID>",
name: "<NAME>",
enabled: false
enabled: false,
dedicatedDatabaseId: "<DEDICATED_DATABASE_ID>"
) {
_id
name
Expand Down
1 change: 1 addition & 0 deletions examples/1.9.x/server-kotlin/java/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tablesDB.create(
"<DATABASE_ID>", // databaseId
"<NAME>", // name
false, // enabled (optional)
"<DEDICATED_DATABASE_ID>", // dedicatedDatabaseId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
Expand Down
3 changes: 2 additions & 1 deletion examples/1.9.x/server-kotlin/kotlin/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ val tablesDB = TablesDB(client)
val response = tablesDB.create(
databaseId = "<DATABASE_ID>",
name = "<NAME>",
enabled = false // optional
enabled = false, // optional
dedicatedDatabaseId = "<DEDICATED_DATABASE_ID>" // optional
)
```
3 changes: 2 additions & 1 deletion examples/1.9.x/server-nodejs/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const tablesDB = new sdk.TablesDB(client);
const result = await tablesDB.create({
databaseId: '<DATABASE_ID>',
name: '<NAME>',
enabled: false // optional
enabled: false, // optional
dedicatedDatabaseId: '<DEDICATED_DATABASE_ID>' // optional
});
```
3 changes: 2 additions & 1 deletion examples/1.9.x/server-php/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ $tablesDB = new TablesDB($client);
$result = $tablesDB->create(
databaseId: '<DATABASE_ID>',
name: '<NAME>',
enabled: false // optional
enabled: false, // optional
dedicatedDatabaseId: '<DEDICATED_DATABASE_ID>' // optional
);```
3 changes: 2 additions & 1 deletion examples/1.9.x/server-python/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ tables_db = TablesDB(client)
result: Database = tables_db.create(
database_id = '<DATABASE_ID>',
name = '<NAME>',
enabled = False # optional
enabled = False, # optional
dedicated_database_id = '<DEDICATED_DATABASE_ID>' # optional
)

print(result.model_dump())
Expand Down
6 changes: 4 additions & 2 deletions examples/1.9.x/server-rest/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ X-Appwrite-Project: <YOUR_PROJECT_ID>
{
"databaseId": "<DATABASE_ID>",
"name": "<NAME>",
"enabled": false
"enabled": false,
"dedicatedDatabaseId": "<DEDICATED_DATABASE_ID>"
}

{
"databaseId": "<DATABASE_ID>",
"name": "<NAME>",
"enabled": false
"enabled": false,
"dedicatedDatabaseId": "<DEDICATED_DATABASE_ID>"
}
```
3 changes: 2 additions & 1 deletion examples/1.9.x/server-ruby/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tables_db = TablesDB.new(client)
result = tables_db.create(
database_id: '<DATABASE_ID>',
name: '<NAME>',
enabled: false # optional
enabled: false, # optional
dedicated_database_id: '<DEDICATED_DATABASE_ID>' # optional
)
```
3 changes: 2 additions & 1 deletion examples/1.9.x/server-rust/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let result = tables_db.create(
"<DATABASE_ID>",
"<NAME>",
Some(false) // optional
Some(false), // optional
Some("<DEDICATED_DATABASE_ID>") // optional
).await?;

let _ = result;
Expand Down
3 changes: 2 additions & 1 deletion examples/1.9.x/server-swift/examples/tablesdb/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ let tablesDB = TablesDB(client)
let database = try await tablesDB.create(
databaseId: "<DATABASE_ID>",
name: "<NAME>",
enabled: false // optional
enabled: false, // optional
dedicatedDatabaseId: "<DEDICATED_DATABASE_ID>" // optional
)

```
Loading