Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 58
Spatial attribute support#661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
225974301e7e58fd2138475b6658e6e1c28e86a3f73a9672a6509e43121fb7134a8e36bdbe1c710c4ee42011fb7c19ea307af404c258aea37a741482c4dc7c8de2cd47071c4f59f2fcfc4e316092cac799c1b3dd04de5fb86956e14518fb82359cd572d24b91b91995ea7d96d6497f55e01748a81b5e7ec537ee20be3255f24133370dca9d14cef5fb398d8dec1d2e0b1aa73af5e713bda8accb29b23bb07e7de7File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| FROM postgres:16 | ||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends \ | ||
| postgresql-16-postgis-3 \ | ||
| postgresql-16-postgis-3-scripts \ | ||
| && rm -rf /var/lib/apt/lists/* |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -534,7 +534,7 @@ abstract public function analyzeCollection(string $collection): bool; | ||
| * @throws TimeoutException | ||
| * @throws DuplicateException | ||
| */ | ||
| abstract public function createAttribute(string $collection, string $id, string $type, int $size, bool $signed = true, bool $array = false): bool; | ||
| abstract public function createAttribute(string $collection, string $id, string $type, int $size, bool $signed = true, bool $array = false, bool $required = false): bool; | ||
ArnabChatterjee20k marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| /** | ||
| * Create Attributes | ||
| @@ -661,75 +661,75 @@ abstract public function deleteIndex(string $collection, string $id): bool; | ||
| /** | ||
| * Get Document | ||
| * | ||
| * @param string $collection | ||
| * @param Document $collection | ||
| * @param string $id | ||
| * @param array<Query> $queries | ||
| * @param bool $forUpdate | ||
| * @return Document | ||
| */ | ||
| abstract public function getDocument(string $collection, string $id, array $queries = [], bool $forUpdate = false): Document; | ||
| abstract public function getDocument(Document $collection, string $id, array $queries = [], bool $forUpdate = false): Document; | ||
ArnabChatterjee20k marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| /** | ||
| * Create Document | ||
| * | ||
| * @param string $collection | ||
| * @param Document $collection | ||
| * @param Document $document | ||
| * | ||
| * @return Document | ||
| */ | ||
| abstract public function createDocument(string $collection, Document $document): Document; | ||
| abstract public function createDocument(Document $collection, Document $document): Document; | ||
| /** | ||
| * Create Documents in batches | ||
| * | ||
| * @param string $collection | ||
| * @param Document $collection | ||
| * @param array<Document> $documents | ||
| * | ||
| * @return array<Document> | ||
| * | ||
| * @throws DatabaseException | ||
| */ | ||
| abstract public function createDocuments(string $collection, array $documents): array; | ||
| abstract public function createDocuments(Document $collection, array $documents): array; | ||
ArnabChatterjee20k marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| /** | ||
| * Update Document | ||
| * | ||
| * @param string $collection | ||
| * @param Document $collection | ||
| * @param string $id | ||
| * @param Document $document | ||
| * @param bool $skipPermissions | ||
| * | ||
| * @return Document | ||
| */ | ||
| abstract public function updateDocument(string $collection, string $id, Document $document, bool $skipPermissions): Document; | ||
| abstract public function updateDocument(Document $collection, string $id, Document $document, bool $skipPermissions): Document; | ||
| /** | ||
| * Update documents | ||
| * | ||
| * Updates all documents which match the given query. | ||
| * | ||
| * @param string $collection | ||
| * @param Document $collection | ||
| * @param Document $updates | ||
| * @param array<Document> $documents | ||
| * | ||
| * @return int | ||
| * | ||
| * @throws DatabaseException | ||
| */ | ||
| abstract public function updateDocuments(string $collection, Document $updates, array $documents): int; | ||
| abstract public function updateDocuments(Document $collection, Document $updates, array $documents): int; | ||
ArnabChatterjee20k marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| /** | ||
| * Create documents if they do not exist, otherwise update them. | ||
| * | ||
| * If attribute is not empty, only the specified attribute will be increased, by the new value in each document. | ||
| * | ||
| * @param string $collection | ||
| * @param Document $collection | ||
| * @param string $attribute | ||
| * @param array<Change> $changes | ||
| * @return array<Document> | ||
| */ | ||
| abstract public function createOrUpdateDocuments( | ||
| string $collection, | ||
| Document $collection, | ||
| string $attribute, | ||
| array $changes | ||
| ): array; | ||
| @@ -767,7 +767,7 @@ abstract public function deleteDocuments(string $collection, array $sequences, a | ||
| * | ||
| * Find data sets using chosen queries | ||
| * | ||
| * @param string $collection | ||
| * @param Document $collection | ||
| * @param array<Query> $queries | ||
| * @param int|null $limit | ||
| * @param int|null $offset | ||
| @@ -776,10 +776,9 @@ abstract public function deleteDocuments(string $collection, array $sequences, a | ||
| * @param array<string, mixed> $cursor | ||
| * @param string $cursorDirection | ||
| * @param string $forPermission | ||
| * | ||
| * @return array<Document> | ||
| */ | ||
| abstract public function find(string $collection, array $queries = [], ?int $limit = 25, ?int $offset = null, array $orderAttributes = [], array $orderTypes = [], array $cursor = [], string $cursorDirection = Database::CURSOR_AFTER, string $forPermission = Database::PERMISSION_READ): array; | ||
| abstract public function find(Document $collection, array $queries = [], ?int $limit = 25, ?int $offset = null, array $orderAttributes = [], array $orderTypes = [], array $cursor = [], string $cursorDirection = Database::CURSOR_AFTER, string $forPermission = Database::PERMISSION_READ): array; | ||
| /** | ||
| * Sum an attribute | ||
| @@ -1029,6 +1028,34 @@ abstract public function getSupportForHostname(): bool; | ||
| */ | ||
| abstract public function getSupportForBatchCreateAttributes(): bool; | ||
| /** | ||
| * Is spatial attributes supported? | ||
| * | ||
| * @return bool | ||
| */ | ||
| abstract public function getSupportForSpatialAttributes(): bool; | ||
| /** | ||
| * Does the adapter support null values in spatial indexes? | ||
| * | ||
| * @return bool | ||
| */ | ||
| abstract public function getSupportForSpatialIndexNull(): bool; | ||
| /** | ||
| * Does the adapter support order attribute in spatial indexes? | ||
| * | ||
| * @return bool | ||
| */ | ||
| abstract public function getSupportForSpatialIndexOrder(): bool; | ||
| /** | ||
| * Does the adapter includes boundary during spatial contains? | ||
| * | ||
| * @return bool | ||
| */ | ||
| abstract public function getSupportForBoundaryInclusiveContains(): bool; | ||
ArnabChatterjee20k marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| /** | ||
| * Get current attribute count from collection document | ||
| * | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.