vortex-cli 8.4.2__tar.gz → 8.6.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-8.4.2 → vortex_cli-8.6.0}/PKG-INFO +135 -45
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/README.md +134 -44
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/pyproject.toml +1 -1
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/cli.py +124 -17
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/agenda.py +214 -41
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/app.py +27 -4
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/db.py +79 -46
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/diff.py +8 -3
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/fetch.py +9 -12
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/keyword.py +1 -7
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/object_.py +38 -32
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/search.py +18 -20
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/servers.py +10 -1
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/watch.py +1 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/main.py +15 -1
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/models.py +10 -3
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/output.py +23 -1
- vortex_cli-8.6.0/vortex/registry.py +644 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/server_options.py +10 -1
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/webdesign.py +74 -19
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/workspace.py +56 -2
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex_cli.egg-info/PKG-INFO +135 -45
- vortex_cli-8.4.2/vortex/registry.py +0 -343
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/LICENSE +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/setup.cfg +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/__init__.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/__main__.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/colour.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/__init__.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/clean.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/clone.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/code.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/compile.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/docs.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/execute.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/file.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/info.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/libs.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/log.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/pull.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/stats.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/use.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/commands/weblog.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/constants.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/docs/Blackbook v2.md +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/docs/Blackbook.pdf +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/docs/index.html +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/docs/marked.min.js +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/git.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/lib/puakma-6.0.40.jar +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/libs.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/logging.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/schedule.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/session_store.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/soap.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/spinner.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/sync.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex/util.py +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex_cli.egg-info/SOURCES.txt +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex_cli.egg-info/dependency_links.txt +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex_cli.egg-info/entry_points.txt +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex_cli.egg-info/requires.txt +0 -0
- {vortex_cli-8.4.2 → vortex_cli-8.6.0}/vortex_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vortex_cli
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.6.0
|
|
4
4
|
Summary: Vortex CLI
|
|
5
5
|
Author-email: Jordan Amos <jordan.amos@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -87,14 +87,15 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
87
87
|
|
|
88
88
|
```
|
|
89
89
|
[DEFAULT] ; This section is optional and only useful if you have multiple definitions
|
|
90
|
-
|
|
90
|
+
scheme = https ; Options provided under DEFAULT will be applied to all definitions if not provided
|
|
91
91
|
soap_path = system/SOAPDesigner.pma
|
|
92
92
|
default = server1 ; Useful when you have multiple definitions
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
[server1] ; This can be called whatever you want and can be referenced using the '--server' flag
|
|
96
96
|
host = example.com
|
|
97
|
-
|
|
97
|
+
scheme = http ; Optional - https (the default) or http, for a server that only speaks plain HTTP. We can overwrite the DEFAULT value
|
|
98
|
+
port = 8080 ; Optional - unset = the scheme's port: 443 for https, 80 for http
|
|
98
99
|
username = myuser ; Optional - Prompted at runtime if not provided
|
|
99
100
|
password = mypassword ; Optional - Prompted at runtime if not provided
|
|
100
101
|
; Optional
|
|
@@ -106,6 +107,26 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
106
107
|
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
107
108
|
```
|
|
108
109
|
|
|
110
|
+
## Upgrading to 8.5
|
|
111
|
+
|
|
112
|
+
- **HTTPS is the default.** A new per-server option `scheme` (`https`, the default, or
|
|
113
|
+
`http`) picks how vortex talks to the server, and an unset `port` now follows it: 443 for
|
|
114
|
+
https, 80 for http (`port` is no longer required). An explicit `port` is always honoured.
|
|
115
|
+
- **Action needed for plain-HTTP servers:** add `scheme = http` to each one. A config that
|
|
116
|
+
only says `port = 80` (often under `[DEFAULT]`) would now mean https on port 80, which
|
|
117
|
+
cannot work, so vortex refuses it with the fix: *"server 'x' uses https (the default since
|
|
118
|
+
8.5) on port 80 (from [DEFAULT]) ... add 'scheme = http' to [x]; for HTTPS remove 'port'
|
|
119
|
+
... or set 'port = 443'"*. For an HTTPS server, drop `port = 80` from `[DEFAULT]` (or
|
|
120
|
+
override it with `port = 443`).
|
|
121
|
+
- **A redirect to https says so.** A server that redirects plain HTTP to HTTPS (e.g. behind
|
|
122
|
+
Cloudflare) used to be reported as *"answered ... with a page instead of JSON - the
|
|
123
|
+
credentials were not accepted"*. It now reads *"HTTP 301 from <url>: the server redirects
|
|
124
|
+
to https (...) - set 'scheme = https' (port 443, or remove 'port') for '<server>' in
|
|
125
|
+
servers.ini"*. A real 401/403 still gives the credentials hint.
|
|
126
|
+
- `app list --open-urls` / `--open-dev-urls` and `clone --open-urls` open `https://` links.
|
|
127
|
+
- `vortex server list` shows each server's scheme; `vortex server get` shows the port an unset
|
|
128
|
+
`port` resolves to (`https default` / `http default`).
|
|
129
|
+
|
|
109
130
|
## Upgrading to 8.4
|
|
110
131
|
|
|
111
132
|
- **`vortex stats` shows the server's disk space** after the statistics: each mounted local
|
|
@@ -196,7 +217,7 @@ errors (exit 2).
|
|
|
196
217
|
- **`execute` joins its words**, so `vortex ex tell agenda schedule -s dev` needs no quotes.
|
|
197
218
|
- **A protected server must be named.** A command that writes to a server or sends a console
|
|
198
219
|
command (`execute`, `compile --upload`, every `app`/`object`/`keyword`/`db` write, and a
|
|
199
|
-
`db query` that is not a `SELECT`) refuses a protected server that was only picked up as
|
|
220
|
+
`db query` that is not a read-only `SELECT`/`EXPLAIN`/`SHOW`) refuses a protected server that was only picked up as
|
|
200
221
|
the `vortex use` default (`PROTECTED_DEFAULT` in `--json`, nothing sent): pass `-s NAME`.
|
|
201
222
|
Reads are unaffected.
|
|
202
223
|
- **Saving `servers.ini` updates the VS Code workspace files.** A running `vortex watch`
|
|
@@ -311,59 +332,59 @@ For a full list of commands see `--help` (every command and verb has its own:
|
|
|
311
332
|
── app ──────────────────────────────────────────────────────────────────────
|
|
312
333
|
vortex app list [--group --name --template --strict --local --show-inherited
|
|
313
334
|
--all --ids-only --open-urls --open-dev-urls] [--json]
|
|
314
|
-
vortex app get
|
|
335
|
+
vortex app get APP [--show-params] [--json]
|
|
315
336
|
vortex app create --name N --group G [--template --inherit-from --description]
|
|
316
|
-
vortex app update
|
|
337
|
+
vortex app update APP [--name --group --description --inherit-from --template]
|
|
317
338
|
[--param NAME=VALUE ...] [--remove-param NAME ...]
|
|
318
|
-
vortex app export
|
|
339
|
+
vortex app export APP... [--out-dir --exclude-source --timeout]
|
|
319
340
|
vortex app import FILE.pmx --name N --group G
|
|
320
|
-
vortex app refresh
|
|
341
|
+
vortex app refresh APP (alias: refresh-design)
|
|
321
342
|
|
|
322
343
|
── object ───────────────────────────────────────────────────────────────────
|
|
323
|
-
vortex object get
|
|
324
|
-
vortex object create --app
|
|
344
|
+
vortex object get OBJECT [--show-source --show-data] [--json]
|
|
345
|
+
vortex object create --app APP --type T --name N [--source FILE --data FILE
|
|
325
346
|
--content-type --comment --inherit-from --open-action
|
|
326
347
|
--save-action --parent-page] [schedule options]
|
|
327
|
-
vortex object update
|
|
348
|
+
vortex object update OBJECT... [--source FILE --data FILE] [metadata options]
|
|
328
349
|
[schedule options]
|
|
329
350
|
schedule options (SCHEDULED_ACTION only): --schedule N|S|I|H|D|W|M|Y --interval N
|
|
330
351
|
--days SMTWHFA --start-time HH:mm --finish-time HH:mm --date N --month N
|
|
331
|
-
vortex object diff [
|
|
352
|
+
vortex object diff [OBJECT...] [--app APP] [--mine|--theirs] [--stat --word-diff -U N] [--json]
|
|
332
353
|
[-- GIT-DIFF-OPTIONS... | --write DIR]
|
|
333
|
-
vortex object copy
|
|
334
|
-
vortex object list [QUERY] [--app
|
|
354
|
+
vortex object copy OBJECT... --to-app TGT [--copy-params]
|
|
355
|
+
vortex object list [QUERY] [--app APP [--local]] [--strict --inherits-from|--parent-page
|
|
335
356
|
--ids-only --show-params --type T...] [--json]
|
|
336
|
-
vortex object grep PATTERN [--app
|
|
357
|
+
vortex object grep PATTERN [--app APP] [--output-paths|--output-apps]
|
|
337
358
|
[--include-resources|--type T...] [--json]
|
|
338
|
-
vortex object run
|
|
339
|
-
vortex object delete
|
|
359
|
+
vortex object run OBJECT [--output] [--json]
|
|
360
|
+
vortex object delete OBJECT... [--yes]
|
|
340
361
|
|
|
341
362
|
── keyword ──────────────────────────────────────────────────────────────────
|
|
342
|
-
vortex keyword list --app
|
|
343
|
-
vortex keyword get NAME --app
|
|
344
|
-
vortex keyword set NAME [VALUE...] --app
|
|
345
|
-
vortex keyword delete NAME --app
|
|
363
|
+
vortex keyword list --app APP [--local] [--reveal] [--json]
|
|
364
|
+
vortex keyword get NAME --app APP [--local] [--reveal] [--json]
|
|
365
|
+
vortex keyword set NAME [VALUE...] --app APP
|
|
366
|
+
vortex keyword delete NAME --app APP [--yes]
|
|
346
367
|
|
|
347
368
|
── db ───────────────────────────────────────────────────────────────────────
|
|
348
|
-
vortex db list [--app
|
|
349
|
-
vortex db get DB --app
|
|
350
|
-
vortex db query DB --app
|
|
351
|
-
vortex db list-tables DB --app
|
|
352
|
-
vortex db get-table DB TABLE --app
|
|
353
|
-
vortex db create-table DB TABLE --app
|
|
354
|
-
vortex db update-table DB TABLE --app
|
|
355
|
-
vortex db delete-table DB TABLE --app
|
|
356
|
-
vortex db create-column DB TABLE COLUMN --app
|
|
369
|
+
vortex db list [--app APP] [--local] [--json]
|
|
370
|
+
vortex db get DB --app APP [--json]
|
|
371
|
+
vortex db query DB --app APP [SQL | --file F | -] [--limit N] [--all-cols] [--json]
|
|
372
|
+
vortex db list-tables DB --app APP [--json]
|
|
373
|
+
vortex db get-table DB TABLE --app APP [--json]
|
|
374
|
+
vortex db create-table DB TABLE --app APP [--description]
|
|
375
|
+
vortex db update-table DB TABLE --app APP [--name --description]
|
|
376
|
+
vortex db delete-table DB TABLE --app APP [--yes]
|
|
377
|
+
vortex db create-column DB TABLE COLUMN --app APP --type T [--size N --pk --not-null
|
|
357
378
|
--unique --auto-increment --ref TABLE --cascade-delete --description]
|
|
358
|
-
vortex db update-column DB TABLE COLUMN --app
|
|
379
|
+
vortex db update-column DB TABLE COLUMN --app APP [--name --type --size --description
|
|
359
380
|
--pk|--no-pk --null|--not-null --unique|--no-unique
|
|
360
381
|
--auto-increment|--no-auto-increment --ref TABLE|--no-ref
|
|
361
382
|
--cascade-delete|--no-cascade-delete]
|
|
362
|
-
vortex db delete-column DB TABLE COLUMN --app
|
|
383
|
+
vortex db delete-column DB TABLE COLUMN --app APP [--yes]
|
|
363
384
|
|
|
364
385
|
── agenda ───────────────────────────────────────────────────────────────────
|
|
365
|
-
vortex agenda [
|
|
366
|
-
vortex agenda run ID --app
|
|
386
|
+
vortex agenda list [GROUP/APP | --app APP] [--json] ('vortex agenda' alone = list)
|
|
387
|
+
vortex agenda run GROUP/APP/ACTION | ID --app APP [--param KEY=VALUE ...] [--refresh --force] [--json]
|
|
367
388
|
|
|
368
389
|
── file (Admin) ─────────────────────────────────────────────────────────────
|
|
369
390
|
vortex file list [PATH] [--json]
|
|
@@ -406,6 +427,62 @@ a protected default must be named with `-s` to write or run a console command).
|
|
|
406
427
|
Each entity command makes at most three small requests (three per ID for multi-ID
|
|
407
428
|
commands); only `clone` downloads a whole application.
|
|
408
429
|
|
|
430
|
+
### Naming an application
|
|
431
|
+
|
|
432
|
+
`APP` is `GROUP/APP` or a numeric ID, on every command that takes one. `--app-id` and
|
|
433
|
+
`--to-app-id` still work and accept the same values as `--app` and `--to-app`.
|
|
434
|
+
|
|
435
|
+
```
|
|
436
|
+
vortex keyword list --app bettrackr/app -s dev
|
|
437
|
+
vortex db query bettrackr --app bettrackr/app -s dev "SELECT 1"
|
|
438
|
+
vortex object get 7825 --app bettrackr/app -s dev
|
|
439
|
+
vortex app get bettrackr/app -s dev
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
- Case is ignored, but an exact match wins, and two applications that differ only in case
|
|
443
|
+
(with neither typed exactly) are `AMBIGUOUS`, never a guess. An ungrouped application is
|
|
444
|
+
`/NAME`, and `/group/app.pma` works too. A bare word is refused as a likely typo.
|
|
445
|
+
- A command that talks to the server looks the path up in that server's inventory: one more
|
|
446
|
+
`GET` (every application row), so an identity that can't read the inventory gets `FORBIDDEN`
|
|
447
|
+
and should use the ID.
|
|
448
|
+
This read comes before the workspace lock, but nothing has been written by then.
|
|
449
|
+
- `object grep`, `object diff`, `fetch`, `compile`, `clean` and anything with `--local` look it
|
|
450
|
+
up in the clones instead, with no request. Only the clones of the server the command runs
|
|
451
|
+
against count (`-s`, else the default), because IDs differ between servers: a path cloned
|
|
452
|
+
only from another server is `NOT_CLONED`. `clean --all` refuses a path, because it would
|
|
453
|
+
clean that ID on every server, where it can name a different application.
|
|
454
|
+
|
|
455
|
+
### Naming a design object
|
|
456
|
+
|
|
457
|
+
`OBJECT` is `GROUP/APP/NAME`, which also names the application, or a numeric ID with `--app`.
|
|
458
|
+
|
|
459
|
+
```
|
|
460
|
+
vortex object get bettrackr/app/Nightly -s dev
|
|
461
|
+
vortex object update bettrackr/app/Nightly bettrackr/app/Weekly --comment "..." -s dev
|
|
462
|
+
vortex object get bettrackr/app/PAGE/Dashboard -s dev # name the type when a name is shared
|
|
463
|
+
vortex object get 7825 --app bettrackr/app -s dev
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
- Case is ignored (an exact match wins), and the type goes after the application as it does in a
|
|
467
|
+
clone. The type must be upper case. If an application is itself named like a type (an app
|
|
468
|
+
`site/PAGE` beside an app `site`), `site/PAGE/Home` is refused as `AMBIGUOUS`: name it
|
|
469
|
+
`/site/PAGE.pma/Home` or `/site.pma/Home`. With only one of the two, the path names that one.
|
|
470
|
+
`agenda run` follows the same rule. Paths whose applications differ only in case
|
|
471
|
+
(`grp/Foo/A grp/foo/B`) must be the same application, or they're `AMBIGUOUS`. A name of all digits needs the path form:
|
|
472
|
+
`bettrackr/app/403`, because `403` alone is an ID.
|
|
473
|
+
- **A name several objects share is refused, never guessed** (`AMBIGUOUS`, with the IDs and the
|
|
474
|
+
paths that tell them apart), so `update` or `delete` can't hit the wrong one. Names that differ
|
|
475
|
+
only in case count as shared unless one matches exactly: in an app with a `PAGE` `dashboard` and
|
|
476
|
+
a `SHARED_CODE` `Dashboard`, each exact name finds its own object and `DASHBOARD` is refused.
|
|
477
|
+
`object run` is the exception: it takes the `ACTION`.
|
|
478
|
+
- Name the objects all by path or all by ID, in one application.
|
|
479
|
+
- The server looks up the name through `GET designs` (gateway 0.5.0): no blobs, 0.05s on an app of
|
|
480
|
+
462 objects. A gateway without that route, or no gateway, falls back to `GET {app}/design`, which
|
|
481
|
+
downloads the whole design (about 3s on the same app). Nothing else changes.
|
|
482
|
+
- `object diff` looks the name up in the clone, with no request. `object list` keeps its full
|
|
483
|
+
download, because it reports design params. `object create` has no object to name, so it takes `--app`.
|
|
484
|
+
- `vortex agenda run` takes the same paths ([The agenda](#the-agenda)).
|
|
485
|
+
|
|
409
486
|
### Output, errors and exit codes
|
|
410
487
|
|
|
411
488
|
Output is readable by default - tables for `list`, key/value for `get`. `--json` (every
|
|
@@ -841,10 +918,19 @@ console without the gateway) and parses the text they answer.
|
|
|
841
918
|
|
|
842
919
|
```
|
|
843
920
|
vortex agenda -s dev # = agenda list
|
|
844
|
-
vortex agenda list --app-id 9
|
|
845
|
-
vortex agenda run
|
|
921
|
+
vortex agenda list bettrackr/app -s dev # or --app-id 9
|
|
922
|
+
vortex agenda run bettrackr/app/Nightly -s dev [--param AppID=12] [--refresh] [--force]
|
|
923
|
+
vortex agenda run 7825 --app-id 60 -s dev
|
|
846
924
|
```
|
|
847
925
|
|
|
926
|
+
An action's path is `GROUP/APP/ACTION`, built from the `App` and `Action` columns of
|
|
927
|
+
`vortex agenda`. Case is ignored unless two names differ only in case: then the exact case wins,
|
|
928
|
+
and with no exact match it's `AMBIGUOUS`. An ungrouped application is `APP/ACTION` (`/2024/Nightly`
|
|
929
|
+
when its name is all digits), and AGENDA's own `/group/app.pma/Name` works too (needed when
|
|
930
|
+
the action's name holds a `/`). A path is always checked against the design row, as an ID is, so
|
|
931
|
+
the lookup reads the application's design rows (`GET designs`, or on an older gateway the whole design). Group and
|
|
932
|
+
application names with spaces or other characters AGENDA URL-encodes are matched decoded.
|
|
933
|
+
|
|
848
934
|
- **`list`** - `tell agenda schedule`: every scheduled action AGENDA has **loaded**, by next
|
|
849
935
|
run (server time), with the waitlist and AGENDA's counts (running, waitlisted, scheduled,
|
|
850
936
|
max at once). An action with empty `Options` is loaded as *on demand only*. Not listed: an
|
|
@@ -989,10 +1075,11 @@ webdesign's `/system/webdesign.pma/vortex/<path>` - with three things in front o
|
|
|
989
1075
|
`GatewayDesignWrite`, `GatewayDBRead`, `GatewayDBWrite`, `GatewaySystem` and `Admin`
|
|
990
1076
|
(every route). Write implies read. A route the gateway does not map is refused.
|
|
991
1077
|
`vortex --show-permissions` shows which commands your identity may run.
|
|
992
|
-
- **Guards.** The gateway
|
|
993
|
-
lets an id from one application be used under another (`NOT_FOUND`), and
|
|
994
|
-
|
|
995
|
-
any
|
|
1078
|
+
- **Guards.** The gateway keeps the Puakma system database read only (`SYSTEM_DB`), never
|
|
1079
|
+
lets an id from one application be used under another (`NOT_FOUND`), and refuses a SQL
|
|
1080
|
+
request with no statement in it (`SQL_NOT_ALLOWED`). From gateway 0.4.0 `GatewayDBWrite`
|
|
1081
|
+
runs any SQL - DDL including `DROP`/`TRUNCATE`, `WITH`, several statements; older gateways
|
|
1082
|
+
refuse those with `SQL_NOT_ALLOWED`.
|
|
996
1083
|
- **Its own routes:** `whoami` (a bare `vortex`), the server and web logs (`log`, `weblog`), the console (`execute`),
|
|
997
1084
|
addin statistics (`stats`), `.pmx` export and import, and the server's files (`file`, `Admin`).
|
|
998
1085
|
|
|
@@ -1001,7 +1088,7 @@ On a server with a blank `gateway_path`:
|
|
|
1001
1088
|
| Command | Behaviour |
|
|
1002
1089
|
|---|---|
|
|
1003
1090
|
| `app`, `object`, `keyword`, `db`, `clone`, `compile`, `watch`, `server libs` | the same routes, sent to webdesign's `/vortex` |
|
|
1004
|
-
| `db query` |
|
|
1091
|
+
| `db query` | sent to webdesign as-is (any SQL, as with the gateway); only a body with no statement is refused with `SQL_NOT_ALLOWED` before anything is sent |
|
|
1005
1092
|
| `app export` | webdesign's `ExportPMX` |
|
|
1006
1093
|
| `vortex` (no command) | the console `status` command over SOAP (`soap_path`); `--show-permissions` says "no gateway: webdesign direct, no role checks" |
|
|
1007
1094
|
| `log` | a `PMALOG` query through webdesign's SQL route, on the system-database connection owned by the ungrouped `puakma` application (found once per run); `--since`/`--from`/`--to`/`--search` go into the query, `--page`/`--all-pages` are refused |
|
|
@@ -1086,11 +1173,14 @@ vortex db query 3 --app-id 9 --file report.sql --json
|
|
|
1086
1173
|
vortex db get-table bettrackr invoice --app-id 9
|
|
1087
1174
|
```
|
|
1088
1175
|
|
|
1089
|
-
`db query` sends the
|
|
1176
|
+
`db query` sends the SQL as given, apart from adding `LIMIT n` (default 10) to a single
|
|
1090
1177
|
`SELECT` that has none - a full page of rows is flagged as possibly truncated. There is no
|
|
1091
|
-
`--update` flag: the gateway
|
|
1092
|
-
`
|
|
1093
|
-
|
|
1178
|
+
`--update` flag: the gateway picks the role - one `SELECT` (no `INTO`), `EXPLAIN` (no
|
|
1179
|
+
`ANALYZE`) or `SHOW` needs `GatewayDBRead`; any other SQL - DML, DDL including `DROP` and
|
|
1180
|
+
`TRUNCATE`, `ANALYZE`, `WITH`, several statements - needs `GatewayDBWrite` (gateway 0.4.0+).
|
|
1181
|
+
webdesign runs the body with one `Statement.execute()`: DDL replies `0 row(s) affected`, and
|
|
1182
|
+
for several statements the reply is the first one's result (all of them run). A numeric `DB`
|
|
1183
|
+
is one request; a name is two.
|
|
1094
1184
|
|
|
1095
1185
|
The `create-`/`update-`/`delete-` table and column commands record design-time definitions in
|
|
1096
1186
|
the Puakma data dictionary (the PMATABLE/ATTRIBUTE tables). They **never run DDL** - deletes
|
|
@@ -43,14 +43,15 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
43
43
|
|
|
44
44
|
```
|
|
45
45
|
[DEFAULT] ; This section is optional and only useful if you have multiple definitions
|
|
46
|
-
|
|
46
|
+
scheme = https ; Options provided under DEFAULT will be applied to all definitions if not provided
|
|
47
47
|
soap_path = system/SOAPDesigner.pma
|
|
48
48
|
default = server1 ; Useful when you have multiple definitions
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
[server1] ; This can be called whatever you want and can be referenced using the '--server' flag
|
|
52
52
|
host = example.com
|
|
53
|
-
|
|
53
|
+
scheme = http ; Optional - https (the default) or http, for a server that only speaks plain HTTP. We can overwrite the DEFAULT value
|
|
54
|
+
port = 8080 ; Optional - unset = the scheme's port: 443 for https, 80 for http
|
|
54
55
|
username = myuser ; Optional - Prompted at runtime if not provided
|
|
55
56
|
password = mypassword ; Optional - Prompted at runtime if not provided
|
|
56
57
|
; Optional
|
|
@@ -62,6 +63,26 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
62
63
|
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
63
64
|
```
|
|
64
65
|
|
|
66
|
+
## Upgrading to 8.5
|
|
67
|
+
|
|
68
|
+
- **HTTPS is the default.** A new per-server option `scheme` (`https`, the default, or
|
|
69
|
+
`http`) picks how vortex talks to the server, and an unset `port` now follows it: 443 for
|
|
70
|
+
https, 80 for http (`port` is no longer required). An explicit `port` is always honoured.
|
|
71
|
+
- **Action needed for plain-HTTP servers:** add `scheme = http` to each one. A config that
|
|
72
|
+
only says `port = 80` (often under `[DEFAULT]`) would now mean https on port 80, which
|
|
73
|
+
cannot work, so vortex refuses it with the fix: *"server 'x' uses https (the default since
|
|
74
|
+
8.5) on port 80 (from [DEFAULT]) ... add 'scheme = http' to [x]; for HTTPS remove 'port'
|
|
75
|
+
... or set 'port = 443'"*. For an HTTPS server, drop `port = 80` from `[DEFAULT]` (or
|
|
76
|
+
override it with `port = 443`).
|
|
77
|
+
- **A redirect to https says so.** A server that redirects plain HTTP to HTTPS (e.g. behind
|
|
78
|
+
Cloudflare) used to be reported as *"answered ... with a page instead of JSON - the
|
|
79
|
+
credentials were not accepted"*. It now reads *"HTTP 301 from <url>: the server redirects
|
|
80
|
+
to https (...) - set 'scheme = https' (port 443, or remove 'port') for '<server>' in
|
|
81
|
+
servers.ini"*. A real 401/403 still gives the credentials hint.
|
|
82
|
+
- `app list --open-urls` / `--open-dev-urls` and `clone --open-urls` open `https://` links.
|
|
83
|
+
- `vortex server list` shows each server's scheme; `vortex server get` shows the port an unset
|
|
84
|
+
`port` resolves to (`https default` / `http default`).
|
|
85
|
+
|
|
65
86
|
## Upgrading to 8.4
|
|
66
87
|
|
|
67
88
|
- **`vortex stats` shows the server's disk space** after the statistics: each mounted local
|
|
@@ -152,7 +173,7 @@ errors (exit 2).
|
|
|
152
173
|
- **`execute` joins its words**, so `vortex ex tell agenda schedule -s dev` needs no quotes.
|
|
153
174
|
- **A protected server must be named.** A command that writes to a server or sends a console
|
|
154
175
|
command (`execute`, `compile --upload`, every `app`/`object`/`keyword`/`db` write, and a
|
|
155
|
-
`db query` that is not a `SELECT`) refuses a protected server that was only picked up as
|
|
176
|
+
`db query` that is not a read-only `SELECT`/`EXPLAIN`/`SHOW`) refuses a protected server that was only picked up as
|
|
156
177
|
the `vortex use` default (`PROTECTED_DEFAULT` in `--json`, nothing sent): pass `-s NAME`.
|
|
157
178
|
Reads are unaffected.
|
|
158
179
|
- **Saving `servers.ini` updates the VS Code workspace files.** A running `vortex watch`
|
|
@@ -267,59 +288,59 @@ For a full list of commands see `--help` (every command and verb has its own:
|
|
|
267
288
|
── app ──────────────────────────────────────────────────────────────────────
|
|
268
289
|
vortex app list [--group --name --template --strict --local --show-inherited
|
|
269
290
|
--all --ids-only --open-urls --open-dev-urls] [--json]
|
|
270
|
-
vortex app get
|
|
291
|
+
vortex app get APP [--show-params] [--json]
|
|
271
292
|
vortex app create --name N --group G [--template --inherit-from --description]
|
|
272
|
-
vortex app update
|
|
293
|
+
vortex app update APP [--name --group --description --inherit-from --template]
|
|
273
294
|
[--param NAME=VALUE ...] [--remove-param NAME ...]
|
|
274
|
-
vortex app export
|
|
295
|
+
vortex app export APP... [--out-dir --exclude-source --timeout]
|
|
275
296
|
vortex app import FILE.pmx --name N --group G
|
|
276
|
-
vortex app refresh
|
|
297
|
+
vortex app refresh APP (alias: refresh-design)
|
|
277
298
|
|
|
278
299
|
── object ───────────────────────────────────────────────────────────────────
|
|
279
|
-
vortex object get
|
|
280
|
-
vortex object create --app
|
|
300
|
+
vortex object get OBJECT [--show-source --show-data] [--json]
|
|
301
|
+
vortex object create --app APP --type T --name N [--source FILE --data FILE
|
|
281
302
|
--content-type --comment --inherit-from --open-action
|
|
282
303
|
--save-action --parent-page] [schedule options]
|
|
283
|
-
vortex object update
|
|
304
|
+
vortex object update OBJECT... [--source FILE --data FILE] [metadata options]
|
|
284
305
|
[schedule options]
|
|
285
306
|
schedule options (SCHEDULED_ACTION only): --schedule N|S|I|H|D|W|M|Y --interval N
|
|
286
307
|
--days SMTWHFA --start-time HH:mm --finish-time HH:mm --date N --month N
|
|
287
|
-
vortex object diff [
|
|
308
|
+
vortex object diff [OBJECT...] [--app APP] [--mine|--theirs] [--stat --word-diff -U N] [--json]
|
|
288
309
|
[-- GIT-DIFF-OPTIONS... | --write DIR]
|
|
289
|
-
vortex object copy
|
|
290
|
-
vortex object list [QUERY] [--app
|
|
310
|
+
vortex object copy OBJECT... --to-app TGT [--copy-params]
|
|
311
|
+
vortex object list [QUERY] [--app APP [--local]] [--strict --inherits-from|--parent-page
|
|
291
312
|
--ids-only --show-params --type T...] [--json]
|
|
292
|
-
vortex object grep PATTERN [--app
|
|
313
|
+
vortex object grep PATTERN [--app APP] [--output-paths|--output-apps]
|
|
293
314
|
[--include-resources|--type T...] [--json]
|
|
294
|
-
vortex object run
|
|
295
|
-
vortex object delete
|
|
315
|
+
vortex object run OBJECT [--output] [--json]
|
|
316
|
+
vortex object delete OBJECT... [--yes]
|
|
296
317
|
|
|
297
318
|
── keyword ──────────────────────────────────────────────────────────────────
|
|
298
|
-
vortex keyword list --app
|
|
299
|
-
vortex keyword get NAME --app
|
|
300
|
-
vortex keyword set NAME [VALUE...] --app
|
|
301
|
-
vortex keyword delete NAME --app
|
|
319
|
+
vortex keyword list --app APP [--local] [--reveal] [--json]
|
|
320
|
+
vortex keyword get NAME --app APP [--local] [--reveal] [--json]
|
|
321
|
+
vortex keyword set NAME [VALUE...] --app APP
|
|
322
|
+
vortex keyword delete NAME --app APP [--yes]
|
|
302
323
|
|
|
303
324
|
── db ───────────────────────────────────────────────────────────────────────
|
|
304
|
-
vortex db list [--app
|
|
305
|
-
vortex db get DB --app
|
|
306
|
-
vortex db query DB --app
|
|
307
|
-
vortex db list-tables DB --app
|
|
308
|
-
vortex db get-table DB TABLE --app
|
|
309
|
-
vortex db create-table DB TABLE --app
|
|
310
|
-
vortex db update-table DB TABLE --app
|
|
311
|
-
vortex db delete-table DB TABLE --app
|
|
312
|
-
vortex db create-column DB TABLE COLUMN --app
|
|
325
|
+
vortex db list [--app APP] [--local] [--json]
|
|
326
|
+
vortex db get DB --app APP [--json]
|
|
327
|
+
vortex db query DB --app APP [SQL | --file F | -] [--limit N] [--all-cols] [--json]
|
|
328
|
+
vortex db list-tables DB --app APP [--json]
|
|
329
|
+
vortex db get-table DB TABLE --app APP [--json]
|
|
330
|
+
vortex db create-table DB TABLE --app APP [--description]
|
|
331
|
+
vortex db update-table DB TABLE --app APP [--name --description]
|
|
332
|
+
vortex db delete-table DB TABLE --app APP [--yes]
|
|
333
|
+
vortex db create-column DB TABLE COLUMN --app APP --type T [--size N --pk --not-null
|
|
313
334
|
--unique --auto-increment --ref TABLE --cascade-delete --description]
|
|
314
|
-
vortex db update-column DB TABLE COLUMN --app
|
|
335
|
+
vortex db update-column DB TABLE COLUMN --app APP [--name --type --size --description
|
|
315
336
|
--pk|--no-pk --null|--not-null --unique|--no-unique
|
|
316
337
|
--auto-increment|--no-auto-increment --ref TABLE|--no-ref
|
|
317
338
|
--cascade-delete|--no-cascade-delete]
|
|
318
|
-
vortex db delete-column DB TABLE COLUMN --app
|
|
339
|
+
vortex db delete-column DB TABLE COLUMN --app APP [--yes]
|
|
319
340
|
|
|
320
341
|
── agenda ───────────────────────────────────────────────────────────────────
|
|
321
|
-
vortex agenda [
|
|
322
|
-
vortex agenda run ID --app
|
|
342
|
+
vortex agenda list [GROUP/APP | --app APP] [--json] ('vortex agenda' alone = list)
|
|
343
|
+
vortex agenda run GROUP/APP/ACTION | ID --app APP [--param KEY=VALUE ...] [--refresh --force] [--json]
|
|
323
344
|
|
|
324
345
|
── file (Admin) ─────────────────────────────────────────────────────────────
|
|
325
346
|
vortex file list [PATH] [--json]
|
|
@@ -362,6 +383,62 @@ a protected default must be named with `-s` to write or run a console command).
|
|
|
362
383
|
Each entity command makes at most three small requests (three per ID for multi-ID
|
|
363
384
|
commands); only `clone` downloads a whole application.
|
|
364
385
|
|
|
386
|
+
### Naming an application
|
|
387
|
+
|
|
388
|
+
`APP` is `GROUP/APP` or a numeric ID, on every command that takes one. `--app-id` and
|
|
389
|
+
`--to-app-id` still work and accept the same values as `--app` and `--to-app`.
|
|
390
|
+
|
|
391
|
+
```
|
|
392
|
+
vortex keyword list --app bettrackr/app -s dev
|
|
393
|
+
vortex db query bettrackr --app bettrackr/app -s dev "SELECT 1"
|
|
394
|
+
vortex object get 7825 --app bettrackr/app -s dev
|
|
395
|
+
vortex app get bettrackr/app -s dev
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
- Case is ignored, but an exact match wins, and two applications that differ only in case
|
|
399
|
+
(with neither typed exactly) are `AMBIGUOUS`, never a guess. An ungrouped application is
|
|
400
|
+
`/NAME`, and `/group/app.pma` works too. A bare word is refused as a likely typo.
|
|
401
|
+
- A command that talks to the server looks the path up in that server's inventory: one more
|
|
402
|
+
`GET` (every application row), so an identity that can't read the inventory gets `FORBIDDEN`
|
|
403
|
+
and should use the ID.
|
|
404
|
+
This read comes before the workspace lock, but nothing has been written by then.
|
|
405
|
+
- `object grep`, `object diff`, `fetch`, `compile`, `clean` and anything with `--local` look it
|
|
406
|
+
up in the clones instead, with no request. Only the clones of the server the command runs
|
|
407
|
+
against count (`-s`, else the default), because IDs differ between servers: a path cloned
|
|
408
|
+
only from another server is `NOT_CLONED`. `clean --all` refuses a path, because it would
|
|
409
|
+
clean that ID on every server, where it can name a different application.
|
|
410
|
+
|
|
411
|
+
### Naming a design object
|
|
412
|
+
|
|
413
|
+
`OBJECT` is `GROUP/APP/NAME`, which also names the application, or a numeric ID with `--app`.
|
|
414
|
+
|
|
415
|
+
```
|
|
416
|
+
vortex object get bettrackr/app/Nightly -s dev
|
|
417
|
+
vortex object update bettrackr/app/Nightly bettrackr/app/Weekly --comment "..." -s dev
|
|
418
|
+
vortex object get bettrackr/app/PAGE/Dashboard -s dev # name the type when a name is shared
|
|
419
|
+
vortex object get 7825 --app bettrackr/app -s dev
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
- Case is ignored (an exact match wins), and the type goes after the application as it does in a
|
|
423
|
+
clone. The type must be upper case. If an application is itself named like a type (an app
|
|
424
|
+
`site/PAGE` beside an app `site`), `site/PAGE/Home` is refused as `AMBIGUOUS`: name it
|
|
425
|
+
`/site/PAGE.pma/Home` or `/site.pma/Home`. With only one of the two, the path names that one.
|
|
426
|
+
`agenda run` follows the same rule. Paths whose applications differ only in case
|
|
427
|
+
(`grp/Foo/A grp/foo/B`) must be the same application, or they're `AMBIGUOUS`. A name of all digits needs the path form:
|
|
428
|
+
`bettrackr/app/403`, because `403` alone is an ID.
|
|
429
|
+
- **A name several objects share is refused, never guessed** (`AMBIGUOUS`, with the IDs and the
|
|
430
|
+
paths that tell them apart), so `update` or `delete` can't hit the wrong one. Names that differ
|
|
431
|
+
only in case count as shared unless one matches exactly: in an app with a `PAGE` `dashboard` and
|
|
432
|
+
a `SHARED_CODE` `Dashboard`, each exact name finds its own object and `DASHBOARD` is refused.
|
|
433
|
+
`object run` is the exception: it takes the `ACTION`.
|
|
434
|
+
- Name the objects all by path or all by ID, in one application.
|
|
435
|
+
- The server looks up the name through `GET designs` (gateway 0.5.0): no blobs, 0.05s on an app of
|
|
436
|
+
462 objects. A gateway without that route, or no gateway, falls back to `GET {app}/design`, which
|
|
437
|
+
downloads the whole design (about 3s on the same app). Nothing else changes.
|
|
438
|
+
- `object diff` looks the name up in the clone, with no request. `object list` keeps its full
|
|
439
|
+
download, because it reports design params. `object create` has no object to name, so it takes `--app`.
|
|
440
|
+
- `vortex agenda run` takes the same paths ([The agenda](#the-agenda)).
|
|
441
|
+
|
|
365
442
|
### Output, errors and exit codes
|
|
366
443
|
|
|
367
444
|
Output is readable by default - tables for `list`, key/value for `get`. `--json` (every
|
|
@@ -797,10 +874,19 @@ console without the gateway) and parses the text they answer.
|
|
|
797
874
|
|
|
798
875
|
```
|
|
799
876
|
vortex agenda -s dev # = agenda list
|
|
800
|
-
vortex agenda list --app-id 9
|
|
801
|
-
vortex agenda run
|
|
877
|
+
vortex agenda list bettrackr/app -s dev # or --app-id 9
|
|
878
|
+
vortex agenda run bettrackr/app/Nightly -s dev [--param AppID=12] [--refresh] [--force]
|
|
879
|
+
vortex agenda run 7825 --app-id 60 -s dev
|
|
802
880
|
```
|
|
803
881
|
|
|
882
|
+
An action's path is `GROUP/APP/ACTION`, built from the `App` and `Action` columns of
|
|
883
|
+
`vortex agenda`. Case is ignored unless two names differ only in case: then the exact case wins,
|
|
884
|
+
and with no exact match it's `AMBIGUOUS`. An ungrouped application is `APP/ACTION` (`/2024/Nightly`
|
|
885
|
+
when its name is all digits), and AGENDA's own `/group/app.pma/Name` works too (needed when
|
|
886
|
+
the action's name holds a `/`). A path is always checked against the design row, as an ID is, so
|
|
887
|
+
the lookup reads the application's design rows (`GET designs`, or on an older gateway the whole design). Group and
|
|
888
|
+
application names with spaces or other characters AGENDA URL-encodes are matched decoded.
|
|
889
|
+
|
|
804
890
|
- **`list`** - `tell agenda schedule`: every scheduled action AGENDA has **loaded**, by next
|
|
805
891
|
run (server time), with the waitlist and AGENDA's counts (running, waitlisted, scheduled,
|
|
806
892
|
max at once). An action with empty `Options` is loaded as *on demand only*. Not listed: an
|
|
@@ -945,10 +1031,11 @@ webdesign's `/system/webdesign.pma/vortex/<path>` - with three things in front o
|
|
|
945
1031
|
`GatewayDesignWrite`, `GatewayDBRead`, `GatewayDBWrite`, `GatewaySystem` and `Admin`
|
|
946
1032
|
(every route). Write implies read. A route the gateway does not map is refused.
|
|
947
1033
|
`vortex --show-permissions` shows which commands your identity may run.
|
|
948
|
-
- **Guards.** The gateway
|
|
949
|
-
lets an id from one application be used under another (`NOT_FOUND`), and
|
|
950
|
-
|
|
951
|
-
any
|
|
1034
|
+
- **Guards.** The gateway keeps the Puakma system database read only (`SYSTEM_DB`), never
|
|
1035
|
+
lets an id from one application be used under another (`NOT_FOUND`), and refuses a SQL
|
|
1036
|
+
request with no statement in it (`SQL_NOT_ALLOWED`). From gateway 0.4.0 `GatewayDBWrite`
|
|
1037
|
+
runs any SQL - DDL including `DROP`/`TRUNCATE`, `WITH`, several statements; older gateways
|
|
1038
|
+
refuse those with `SQL_NOT_ALLOWED`.
|
|
952
1039
|
- **Its own routes:** `whoami` (a bare `vortex`), the server and web logs (`log`, `weblog`), the console (`execute`),
|
|
953
1040
|
addin statistics (`stats`), `.pmx` export and import, and the server's files (`file`, `Admin`).
|
|
954
1041
|
|
|
@@ -957,7 +1044,7 @@ On a server with a blank `gateway_path`:
|
|
|
957
1044
|
| Command | Behaviour |
|
|
958
1045
|
|---|---|
|
|
959
1046
|
| `app`, `object`, `keyword`, `db`, `clone`, `compile`, `watch`, `server libs` | the same routes, sent to webdesign's `/vortex` |
|
|
960
|
-
| `db query` |
|
|
1047
|
+
| `db query` | sent to webdesign as-is (any SQL, as with the gateway); only a body with no statement is refused with `SQL_NOT_ALLOWED` before anything is sent |
|
|
961
1048
|
| `app export` | webdesign's `ExportPMX` |
|
|
962
1049
|
| `vortex` (no command) | the console `status` command over SOAP (`soap_path`); `--show-permissions` says "no gateway: webdesign direct, no role checks" |
|
|
963
1050
|
| `log` | a `PMALOG` query through webdesign's SQL route, on the system-database connection owned by the ungrouped `puakma` application (found once per run); `--since`/`--from`/`--to`/`--search` go into the query, `--page`/`--all-pages` are refused |
|
|
@@ -1042,11 +1129,14 @@ vortex db query 3 --app-id 9 --file report.sql --json
|
|
|
1042
1129
|
vortex db get-table bettrackr invoice --app-id 9
|
|
1043
1130
|
```
|
|
1044
1131
|
|
|
1045
|
-
`db query` sends the
|
|
1132
|
+
`db query` sends the SQL as given, apart from adding `LIMIT n` (default 10) to a single
|
|
1046
1133
|
`SELECT` that has none - a full page of rows is flagged as possibly truncated. There is no
|
|
1047
|
-
`--update` flag: the gateway
|
|
1048
|
-
`
|
|
1049
|
-
|
|
1134
|
+
`--update` flag: the gateway picks the role - one `SELECT` (no `INTO`), `EXPLAIN` (no
|
|
1135
|
+
`ANALYZE`) or `SHOW` needs `GatewayDBRead`; any other SQL - DML, DDL including `DROP` and
|
|
1136
|
+
`TRUNCATE`, `ANALYZE`, `WITH`, several statements - needs `GatewayDBWrite` (gateway 0.4.0+).
|
|
1137
|
+
webdesign runs the body with one `Statement.execute()`: DDL replies `0 row(s) affected`, and
|
|
1138
|
+
for several statements the reply is the first one's result (all of them run). A numeric `DB`
|
|
1139
|
+
is one request; a name is two.
|
|
1050
1140
|
|
|
1051
1141
|
The `create-`/`update-`/`delete-` table and column commands record design-time definitions in
|
|
1052
1142
|
the Puakma data dictionary (the PMATABLE/ATTRIBUTE tables). They **never run DDL** - deletes
|