/
vshmidt
/
cloudbeaver
Обзор
Документация
Войти
/
vshmidt
/
cloudbeaver
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
webapp/packages/plugin-sql-editor/src/SqlDataSource/SqlDataSourceHistory/ISqlDataSourceHistory.ts
24 строки
788 B
sergeyteleshev
[CB] SQL editor - ctrl+z during autosave scrolls the script to the top #5645 (#3470)
23 июн 2025, 14:44
Не верифицирован
23 июн 2025, 14:44
beecc84
Код
Авторство
О чём код?
/* * CloudBeaver - Cloud Database Manager * Copyright (C) 2020-2025 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import type { ISyncExecutor } from '@cloudbeaver/core-executor'; import type { ISqlDataSourceHistoryState } from './ISqlDataSourceHistoryState.js'; import type { ISqlEditorCursor } from '../ISqlDataSource.js'; export interface ISqlDataSourceHistory { readonly state: ISqlDataSourceHistoryState; readonly onNavigate: ISyncExecutor<{ value: string; cursor?: ISqlEditorCursor; }>; add(value: string, source?: string, cursor?: ISqlEditorCursor): void; undo(): void; redo(): void; restore(data: ISqlDataSourceHistoryState): void; clear(): void; }