DbGate

raw JSON →
5.5.7-alpha.33 verified Sat Apr 25 auth: no javascript deprecated

DbGate is an open-source database administration tool with a web interface, supporting multiple databases including MySQL, PostgreSQL, SQLite, MSSQL, and MongoDB. The current stable version is 7.1.9, with frequent releases addressing bugs and security issues. It stands out for its AI features, export capabilities, and cloud integration. As of v7.1.9, the npm package 'dbgate' is deprecated; use 'dbgate-serve' instead.

error Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/dbgate/index.mjs from /path/to/package.json not supported.
cause Using CommonJS require() on an ESM-only package.
fix
Use import statements or set type: 'module' in package.json.
error DbGateServer is not a constructor
cause Using default import instead of named import for DbGateServer.
fix
import { DbGateServer } from 'dbgate';
deprecated Package 'dbgate' is deprecated; use 'dbgate-serve' instead.
fix npm install dbgate-serve and update imports accordingly.
breaking Upgraded to ESM-only module system in v3.0.0.
fix Switch to ES module imports (import/export).
gotcha Requires a running database server; not an embedded library.
fix Ensure database connections are configured correctly.
npm install dbgate
yarn add dbgate
pnpm add dbgate

Sets up a DbGate server using Express. Note that the package has been renamed to 'dbgate-serve'.

const express = require('express');
const { DbGateServer } = require('dbgate-serve');
const app = express();
const server = new DbGateServer({ expressApp: app });
app.listen(3000, () => console.log('DbGate running on port 3000'));