Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ const result = await databases.createCollection({
name: '<NAME>',
permissions: [Permission.read(Role.any())], // optional
documentSecurity: false, // optional
enabled: false, // optional
attributes: [], // optional
indexes: [] // optional
enabled: false // optional
});

console.log(result);
Expand Down
4 changes: 1 addition & 3 deletions examples/1.8.x/console-web/examples/tablesdb/create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ const result = await tablesDB.createTable({
name: '<NAME>',
permissions: [Permission.read(Role.any())], // optional
rowSecurity: false, // optional
enabled: false, // optional
columns: [], // optional
indexes: [] // optional
enabled: false // optional
});

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ Collection result = await databases.createCollection(
permissions: [Permission.read(Role.any())], // (optional)
documentSecurity: false, // (optional)
enabled: false, // (optional)
attributes: [], // (optional)
indexes: [], // (optional)
);
```
2 changes: 0 additions & 2 deletions examples/1.8.x/server-dart/examples/tablesdb/create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ Table result = await tablesDB.createTable(
permissions: [Permission.read(Role.any())], // (optional)
rowSecurity: false, // (optional)
enabled: false, // (optional)
columns: [], // (optional)
indexes: [], // (optional)
);
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ Collection result = await databases.CreateCollection(
name: "<NAME>",
permissions: new List<string> { Permission.Read(Role.Any()) }, // optional
documentSecurity: false, // optional
enabled: false, // optional
attributes: new List<object>(), // optional
indexes: new List<object>() // optional
enabled: false // optional
);```
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ Table result = await tablesDB.CreateTable(
name: "<NAME>",
permissions: new List<string> { Permission.Read(Role.Any()) }, // optional
rowSecurity: false, // optional
enabled: false, // optional
columns: new List<object>(), // optional
indexes: new List<object>() // optional
enabled: false // optional
);```
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ response, error := service.CreateCollection(
databases.WithCreateCollectionPermissions(interface{}{"read("any")"}),
databases.WithCreateCollectionDocumentSecurity(false),
databases.WithCreateCollectionEnabled(false),
databases.WithCreateCollectionAttributes([]interface{}{}),
databases.WithCreateCollectionIndexes([]interface{}{}),
)
```
2 changes: 0 additions & 2 deletions examples/1.8.x/server-go/examples/tablesdb/create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ response, error := service.CreateTable(
tablesdb.WithCreateTablePermissions(interface{}{"read("any")"}),
tablesdb.WithCreateTableRowSecurity(false),
tablesdb.WithCreateTableEnabled(false),
tablesdb.WithCreateTableColumns([]interface{}{}),
tablesdb.WithCreateTableIndexes([]interface{}{}),
)
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ mutation {
name: "<NAME>",
permissions: ["read("any")"],
documentSecurity: false,
enabled: false,
attributes: [],
indexes: []
enabled: false
) {
_id
_createdAt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ mutation {
name: "<NAME>",
permissions: ["read("any")"],
rowSecurity: false,
enabled: false,
columns: [],
indexes: []
enabled: false
) {
_id
_createdAt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ databases.createCollection(
List.of(Permission.read(Role.any())), // permissions (optional)
false, // documentSecurity (optional)
false, // enabled (optional)
List.of(), // attributes (optional)
List.of(), // indexes (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
Expand Down
2 changes: 0 additions & 2 deletions examples/1.8.x/server-kotlin/java/tablesdb/create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ tablesDB.createTable(
List.of(Permission.read(Role.any())), // permissions (optional)
false, // rowSecurity (optional)
false, // enabled (optional)
List.of(), // columns (optional)
List.of(), // indexes (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ val response = databases.createCollection(
name = "<NAME>",
permissions = listOf(Permission.read(Role.any())), // optional
documentSecurity = false, // optional
enabled = false, // optional
attributes = listOf(), // optional
indexes = listOf() // optional
enabled = false // optional
)
```
4 changes: 1 addition & 3 deletions examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ val response = tablesDB.createTable(
name = "<NAME>",
permissions = listOf(Permission.read(Role.any())), // optional
rowSecurity = false, // optional
enabled = false, // optional
columns = listOf(), // optional
indexes = listOf() // optional
enabled = false // optional
)
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const result = await databases.createCollection({
name: '<NAME>',
permissions: [sdk.Permission.read(sdk.Role.any())], // optional
documentSecurity: false, // optional
enabled: false, // optional
attributes: [], // optional
indexes: [] // optional
enabled: false // optional
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const result = await tablesDB.createTable({
name: '<NAME>',
permissions: [sdk.Permission.read(sdk.Role.any())], // optional
rowSecurity: false, // optional
enabled: false, // optional
columns: [], // optional
indexes: [] // optional
enabled: false // optional
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ $result = $databases->createCollection(
name: '<NAME>',
permissions: [Permission::read(Role::any())], // optional
documentSecurity: false, // optional
enabled: false, // optional
attributes: [], // optional
indexes: [] // optional
enabled: false // optional
);```
4 changes: 1 addition & 3 deletions examples/1.8.x/server-php/examples/tablesdb/create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ $result = $tablesDB->createTable(
name: '<NAME>',
permissions: [Permission::read(Role::any())], // optional
rowSecurity: false, // optional
enabled: false, // optional
columns: [], // optional
indexes: [] // optional
enabled: false // optional
);```
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ result: Collection = databases.create_collection(
name = '<NAME>',
permissions = [Permission.read(Role.any())], # optional
document_security = False, # optional
enabled = False, # optional
attributes = [], # optional
indexes = [] # optional
enabled = False # optional
)

print(result.model_dump())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ result: Table = tables_db.create_table(
name = '<NAME>',
permissions = [Permission.read(Role.any())], # optional
row_security = False, # optional
enabled = False, # optional
columns = [], # optional
indexes = [] # optional
enabled = False # optional
)

print(result.model_dump())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ X-Appwrite-Key: <YOUR_API_KEY>
"name": "<NAME>",
"permissions": ["read(\"any\")"],
"documentSecurity": false,
"enabled": false,
"attributes": [],
"indexes": []
"enabled": false
}
```
4 changes: 1 addition & 3 deletions examples/1.8.x/server-rest/examples/tablesdb/create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ X-Appwrite-Key: <YOUR_API_KEY>
"name": "<NAME>",
"permissions": ["read(\"any\")"],
"rowSecurity": false,
"enabled": false,
"columns": [],
"indexes": []
"enabled": false
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ result = databases.create_collection(
name: '<NAME>',
permissions: [Permission.read(Role.any())], # optional
document_security: false, # optional
enabled: false, # optional
attributes: [], # optional
indexes: [] # optional
enabled: false # optional
)
```
4 changes: 1 addition & 3 deletions examples/1.8.x/server-ruby/examples/tablesdb/create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ result = tables_db.create_table(
name: '<NAME>',
permissions: [Permission.read(Role.any())], # optional
row_security: false, # optional
enabled: false, # optional
columns: [], # optional
indexes: [] # optional
enabled: false # optional
)
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ let collection = try await databases.createCollection(
name: "<NAME>",
permissions: [Permission.read(Role.any())], // optional
documentSecurity: false, // optional
enabled: false, // optional
attributes: [], // optional
indexes: [] // optional
enabled: false // optional
)

```
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ let table = try await tablesDB.createTable(
name: "<NAME>",
permissions: [Permission.read(Role.any())], // optional
rowSecurity: false, // optional
enabled: false, // optional
columns: [], // optional
indexes: [] // optional
enabled: false // optional
)

```
34 changes: 1 addition & 33 deletions specs/1.8.x/open-api3-1.8.x-console.json
Original file line number Diff line number Diff line change
Expand Up @@ -10353,22 +10353,6 @@
"type": "boolean",
"description": "Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.",
"x-example": false
},
"attributes": {
"type": "array",
"description": "Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.",
"x-example": null,
"items": {
"type": "object"
}
},
"indexes": {
"type": "array",
"description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).",
"x-example": null,
"items": {
"type": "object"
}
}
},
"required": [
Expand Down Expand Up @@ -48904,22 +48888,6 @@
"type": "boolean",
"description": "Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.",
"x-example": false
},
"columns": {
"type": "array",
"description": "Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.",
"x-example": null,
"items": {
"type": "object"
}
},
"indexes": {
"type": "array",
"description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).",
"x-example": null,
"items": {
"type": "object"
}
}
},
"required": [
Expand Down Expand Up @@ -79254,4 +79222,4 @@
"description": "Full API docs, specs and tutorials",
"url": "https:\/\/appwrite.io\/docs"
}
}
}
32 changes: 0 additions & 32 deletions specs/1.8.x/open-api3-1.8.x-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -7803,22 +7803,6 @@
"type": "boolean",
"description": "Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.",
"x-example": false
},
"attributes": {
"type": "array",
"description": "Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.",
"x-example": null,
"items": {
"type": "object"
}
},
"indexes": {
"type": "array",
"description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).",
"x-example": null,
"items": {
"type": "object"
}
}
},
"required": [
Expand Down Expand Up @@ -28949,22 +28933,6 @@
"type": "boolean",
"description": "Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.",
"x-example": false
},
"columns": {
"type": "array",
"description": "Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.",
"x-example": null,
"items": {
"type": "object"
}
},
"indexes": {
"type": "array",
"description": "Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC\/DESC, optional), and lengths (array of integers, optional).",
"x-example": null,
"items": {
"type": "object"
}
}
},
"required": [
Expand Down
Loading
Loading