+
Referenced table
+
+ ({
+ label: fullNameToLabel(tbl),
+ value: fullNameToString(tbl),
+ }))}
+ on:change={e => {
+ if (e.detail) {
+ const name = fullNameFromString(e.detail);
+ refTableName = name.pureName;
+ refSchemaName = name.schemaName;
+ }
+ }}
+ />
+
+
+
+ {#key column.columnName}
+ ({
+ label: col.columnName,
+ value: col.columnName,
+ }))}
+ on:change={e => {
+ if (e.detail) {
+ columns = columns.map((col, i) => (i == index ? { ...col, columnName: e.detail } : col));
+ }
+ }}
+ />
+ {/key}
+
+
+ {#key column.refColumnName}
+ ({
+ label: col.columnName,
+ value: col.columnName,
+ }))}
+ on:change={e => {
+ if (e.detail) {
+ columns = columns.map((col, i) => (i == index ? { ...col, refColumnName: e.detail } : col));
+ }
+ }}
+ />
+ {/key}
+
+
+ {
+ const x = [...columns];
+ x.splice(index, 1);
+ columns = x;
+ }}
+ />
+
+