feat(structure): add view data entry to the DDL structure tab
This commit is contained in:
15 files changed
+41
-4
No files matched your search
@@ -11034,7 +11034,7 @@ function copyDdl() {
|
||||
|
||||
function openTableStructureEditor() {
|
||||
if (!props.connectionId || !props.database || !props.tableMeta?.tableName || !canOpenTableStructureEditor.value) return;
|
||||
queryStore.openTableStructure(props.connectionId, props.database, props.tableMeta.schema, props.tableMeta.tableName, activeTableInfoTab.value, undefined, props.tableMeta.catalog);
|
||||
queryStore.openTableStructure(props.connectionId, props.database, props.tableMeta.schema, props.tableMeta.tableName, activeTableInfoTab.value, undefined, props.tableMeta.catalog, (props.tableMeta.tableType || "").toUpperCase() === "VIEW" ? "view" : "table");
|
||||
}
|
||||
|
||||
function toggleDdlWrap() {
|
||||
|
||||
+1
-1
@@ -167,7 +167,7 @@ describe("DataGrid edit-table-structure shortcut", () => {
|
||||
expect(event.defaultPrevented).toBe(true);
|
||||
expect(bubbled).not.toHaveBeenCalled();
|
||||
expect(openTableStructure).toHaveBeenCalledOnce();
|
||||
expect(openTableStructure).toHaveBeenCalledWith("connection-1", "app", "public", "users", "ddl", undefined, "warehouse");
|
||||
expect(openTableStructure).toHaveBeenCalledWith("connection-1", "app", "public", "users", "ddl", undefined, "warehouse", "table");
|
||||
});
|
||||
|
||||
it("uses a configured shortcut and leaves the default key untouched", async () => {
|
||||
|
||||
Reference in new issue
Block a user