дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 19:25:54 +02:00
Initial open-source release
Claude-Session: https://claude.ai/code/session_01B65qLEKnkeYTGdbwhLpjCu
Цей коміт міститься в:
коміт
9a2025b76e
2034 files changed
+243381
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import type { EditorInput } from "@/workbench/contributions";
|
||||
|
||||
export const TABLE_KIND = "db-table";
|
||||
|
||||
export interface TableRef {
|
||||
id: string;
|
||||
schema: string;
|
||||
table: string;
|
||||
}
|
||||
|
||||
export function tableTitle(input: EditorInput): string {
|
||||
return (input.data as TableRef).table;
|
||||
}
|
||||
|
||||
export function tableInput(id: string, schema: string, table: string): EditorInput {
|
||||
const data: TableRef = { id, schema, table };
|
||||
return { kind: TABLE_KIND, key: `${TABLE_KIND}:${id}:${schema}.${table}`, data };
|
||||
}
|
||||
Reference in new issue
Заблокувати користувача