Skip to content
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

Rewrite xtdb-cli.py with "click" #2957

Merged
merged 49 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
8e5577c
Add xtdb-cli "tx-log-docs" call
originalsouth Apr 11, 2024
93672a1
Merge remote-tracking branch 'origin/main' into feature/octopoes-xtdb…
originalsouth Apr 15, 2024
ed5726b
Introduce importing/exporting capabilities in octopoes (addressing #2…
originalsouth Apr 15, 2024
862c69c
Remove logger call and reformat
originalsouth Apr 15, 2024
373c916
Minor refactor
originalsouth Apr 16, 2024
6ffaf67
Conform to all important naming convention
originalsouth Apr 16, 2024
f478b59
Fix typing
originalsouth Apr 16, 2024
6a91f0c
Minor improvements
originalsouth Apr 16, 2024
f82e97e
Some improvements
ammar92 Apr 18, 2024
e29acc4
Merge branch 'refs/heads/main' into feature/octopoes-xtdb-dump-load-r…
ammar92 May 9, 2024
14e79c2
Some more updates
ammar92 May 9, 2024
28ae3c5
Most httpx stuff refactored
ammar92 May 9, 2024
8a3677a
Click skeleton implemented
ammar92 May 9, 2024
7666ef3
Some more updates
ammar92 May 9, 2024
e90ff6c
Fix in option
ammar92 May 10, 2024
ff5e92f
Merge remote-tracking branch 'origin/main' into feature/octopoes-xtdb…
originalsouth May 13, 2024
31a6295
Fix node call
originalsouth May 13, 2024
94bfbc3
Fixed argument names
ammar92 May 13, 2024
f34eb52
Merge remote-tracking branch 'origin/feature/octopoes-xtdb-dump-load-…
ammar92 May 13, 2024
ba5013d
Some more improvements
ammar92 May 14, 2024
41f42ac
Consolidate cli interface (first iteration)
originalsouth May 14, 2024
9551d99
Add defaults
originalsouth May 14, 2024
8882ade
Fix typing
originalsouth May 14, 2024
c04cc2c
Merge remote-tracking branch 'origin/main' into feature/octopoes-xtdb…
originalsouth May 15, 2024
a040158
1.JSON load 2.JSON dump 3.Profit
originalsouth May 15, 2024
99d7983
Fix query keyword behavior
originalsouth May 15, 2024
3b6cb0e
Fix argument ordering
originalsouth May 15, 2024
9d0e913
Some more improvements
ammar92 May 15, 2024
1fc0fc3
Merge remote-tracking branch 'origin/feature/octopoes-xtdb-dump-load-…
ammar92 May 15, 2024
a47d756
Minor improvements to help menu
originalsouth May 15, 2024
aeab754
Merge remote-tracking branch 'origin/feature/octopoes-xtdb-dump-load-…
ammar92 May 15, 2024
c160a07
str -> JsonValue
originalsouth May 15, 2024
4dd1121
Merge remote-tracking branch 'origin/feature/octopoes-xtdb-dump-load-…
ammar92 May 15, 2024
cc13fea
Remove specialized show_defaults
originalsouth May 15, 2024
731a853
Precommit
originalsouth May 15, 2024
415b8a3
Merge branch 'main' into feature/octopoes-xtdb-dump-load-refactor
originalsouth May 15, 2024
2457c36
Merge branch 'main' into feature/octopoes-xtdb-dump-load-refactor
originalsouth May 15, 2024
30a5c4f
Update octopoes/tools/xtdb-cli.py
ammar92 May 22, 2024
0775a46
Merge branch 'main' into feature/octopoes-xtdb-dump-load-refactor
originalsouth May 28, 2024
dc33d96
Precommit
originalsouth May 28, 2024
f4a7a4a
Revert formatting
originalsouth May 28, 2024
dd4ec1f
Merge remote-tracking branch 'origin/main' into feature/octopoes-xtdb…
originalsouth May 28, 2024
3aead85
Merge branch 'main' into feature/octopoes-xtdb-dump-load-refactor
originalsouth May 29, 2024
e49d333
Fix default verbosity
originalsouth May 29, 2024
820bee4
Fix dash fails
originalsouth May 29, 2024
3f6ebf4
All hail the standard
originalsouth May 30, 2024
713c8c1
Fix dash
originalsouth May 30, 2024
2221601
Merge remote-tracking branch 'origin/main' into feature/octopoes-xtdb…
originalsouth May 30, 2024
e847918
Merge branch 'main' into feature/octopoes-xtdb-dump-load-refactor
underdarknl May 30, 2024
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
2 changes: 1 addition & 1 deletion octopoes/octopoes/xtdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def delete_node(self) -> None:

raise XTDBException("Could not delete node") from e

def export_transactions(self) -> Any:
def export_transactions(self):
res = self._session.get(f"{self.client_url()}/tx-log?with-ops?=true", headers={"Accept": "application/json"})
self._verify_response(res)
return res.json()
Expand Down
Loading