@nongt/visql 0.6.0 → 0.7.0
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.
- package/README.md +11 -1
- package/dist/{PipelineEditor-6fohlut2.js → PipelineEditor-9-9xOJcB.js} +4026 -3892
- package/dist/{core-api-Bg_I2ak0.js → core-api-BsEMnDQ1.js} +21 -21
- package/dist/core.js +3 -3
- package/dist/index.js +5 -5
- package/dist/{issueLocation-CD9XckYv.js → issueLocation-732-e0B8.js} +819 -804
- package/dist/mui.js +225 -207
- package/dist/{schema-z95dxLxu.js → schema-DFC26AhZ.js} +142 -126
- package/dist/sql-import.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/adapters/mui/components.d.ts +8 -1
- package/dist/types/core/DialectContext.d.ts +1 -2
- package/dist/types/core/dialectSupport.d.ts +6 -0
- package/dist/types/core/i18n/defaultMessages.d.ts +2 -0
- package/dist/types/core/i18n/messages.d.ts +1 -0
- package/dist/types/core/schema.d.ts +19 -0
- package/dist/types/core/tablePickerOptions.d.ts +75 -0
- package/dist/types/core/ui/index.d.ts +6 -0
- package/dist/types/core/ui/types.d.ts +16 -0
- package/dist/types/core-api.d.ts +1 -1
- package/dist/types/features/queryEditor/PipelineEditor.d.ts +15 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -152,6 +152,13 @@ back by that key, and outside the sub query that column is join-only too.
|
|
|
152
152
|
`validateQuery` reports a key used anywhere else as `joinOnlyColumn`, an
|
|
153
153
|
error, so your server refuses what the editor wouldn't offer.
|
|
154
154
|
|
|
155
|
+
A large catalog is easier to pick from in groups. Give a table a `group`
|
|
156
|
+
(its business area, say) and a `description`, and the table pickers list
|
|
157
|
+
the tables under a heading per group, with the description under each
|
|
158
|
+
label. You can also draw the options yourself, add your own button beside
|
|
159
|
+
each picker, or replace the picker with your own.
|
|
160
|
+
[Helping users find a table](docs/table-pickers.md) has the details.
|
|
161
|
+
|
|
155
162
|
Relations also tell the editor which side of a join has many rows. Joining
|
|
156
163
|
`orders` to `order_items` repeats each order once per item, so a SUM of the
|
|
157
164
|
order totals comes out too high without any error. The editor warns about
|
|
@@ -285,7 +292,7 @@ writing the SQL, and the contract fixtures to run in CI.
|
|
|
285
292
|
| `schema` | `DatabaseSchema` | **Required.** Tables, columns and relations. |
|
|
286
293
|
| `value` / `defaultValue` | `QueryValue \| null` | The query, controlled or uncontrolled. |
|
|
287
294
|
| `onChange` | `(query: QueryValue) => void` | Called on every edit, undo and redo. |
|
|
288
|
-
| `ref` | `Ref<QueryBuilderHandle>` | `resetHistory()`, `goToIssue(issue)` to take the user to a problem, and `
|
|
295
|
+
| `ref` | `Ref<QueryBuilderHandle>` | `resetHistory()`, `goToIssue(issue)` to take the user to a problem, `run()`, and `addTable(name, { as })` to add a table from your own page. |
|
|
289
296
|
| `readOnly` | `boolean` | Look around the query without changing it. |
|
|
290
297
|
| `tableFilter` | `(table) => boolean` | Tables this user may see. They're never added automatically either. |
|
|
291
298
|
| `columnFilter` | `(table, column) => boolean` | Columns this user may see. |
|
|
@@ -415,6 +422,9 @@ types work with TypeScript's older `moduleResolution: "node"` as well as
|
|
|
415
422
|
query.
|
|
416
423
|
- [Showing the SQL and problems](docs/sql-preview.md): a SQL view linked to
|
|
417
424
|
the editor both ways, and a problems list of your own.
|
|
425
|
+
- [Helping users find a table](docs/table-pickers.md): grouping the table
|
|
426
|
+
pickers, a description for each table, your own options, buttons or
|
|
427
|
+
picker, and adding a table from your own page.
|
|
418
428
|
- [UI adapters](docs/ui-adapters.md): using a component library other than
|
|
419
429
|
MUI.
|
|
420
430
|
- [`docs/design/`](docs/design): why some things work the way they do.
|