pgkiln 0.54.0 → 0.56.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/SECURITY.md +2 -0
- package/db/migrations/127_builder_language.sql +16 -0
- package/docs/apex-feature-parity.md +7 -7
- package/docs/guide/03-builder.md +30 -3
- package/docs/guide/04-pages-and-regions.md +26 -0
- package/docs/guide/12-development.md +41 -0
- package/examples/gallery/README.md +4 -0
- package/examples/gallery/gallery.json +8 -0
- package/examples/gallery/samples/sample-approvals.sql +153 -0
- package/examples/gallery/samples/sample-data-loading.sql +142 -0
- package/examples/gallery/samples/sample-files.sql +160 -0
- package/examples/gallery/samples/sample-maps.sql +175 -0
- package/examples/gallery/samples/sample-reporting.sql +4 -3
- package/package.json +1 -1
- package/public/builder.css +18 -0
- package/public/worksheet.css +3 -2
- package/src/builder/advisor.ts +1 -1
- package/src/builder/ai-agents.ts +5 -5
- package/src/builder/ai-builder.ts +3 -3
- package/src/builder/api.ts +1 -1
- package/src/builder/autorest.ts +2 -2
- package/src/builder/availability.ts +1 -1
- package/src/builder/backups.ts +1 -1
- package/src/builder/changelog.ts +1 -1
- package/src/builder/data-modeler.ts +4 -4
- package/src/builder/data-security.ts +1 -1
- package/src/builder/dataload.ts +1 -1
- package/src/builder/datapump.ts +1 -1
- package/src/builder/ddl-tools.ts +2 -2
- package/src/builder/designer.ts +134 -124
- package/src/builder/diagnostics.ts +2 -2
- package/src/builder/errors.ts +10 -12
- package/src/builder/feedback.ts +1 -1
- package/src/builder/globalization.ts +1 -1
- package/src/builder/home.ts +59 -57
- package/src/builder/i18n/de.ts +675 -0
- package/src/builder/i18n/en.ts +678 -0
- package/src/builder/i18n/es.ts +675 -0
- package/src/builder/i18n/fr.ts +675 -0
- package/src/builder/i18n/nl.ts +675 -0
- package/src/builder/i18n/pt.ts +675 -0
- package/src/builder/i18n.ts +116 -0
- package/src/builder/language.ts +74 -0
- package/src/builder/launchpad.ts +13 -8
- package/src/builder/object-browser.ts +1 -1
- package/src/builder/plugins.ts +1 -1
- package/src/builder/querybuilder.ts +1 -1
- package/src/builder/quicksql.ts +1 -1
- package/src/builder/region-help.ts +1 -1
- package/src/builder/region-settings.ts +3 -1
- package/src/builder/rest-modules.ts +2 -2
- package/src/builder/routes.ts +88 -66
- package/src/builder/sampledata.ts +1 -1
- package/src/builder/scheduling.ts +1 -1
- package/src/builder/scripts.ts +1 -1
- package/src/builder/search.ts +1 -1
- package/src/builder/shared.ts +5 -5
- package/src/builder/sql-charts.ts +2 -2
- package/src/builder/sql-monitor.ts +2 -2
- package/src/builder/sql-tools.ts +6 -0
- package/src/builder/sql-utilities.ts +3 -3
- package/src/builder/sql.ts +24 -22
- package/src/builder/static-files.ts +1 -1
- package/src/builder/subscriptions.ts +1 -1
- package/src/builder/supporting.ts +1 -1
- package/src/builder/table-editor.ts +1 -1
- package/src/builder/team.ts +7 -5
- package/src/builder/themeroller.ts +1 -1
- package/src/builder/top-sql.ts +1 -1
- package/src/builder/ui.ts +87 -77
- package/src/builder/unload.ts +1 -1
- package/src/builder/wizards.ts +1 -1
- package/src/builder/workflow-migrate.ts +1 -1
- package/src/builder/workingcopies.ts +2 -2
- package/src/builder/worksheet.ts +1 -1
- package/src/builder/workspace-home.ts +62 -59
- package/src/builder/workspaces.ts +2 -1
- package/src/i18n/ar.ts +1 -0
- package/src/i18n/cs.ts +1 -0
- package/src/i18n/da.ts +1 -0
- package/src/i18n/de.ts +1 -0
- package/src/i18n/el.ts +1 -0
- package/src/i18n/es.ts +1 -0
- package/src/i18n/fi.ts +1 -0
- package/src/i18n/fr.ts +1 -0
- package/src/i18n/he.ts +1 -0
- package/src/i18n/it.ts +1 -0
- package/src/i18n/ja.ts +1 -0
- package/src/i18n/ko.ts +1 -0
- package/src/i18n/nb.ts +1 -0
- package/src/i18n/pl.ts +1 -0
- package/src/i18n/pt.ts +1 -0
- package/src/i18n/ru.ts +1 -0
- package/src/i18n/sv.ts +1 -0
- package/src/i18n/tr.ts +1 -0
- package/src/i18n/uk.ts +1 -0
- package/src/i18n/zh.ts +1 -0
- package/src/i18n.ts +2 -0
- package/src/runtime/ai-filter.ts +22 -6
- package/src/runtime/ask-facets.ts +72 -0
- package/src/runtime/ir-plan.ts +17 -3
- package/src/runtime/smart-filters.ts +36 -2
package/src/builder/dataload.ts
CHANGED
|
@@ -139,7 +139,7 @@ export function resultHtml(r: LoadResult, failed: boolean) {
|
|
|
139
139
|
|
|
140
140
|
export async function dataLoadRoutes(app: FastifyInstance) {
|
|
141
141
|
const page = (s: Session, reply: FastifyReply, main: Raw) =>
|
|
142
|
-
send(reply, s, shell(s, 'Load Data', [['SQL Workshop', `${BASE}/sql`], ['Load Data']], html`<h1 class="u-mb1">SQL Workshop</h1>${workshopTabs('load')}${main}`, 'sql'));
|
|
142
|
+
send(reply, s, shell(s, 'Load Data', [['SQL Workshop', `${BASE}/sql`], ['Load Data']], html`<h1 class="u-mb1">SQL Workshop</h1>${workshopTabs('load', s)}${main}`, 'sql'));
|
|
143
143
|
|
|
144
144
|
// step 1: choose a file
|
|
145
145
|
app.get(`${BASE}/sql/load`, async (req: Req, reply) => {
|
package/src/builder/datapump.ts
CHANGED
|
@@ -36,7 +36,7 @@ async function admin(req: Req, reply: FastifyReply) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
const page = (reply: FastifyReply, s: Session, title: string, trail: [string, string?][], body: Raw, code = 200) =>
|
|
39
|
-
send(reply.code(code), s, shell(s, title, crumbs(...trail), html`<h1 class="u-mb1">SQL Workshop</h1>${workshopTabs('datapump')}${body}`, 'sql'));
|
|
39
|
+
send(reply.code(code), s, shell(s, title, crumbs(...trail), html`<h1 class="u-mb1">SQL Workshop</h1>${workshopTabs('datapump', s)}${body}`, 'sql'));
|
|
40
40
|
|
|
41
41
|
export const size = (n: number | null) =>
|
|
42
42
|
n === null ? '' : n < 1024 ? `${n} B` : n < 1024 ** 2 ? `${(n / 1024).toFixed(1)} KB` : n < 1024 ** 3 ? `${(n / 1024 ** 2).toFixed(1)} MB` : `${(n / 1024 ** 3).toFixed(2)} GB`;
|
package/src/builder/ddl-tools.ts
CHANGED
|
@@ -65,7 +65,7 @@ export async function ddlToolRoutes(app: FastifyInstance) {
|
|
|
65
65
|
result = html`<div class="alert alert-error" role="alert">${(e as Error).message}</div>`;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
const main = html`<h1 class="u-mb1">SQL Workshop</h1>${workshopTabs('ddl')}
|
|
68
|
+
const main = html`<h1 class="u-mb1">SQL Workshop</h1>${workshopTabs('ddl', s)}
|
|
69
69
|
<p class="muted">The DDL of a schema's objects, from the database catalog, in an order that runs: types, sequences, tables, functions, views, constraints, indexes, triggers, row level security, comments and grants (APEX: Generate DDL). Objects of extensions are left out.</p>
|
|
70
70
|
<form method="get" class="u-mb1">
|
|
71
71
|
<div class="form-grid">${schemaSelect('schema', 'Schema', schemas, schema)}</div>
|
|
@@ -114,7 +114,7 @@ export async function ddlToolRoutes(app: FastifyInstance) {
|
|
|
114
114
|
result = html`<div class="alert alert-error" role="alert">${(e as Error).message}</div>`;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
const main = html`<h1 class="u-mb1">SQL Workshop</h1>${workshopTabs('compare')}
|
|
117
|
+
const main = html`<h1 class="u-mb1">SQL Workshop</h1>${workshopTabs('compare', s)}
|
|
118
118
|
<p class="muted">Compares the objects of two schemas of this database by their DDL (APEX: Schema Comparison), e.g. a development copy with the schema it came from, and writes a script that makes the target like the source. The order of a table's columns is not compared.</p>
|
|
119
119
|
<form method="get" class="u-mb1">
|
|
120
120
|
<div class="form-grid">${schemaSelect('source', 'Source', schemas, source)}${schemaSelect('target', 'Target (to make like the source)', schemas, target)}</div>
|