mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
111 lines
2.0 KiB
PHP
111 lines
2.0 KiB
PHP
<?php
|
|
|
|
namespace Tests\E2E\Scopes;
|
|
|
|
/**
|
|
* API configuration trait for VectorsDB database API.
|
|
* Uses: /vectorsdb, collections, documents, indexes
|
|
*/
|
|
trait ApiVectorsDB
|
|
{
|
|
protected function getApiBasePath(): string
|
|
{
|
|
return '/vectorsdb';
|
|
}
|
|
|
|
protected function getDatabaseType(): string
|
|
{
|
|
return 'vectorsdb';
|
|
}
|
|
|
|
protected function getContainerResource(): string
|
|
{
|
|
return 'collections';
|
|
}
|
|
|
|
protected function getContainerIdParam(): string
|
|
{
|
|
return 'collectionId';
|
|
}
|
|
|
|
protected function getSchemaResource(): string
|
|
{
|
|
return 'attributes';
|
|
}
|
|
|
|
protected function getSchemaParam(): string
|
|
{
|
|
return 'attribute';
|
|
}
|
|
|
|
protected function getRecordResource(): string
|
|
{
|
|
return 'documents';
|
|
}
|
|
|
|
protected function getRecordIdParam(): string
|
|
{
|
|
return 'documentId';
|
|
}
|
|
|
|
protected function getSecurityParam(): string
|
|
{
|
|
return 'documentSecurity';
|
|
}
|
|
|
|
protected function getRelatedIdParam(): string
|
|
{
|
|
return 'relatedCollectionId';
|
|
}
|
|
|
|
protected function getRelatedResourceKey(): string
|
|
{
|
|
return 'relatedCollection';
|
|
}
|
|
|
|
protected function getContainerIdResponseKey(): string
|
|
{
|
|
return '$collectionId';
|
|
}
|
|
|
|
protected function getOppositeContainerIdResponseKey(): string
|
|
{
|
|
return '$tableId';
|
|
}
|
|
|
|
protected function getIndexAttributesParam(): string
|
|
{
|
|
return 'attributes';
|
|
}
|
|
|
|
protected function getSecurityResponseKey(): string
|
|
{
|
|
return 'documentSecurity';
|
|
}
|
|
|
|
protected function getSupportForAttributes(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
protected function getSupportForRelationships(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
protected function getSupportForIntegerIds(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
protected function getSupportForOperators(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
protected function getSupportForSpatials(): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|