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.
Common errors
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';
Warnings
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.
Install
npm install dbgate yarn add dbgate pnpm add dbgate Imports
- default wrong
const dbgate = require('dbgate')correctimport dbgate from 'dbgate' - DbGateServer wrong
const { DbGateServer } = require('dbgate')correctimport { DbGateServer } from 'dbgate' - DbGateClient wrong
import DbGateClient from 'dbgate'correctimport { DbGateClient } from 'dbgate'
Quickstart
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'));