@eclipse-lyra/extension-sqleditor 0.7.57 → 0.7.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,17 @@
1
1
  import { extensionRegistry } from "@eclipse-lyra/core";
2
2
  import pkg from "../package.json";
3
- const TARGET_SQL_ADAPTERS = "system.sqladapters";
3
+ //#region src/sql-api.ts
4
+ var TARGET_SQL_ADAPTERS = "system.sqladapters";
5
+ //#endregion
6
+ //#region src/index.ts
4
7
  extensionRegistry.registerExtension({
5
- id: pkg.name,
6
- name: "SQL Editor",
7
- description: "Generic SQL editor with pluggable backends",
8
- loader: () => import("./sqleditor-extension-BFAaVI-7.js"),
9
- icon: "database"
8
+ id: pkg.name,
9
+ name: "SQL Editor",
10
+ description: "Generic SQL editor with pluggable backends",
11
+ loader: () => import("./sqleditor-extension-MEwwujrA.js"),
12
+ icon: "database"
10
13
  });
11
- export {
12
- TARGET_SQL_ADAPTERS
13
- };
14
- //# sourceMappingURL=index.js.map
14
+ //#endregion
15
+ export { TARGET_SQL_ADAPTERS };
16
+
17
+ //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/sql-api.ts","../src/index.ts"],"sourcesContent":["export const TARGET_SQL_ADAPTERS = 'system.sqladapters';\n\nexport interface SqlConnectionInfo {\n id: string | null;\n label: string;\n isDefault?: boolean;\n}\n\n/**\n * Describes a single database extension that can be managed through the SQL editor.\n *\n * Implementations should return the same identifiers from {@link SqlDatabase.listDbExtensions}\n * and accept them in {@link SqlDatabase.enableDbExtension} / {@link SqlDatabase.disableDbExtension}.\n */\nexport interface SqlDatabaseExtensionInfo {\n id: string;\n label: string;\n description?: string;\n /**\n * Indicates whether the extension is currently installed or enabled for the active database\n * connection. Omit or leave false when the adapter cannot determine the installed state.\n */\n installed?: boolean;\n}\n\n/**\n * Additional adapter-specific actions that can be surfaced by the SQL editor UI.\n *\n * These are optional and are not used by the generic extension manager, which relies instead\n * on the extension-related methods on {@link SqlDatabase}.\n */\nexport interface SqlAdapterAction {\n id: string;\n label: string;\n icon?: string;\n run(): Promise<void>;\n}\n\n/**\n * Abstraction for a concrete SQL engine that can be used from the SQL editor.\n *\n * All engines must implement connection management and query execution. Extension management\n * is optional but, when provided, follows the contract documented on the corresponding methods.\n */\nexport interface SqlDatabase {\n readonly engineId: string;\n readonly currentConnectionId: string | null;\n\n listConnections(): Promise<SqlConnectionInfo[]>;\n selectConnection(id: string | null): Promise<void>;\n runQuery(sql: string): Promise<{ columns: string[]; rows: unknown[][] }>;\n\n createConnection?(): Promise<SqlConnectionInfo | null>;\n deleteConnection?(id: string): Promise<void>;\n\n extraActions?: SqlAdapterAction[];\n\n /**\n * Return the list of extensions known to this engine for the currently selected connection.\n *\n * The list should be stable for the active connection and use {@link SqlDatabaseExtensionInfo.installed}\n * to mark which extensions are currently installed or enabled when that information is available.\n */\n listDbExtensions?(): Promise<SqlDatabaseExtensionInfo[]>;\n /**\n * Ensure that the extension identified by {@link SqlDatabaseExtensionInfo.id} is installed\n * and enabled for the current connection. It is safe for implementations to be idempotent.\n */\n enableDbExtension?(id: string): Promise<void>;\n /**\n * Disable or uninstall the given extension for the current connection, if the engine supports it.\n * Adapters that cannot disable extensions should omit this method entirely.\n */\n disableDbExtension?(id: string): Promise<void>;\n\n close(): Promise<void> | void;\n}\n\nexport interface SqlAdapterContribution {\n id: string;\n label: string;\n icon?: string;\n loader: () => Promise<SqlDatabase>;\n}\n\n","import { extensionRegistry } from '@eclipse-lyra/core';\nimport pkg from '../package.json';\nexport type {\n SqlConnectionInfo,\n SqlDatabaseExtensionInfo,\n SqlAdapterAction,\n SqlDatabase,\n SqlAdapterContribution,\n} from './sql-api';\nexport { TARGET_SQL_ADAPTERS } from './sql-api';\n\nextensionRegistry.registerExtension({\n id: pkg.name,\n name: 'SQL Editor',\n description: 'Generic SQL editor with pluggable backends',\n loader: () => import('./sqleditor-extension'),\n icon: 'database',\n});\n\n"],"names":[],"mappings":";;AAAO,MAAM,sBAAsB;ACWnC,kBAAkB,kBAAkB;AAAA,EAClC,IAAI,IAAI;AAAA,EACR,MAAM;AAAA,EACN,aAAa;AAAA,EACb,QAAQ,MAAM,OAAO,mCAAuB;AAAA,EAC5C,MAAM;AACR,CAAC;"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/sql-api.ts","../src/index.ts"],"sourcesContent":["export const TARGET_SQL_ADAPTERS = 'system.sqladapters';\n\nexport interface SqlConnectionInfo {\n id: string | null;\n label: string;\n isDefault?: boolean;\n}\n\n/**\n * Describes a single database extension that can be managed through the SQL editor.\n *\n * Implementations should return the same identifiers from {@link SqlDatabase.listDbExtensions}\n * and accept them in {@link SqlDatabase.enableDbExtension} / {@link SqlDatabase.disableDbExtension}.\n */\nexport interface SqlDatabaseExtensionInfo {\n id: string;\n label: string;\n description?: string;\n /**\n * Indicates whether the extension is currently installed or enabled for the active database\n * connection. Omit or leave false when the adapter cannot determine the installed state.\n */\n installed?: boolean;\n}\n\n/**\n * Additional adapter-specific actions that can be surfaced by the SQL editor UI.\n *\n * These are optional and are not used by the generic extension manager, which relies instead\n * on the extension-related methods on {@link SqlDatabase}.\n */\nexport interface SqlAdapterAction {\n id: string;\n label: string;\n icon?: string;\n run(): Promise<void>;\n}\n\n/**\n * Abstraction for a concrete SQL engine that can be used from the SQL editor.\n *\n * All engines must implement connection management and query execution. Extension management\n * is optional but, when provided, follows the contract documented on the corresponding methods.\n */\nexport interface SqlDatabase {\n readonly engineId: string;\n readonly currentConnectionId: string | null;\n\n listConnections(): Promise<SqlConnectionInfo[]>;\n selectConnection(id: string | null): Promise<void>;\n runQuery(sql: string): Promise<{ columns: string[]; rows: unknown[][] }>;\n\n createConnection?(): Promise<SqlConnectionInfo | null>;\n deleteConnection?(id: string): Promise<void>;\n\n extraActions?: SqlAdapterAction[];\n\n /**\n * Return the list of extensions known to this engine for the currently selected connection.\n *\n * The list should be stable for the active connection and use {@link SqlDatabaseExtensionInfo.installed}\n * to mark which extensions are currently installed or enabled when that information is available.\n */\n listDbExtensions?(): Promise<SqlDatabaseExtensionInfo[]>;\n /**\n * Ensure that the extension identified by {@link SqlDatabaseExtensionInfo.id} is installed\n * and enabled for the current connection. It is safe for implementations to be idempotent.\n */\n enableDbExtension?(id: string): Promise<void>;\n /**\n * Disable or uninstall the given extension for the current connection, if the engine supports it.\n * Adapters that cannot disable extensions should omit this method entirely.\n */\n disableDbExtension?(id: string): Promise<void>;\n\n close(): Promise<void> | void;\n}\n\nexport interface SqlAdapterContribution {\n id: string;\n label: string;\n icon?: string;\n loader: () => Promise<SqlDatabase>;\n}\n\n","import { extensionRegistry } from '@eclipse-lyra/core';\nimport pkg from '../package.json';\nexport type {\n SqlConnectionInfo,\n SqlDatabaseExtensionInfo,\n SqlAdapterAction,\n SqlDatabase,\n SqlAdapterContribution,\n} from './sql-api';\nexport { TARGET_SQL_ADAPTERS } from './sql-api';\n\nextensionRegistry.registerExtension({\n id: pkg.name,\n name: 'SQL Editor',\n description: 'Generic SQL editor with pluggable backends',\n loader: () => import('./sqleditor-extension'),\n icon: 'database',\n});\n\n"],"mappings":";;;AAAA,IAAa,sBAAsB;;;ACWnC,kBAAkB,kBAAkB;CAClC,IAAI,IAAI;CACR,MAAM;CACN,aAAa;CACb,cAAc,OAAO;CACrB,MAAM;CACP,CAAC"}