@mostajs/setup 2.0.1 → 2.0.2
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useState, useEffect, useCallback } from 'react';
|
|
6
6
|
/** Dialects that require a JDBC bridge JAR */
|
|
7
|
-
const JDBC_DIALECTS = ['hsqldb', '
|
|
7
|
+
const JDBC_DIALECTS = ['hsqldb', 'db2', 'sybase', 'hana'];
|
|
8
8
|
const DIALECTS = [
|
|
9
9
|
{ key: 'mongodb', name: 'MongoDB', icon: '🍃', defaultPort: 27017, defaultUser: '', defaultHost: 'localhost', requiresAuth: false },
|
|
10
10
|
{ key: 'sqlite', name: 'SQLite', icon: '📄', defaultPort: 0, defaultUser: '', defaultHost: '', requiresAuth: false },
|
|
@@ -12,7 +12,7 @@ const DIALECTS = [
|
|
|
12
12
|
{ key: 'mysql', name: 'MySQL', icon: '🐬', defaultPort: 3306, defaultUser: 'root', defaultHost: 'localhost', requiresAuth: true },
|
|
13
13
|
{ key: 'mariadb', name: 'MariaDB', icon: '🦭', defaultPort: 3306, defaultUser: 'root', defaultHost: 'localhost', requiresAuth: true },
|
|
14
14
|
{ key: 'mssql', name: 'SQL Server', icon: '🟦', defaultPort: 1433, defaultUser: 'sa', defaultHost: 'localhost', requiresAuth: true },
|
|
15
|
-
{ key: 'oracle', name: 'Oracle', icon: '🔴', defaultPort: 1521, defaultUser: 'system', defaultHost: 'localhost', requiresAuth: true
|
|
15
|
+
{ key: 'oracle', name: 'Oracle', icon: '🔴', defaultPort: 1521, defaultUser: 'system', defaultHost: 'localhost', requiresAuth: true },
|
|
16
16
|
{ key: 'cockroachdb', name: 'CockroachDB', icon: '🪳', defaultPort: 26257, defaultUser: 'root', defaultHost: 'localhost', requiresAuth: true },
|
|
17
17
|
{ key: 'db2', name: 'IBM DB2', icon: '🏢', defaultPort: 50000, defaultUser: 'db2inst1', defaultHost: 'localhost', requiresAuth: true, premium: true, jdbc: true },
|
|
18
18
|
{ key: 'hana', name: 'SAP HANA', icon: '💎', defaultPort: 39013, defaultUser: 'SYSTEM', defaultHost: 'localhost', requiresAuth: true, premium: true, jdbc: true },
|
|
@@ -11,7 +11,7 @@ const DIALECT_DEFAULTS = {
|
|
|
11
11
|
postgres: { host: 'localhost', port: 5432, name: 'mydb', user: 'postgres', password: '' },
|
|
12
12
|
mysql: { host: 'localhost', port: 3306, name: 'mydb', user: 'root', password: '' },
|
|
13
13
|
mariadb: { host: 'localhost', port: 3306, name: 'mydb', user: 'root', password: '' },
|
|
14
|
-
oracle: { host: 'localhost', port: 1521, name: '
|
|
14
|
+
oracle: { host: 'localhost', port: 1521, name: 'XEPDB1', user: 'system', password: '' },
|
|
15
15
|
mssql: { host: 'localhost', port: 1433, name: 'mydb', user: 'sa', password: '' },
|
|
16
16
|
cockroachdb: { host: 'localhost', port: 26257, name: 'mydb', user: 'root', password: '' },
|
|
17
17
|
db2: { host: 'localhost', port: 50000, name: 'mydb', user: 'db2inst1', password: '' },
|
|
@@ -27,7 +27,7 @@ const DIALECT_INFO = [
|
|
|
27
27
|
{ key: 'mysql', name: 'MySQL', icon: '🐬' },
|
|
28
28
|
{ key: 'mariadb', name: 'MariaDB', icon: '🦭' },
|
|
29
29
|
{ key: 'mssql', name: 'SQL Server', icon: '🟦' },
|
|
30
|
-
{ key: 'oracle', name: 'Oracle', icon: '🔴'
|
|
30
|
+
{ key: 'oracle', name: 'Oracle', icon: '🔴' },
|
|
31
31
|
{ key: 'cockroachdb', name: 'CockroachDB', icon: '🪳' },
|
|
32
32
|
{ key: 'db2', name: 'IBM DB2', icon: '🏢', premium: true, jdbc: true },
|
|
33
33
|
{ key: 'hana', name: 'SAP HANA', icon: '💎', premium: true, jdbc: true },
|
|
@@ -35,7 +35,7 @@ const DIALECT_INFO = [
|
|
|
35
35
|
{ key: 'spanner', name: 'Cloud Spanner', icon: '☁️', premium: true },
|
|
36
36
|
{ key: 'sybase', name: 'Sybase ASE', icon: '🔷', premium: true, jdbc: true },
|
|
37
37
|
];
|
|
38
|
-
const JDBC_DIALECTS = ['hsqldb', '
|
|
38
|
+
const JDBC_DIALECTS = ['hsqldb', 'db2', 'hana', 'sybase'];
|
|
39
39
|
const DRIVER_HINTS = {
|
|
40
40
|
mongodb: 'npm install mongoose',
|
|
41
41
|
sqlite: 'npm install better-sqlite3',
|
package/dist/lib/setup.js
CHANGED
|
@@ -40,7 +40,8 @@ export async function runInstall(installConfig, setupConfig) {
|
|
|
40
40
|
port: setupConfig.defaultPort,
|
|
41
41
|
});
|
|
42
42
|
// 2. For JDBC dialects, persist bridge port so app always reconnects to the same bridge
|
|
43
|
-
|
|
43
|
+
// Note: Oracle uses native oracledb driver, not JDBC bridge
|
|
44
|
+
const JDBC_DIALECTS = ['hsqldb', 'db2', 'hana', 'sybase'];
|
|
44
45
|
if (JDBC_DIALECTS.includes(installConfig.dialect)) {
|
|
45
46
|
const bridgePort = process.env.MOSTA_BRIDGE_PORT_BASE || '8765';
|
|
46
47
|
extraVars['MOSTA_BRIDGE_PORT_BASE'] = bridgePort;
|
package/package.json
CHANGED