mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 00:16:00 +00:00
query history - prepare
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
findReplace: true,
|
||||
executeAdditionalCondition: () => getCurrentEditor()?.hasConnection(),
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -143,9 +144,18 @@
|
||||
}
|
||||
busy = true;
|
||||
timerLabel.start();
|
||||
const sql = selectedText || $editorValue;
|
||||
await axiosInstance.post('sessions/execute-query', {
|
||||
sesid,
|
||||
sql: selectedText || $editorValue,
|
||||
sql,
|
||||
});
|
||||
await axiosInstance.post('query-history/write', {
|
||||
data: {
|
||||
sql,
|
||||
conid,
|
||||
database,
|
||||
date: new Date().getTime(),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -233,6 +243,7 @@
|
||||
{ command: 'query.replace' },
|
||||
];
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<VerticalSplitter isSplitter={visibleResultTabs}>
|
||||
|
||||
Reference in New Issue
Block a user