Skip to content

Commit 63face1

Browse files
1 parent 5e4924e commit 63face1

8 files changed

Lines changed: 713 additions & 127 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ All notable changes to `polygres-cli` are documented in this file.
44

55
## Unreleased
66

7+
## 0.2.2 - 2026-08-12
8+
9+
### Added
10+
11+
- Added commands to inspect, update, diagnose, rebuild, and remove text-search
12+
configurations.
13+
- Added one-step TSVector setup for creating a generated column, index, and
14+
configuration from one or more source columns.
15+
16+
### Changed
17+
18+
- Text-search commands now support compound row keys, metadata and filter
19+
columns, configured result limits, and both generated and existing TSVector
20+
columns.
21+
722
## 0.2.1 - 2026-08-09
823

924
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Service and release notices are written to standard error, so standard output an
104104

105105
## Version and support
106106

107-
Package version: [`0.2.1`](https://github.com/Evokoa/polygres-cli/releases/tag/python-cli-v0.2.1).
107+
Package version: [`0.2.2`](https://github.com/Evokoa/polygres-cli/releases/tag/python-cli-v0.2.2).
108108

109109
Useful commands:
110110

@@ -123,4 +123,4 @@ Users of the former combined `polygres` package should install both packages sep
123123

124124
## Changelog
125125

126-
See the [CLI 0.2.1 release notes](https://github.com/Evokoa/polygres-cli/releases/tag/python-cli-v0.2.1) for release changes.
126+
See the [CLI 0.2.2 release notes](https://github.com/Evokoa/polygres-cli/releases/tag/python-cli-v0.2.2) for release changes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "polygres-cli"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
description = "Command-line interface for Polygres"
55
readme = "README.md"
66
requires-python = ">=3.10"

src/polygres_cli/cli.py

Lines changed: 170 additions & 65 deletions
Large diffs are not rendered by default.

src/polygres_cli/cli_client.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,35 @@ def create_text_configuration(self, project_id: str, payload: dict[str, Any]) ->
414414
timeout=HEAVY_REQUEST_TIMEOUT,
415415
)
416416

417+
def get_text_configuration(self, project_id: str, config_id: str) -> dict[str, Any]:
418+
return self._get(
419+
f"/projects/{project_id}/text/configurations/{quote(config_id, safe='')}"
420+
)
421+
422+
def update_text_configuration(
423+
self, project_id: str, config_id: str, payload: dict[str, Any]
424+
) -> dict[str, Any]:
425+
return self._patch(
426+
f"/projects/{project_id}/text/configurations/{quote(config_id, safe='')}",
427+
payload,
428+
)
429+
430+
def diagnose_text_configuration(self, project_id: str, config_id: str) -> dict[str, Any]:
431+
return self._get(
432+
f"/projects/{project_id}/text/configurations/{quote(config_id, safe='')}/diagnostics"
433+
)
434+
435+
def reindex_text_configuration(self, project_id: str, config_id: str) -> dict[str, Any]:
436+
return self._post(
437+
f"/projects/{project_id}/text/configurations/{quote(config_id, safe='')}/reindex",
438+
{},
439+
timeout=HEAVY_REQUEST_TIMEOUT,
440+
)
441+
417442
def delete_text_configuration(self, project_id: str, config_id: str) -> dict[str, Any]:
418-
return self._delete(f"/projects/{project_id}/text/configurations/{config_id}")
443+
return self._delete(
444+
f"/projects/{project_id}/text/configurations/{quote(config_id, safe='')}"
445+
)
419446

420447
def retrieval_readiness(self, project_id: str) -> dict[str, Any]:
421448
return self._get(f"/projects/{project_id}/retrieval/readiness")

0 commit comments

Comments
 (0)