vortex-cli 4.15.0__tar.gz → 4.16.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/PKG-INFO +2 -2
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/README.md +1 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/setup.cfg +2 -3
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/db.py +3 -12
- vortex_cli-4.15.0/vortex/lib/puakma.jar → vortex_cli-4.16.0/vortex/lib/puakma-6.0.37.jar +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/soap.py +5 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/workspace.py +2 -2
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex_cli.egg-info/PKG-INFO +2 -2
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex_cli.egg-info/SOURCES.txt +1 -1
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/LICENSE +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/setup.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/__init__.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/__main__.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/cli.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/colour.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/__init__.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/clean.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/clone.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/code.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/config.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/copy.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/delete.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/docs.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/execute.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/find.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/grep.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/list.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/log.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/new.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/commands/watch.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/constants.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/docs/Blackbook.pdf +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/logging.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/main.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/models.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/spinner.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex/util.py +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex_cli.egg-info/dependency_links.txt +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex_cli.egg-info/entry_points.txt +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex_cli.egg-info/requires.txt +0 -0
- {vortex_cli-4.15.0 → vortex_cli-4.16.0}/vortex_cli.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vortex_cli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.16.0
|
|
4
4
|
Home-page: https://github.com/jordanamos/vortex-cli
|
|
5
5
|
Author: Jordan Amos
|
|
6
6
|
Author-email: jordan.amos@gmail.com
|
|
7
7
|
License: MIT
|
|
8
8
|
Keywords: vortex cli
|
|
9
|
-
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
9
|
Classifier: Intended Audience :: Developers
|
|
11
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
11
|
Classifier: Natural Language :: English
|
|
@@ -76,6 +75,7 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
76
75
|
puakma_db_conn_id = 13
|
|
77
76
|
username = myuser ; Optional - Prompted at runtime if not provided
|
|
78
77
|
password = mypassword ; Optional - Prompted at runtime if not provided
|
|
78
|
+
; Optional
|
|
79
79
|
lib_path = ; additional jars that should be included in the classpath
|
|
80
80
|
java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
|
|
81
81
|
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
@@ -54,6 +54,7 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
54
54
|
puakma_db_conn_id = 13
|
|
55
55
|
username = myuser ; Optional - Prompted at runtime if not provided
|
|
56
56
|
password = mypassword ; Optional - Prompted at runtime if not provided
|
|
57
|
+
; Optional
|
|
57
58
|
lib_path = ; additional jars that should be included in the classpath
|
|
58
59
|
java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
|
|
59
60
|
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = vortex_cli
|
|
3
|
-
version = 4.
|
|
3
|
+
version = 4.16.0
|
|
4
4
|
long_description = file: README.md
|
|
5
5
|
long_description_content_type = text/markdown
|
|
6
6
|
url = https://github.com/jordanamos/vortex-cli
|
|
@@ -9,7 +9,6 @@ author_email = jordan.amos@gmail.com
|
|
|
9
9
|
license = MIT
|
|
10
10
|
license_files = LICENSE
|
|
11
11
|
classifiers =
|
|
12
|
-
Development Status :: 2 - Pre-Alpha
|
|
13
12
|
Intended Audience :: Developers
|
|
14
13
|
License :: OSI Approved :: MIT License
|
|
15
14
|
Natural Language :: English
|
|
@@ -38,7 +37,7 @@ console_scripts =
|
|
|
38
37
|
|
|
39
38
|
[options.package_data]
|
|
40
39
|
vortex =
|
|
41
|
-
lib/puakma.jar
|
|
40
|
+
lib/puakma-6.0.37.jar
|
|
42
41
|
docs/Blackbook.pdf
|
|
43
42
|
|
|
44
43
|
[flake8]
|
|
@@ -93,8 +93,6 @@ def _output_result(
|
|
|
93
93
|
list_tables: bool = False,
|
|
94
94
|
) -> int:
|
|
95
95
|
with server:
|
|
96
|
-
logger.debug("Executing query")
|
|
97
|
-
logger.debug(sql)
|
|
98
96
|
result = tuple(server.database_designer.execute_query(conn_id, sql, update))
|
|
99
97
|
if schema_table and not result:
|
|
100
98
|
logger.error(f"Table '{schema_table}' not found in database '{db_name}'")
|
|
@@ -134,13 +132,9 @@ def _read_from_editor() -> str:
|
|
|
134
132
|
try:
|
|
135
133
|
subprocess.call(["nano", tmp_sql_file])
|
|
136
134
|
with open(tmp_sql_file) as f:
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
return f.read().strip()
|
|
136
|
+
finally:
|
|
139
137
|
os.remove(tmp_sql_file)
|
|
140
|
-
raise
|
|
141
|
-
else:
|
|
142
|
-
os.remove(tmp_sql_file)
|
|
143
|
-
return sql_query
|
|
144
138
|
|
|
145
139
|
|
|
146
140
|
def db(
|
|
@@ -156,10 +150,7 @@ def db(
|
|
|
156
150
|
) -> int:
|
|
157
151
|
if sql is not None:
|
|
158
152
|
if sql.strip() == "":
|
|
159
|
-
if sys.platform == "win32"
|
|
160
|
-
sql = None
|
|
161
|
-
else:
|
|
162
|
-
sql = _read_from_editor()
|
|
153
|
+
sql = None if sys.platform == "win32" else _read_from_editor()
|
|
163
154
|
db_name = None
|
|
164
155
|
conn_id = int(database)
|
|
165
156
|
# If we're modifying a database, lets check that its locally
|
|
Binary file
|
|
@@ -318,6 +318,7 @@ class ServerDesigner(_PuakmaSOAPService):
|
|
|
318
318
|
def execute_command(self, command: str) -> str | None:
|
|
319
319
|
operation = "executeCommand"
|
|
320
320
|
params = [_SOAPParam("p1", command, _XSD_STRING)]
|
|
321
|
+
logger.debug(f"Executing command: {command}")
|
|
321
322
|
resp = self._post(operation, params)
|
|
322
323
|
return resp.text
|
|
323
324
|
|
|
@@ -338,6 +339,8 @@ class DatabaseDesigner(_PuakmaSOAPService):
|
|
|
338
339
|
_SOAPParam("p2", query, _XSD_STRING),
|
|
339
340
|
_SOAPParam("p3", is_update, _XSD_BOOLEAN),
|
|
340
341
|
]
|
|
342
|
+
logger.debug("Executing query")
|
|
343
|
+
logger.debug(query)
|
|
341
344
|
resp = await self._apost(operation, params)
|
|
342
345
|
col_lookup = [
|
|
343
346
|
meta_row.attrib["name"] for meta_row in resp.findall(".//metadata")
|
|
@@ -367,6 +370,8 @@ class DatabaseDesigner(_PuakmaSOAPService):
|
|
|
367
370
|
_SOAPParam("p2", query, _XSD_STRING),
|
|
368
371
|
_SOAPParam("p3", is_update, _XSD_BOOLEAN),
|
|
369
372
|
]
|
|
373
|
+
logger.debug("Executing query")
|
|
374
|
+
logger.debug(query)
|
|
370
375
|
resp = self._post(operation, params)
|
|
371
376
|
col_lookup = [
|
|
372
377
|
meta_row.attrib["name"] for meta_row in resp.findall(".//metadata")
|
|
@@ -159,10 +159,10 @@ class Workspace:
|
|
|
159
159
|
) -> list[Path]:
|
|
160
160
|
"""
|
|
161
161
|
Returns a list of directories that contain a parseable
|
|
162
|
-
.
|
|
162
|
+
.pma file.
|
|
163
163
|
|
|
164
164
|
If strict is False then return directories that simply
|
|
165
|
-
contain a .
|
|
165
|
+
contain a .pma file.
|
|
166
166
|
"""
|
|
167
167
|
ret = []
|
|
168
168
|
pattern = "**/.pma"
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vortex_cli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.16.0
|
|
4
4
|
Home-page: https://github.com/jordanamos/vortex-cli
|
|
5
5
|
Author: Jordan Amos
|
|
6
6
|
Author-email: jordan.amos@gmail.com
|
|
7
7
|
License: MIT
|
|
8
8
|
Keywords: vortex cli
|
|
9
|
-
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
9
|
Classifier: Intended Audience :: Developers
|
|
11
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
11
|
Classifier: Natural Language :: English
|
|
@@ -76,6 +75,7 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
76
75
|
puakma_db_conn_id = 13
|
|
77
76
|
username = myuser ; Optional - Prompted at runtime if not provided
|
|
78
77
|
password = mypassword ; Optional - Prompted at runtime if not provided
|
|
78
|
+
; Optional
|
|
79
79
|
lib_path = ; additional jars that should be included in the classpath
|
|
80
80
|
java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
|
|
81
81
|
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
@@ -31,7 +31,7 @@ vortex/commands/log.py
|
|
|
31
31
|
vortex/commands/new.py
|
|
32
32
|
vortex/commands/watch.py
|
|
33
33
|
vortex/docs/Blackbook.pdf
|
|
34
|
-
vortex/lib/puakma.jar
|
|
34
|
+
vortex/lib/puakma-6.0.37.jar
|
|
35
35
|
vortex_cli.egg-info/PKG-INFO
|
|
36
36
|
vortex_cli.egg-info/SOURCES.txt
|
|
37
37
|
vortex_cli.egg-info/dependency_links.txt
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|