Skip to content
ุงู„ู…ุดุงุฑูŠุน

ุญูˆู„

๐Ÿš€A modern, web-based MySQL management tool for GMSSH โ€” visual database operations, inline editing, SQL editor, import/export, and table designer. Built with Vue 3 + Go

ุงู„ุจูŠุงู†ุงุช ูˆุงู„ุชุญู„ูŠู„ุงุช

ูƒูŠู ุชูู‚ุงุณ ู‡ุฐู‡ ุงู„ุฃุฑู‚ุงู…

ุงู„ู†ู…ูˆ ุงู„ู…ู‚ุงุณ ู„ู„ู†ุฌูˆู…

ุฎู„ุงู„ 24 ุณุงุนุฉ
ู 
ุฎู„ุงู„ 7 ุฃูŠุงู…
ุฌุงุฑู ุฌู…ุน ุงู„ุณุฌู„
ุฎู„ุงู„ 15 ูŠูˆู…ู‹ุง
ุฌุงุฑู ุฌู…ุน ุงู„ุณุฌู„
ุฎู„ุงู„ ุดู‡ุฑ
ุฌุงุฑู ุฌู…ุน ุงู„ุณุฌู„

ุชุบูŠู‘ุฑ ุตุงููŠ ุงู„ู†ุฌูˆู… ุฎู„ุงู„ ูุชุฑุงุช ู…ุชุฏุงุฎู„ุฉุŒ ูˆู„ูŠุณ ู…ุฌู…ูˆุนู‹ุง ูŠูˆู…ูŠู‹ุง. ุชุจู‚ู‰ ุงู„ู‚ูŠุงุณุงุช ุงู„ู…ูู‚ูˆุฏุฉ ูุงุฑุบุฉ. ุงู„ู†ุฌูˆู… ุชู‚ูŠุณ ุงู„ุงู‡ุชู…ุงู… ู„ุง ุฌูˆุฏุฉ ุงู„ุจุฑู…ุฌูŠุงุช.

๐Ÿ—„๏ธ DBStudio โ€” Database Manager

Part of the GMSSH (ๆž็›ฎๆกŒ้ข) ecosystem ยท Website https://www.gm.cn ยท Docs https://doc.gm.cn ยท Community https://hub.gm.cn

A modern, web-based MySQL management tool for GMSSH. Lightweight, fast, and built for server operations.

DBStudio Icon

DBStudio is a database management plugin for the GMSSH desktop system, providing a visual database experience similar to Navicat / DBeaver, purpose-built for server administration.

๐Ÿ“– ไธญๆ–‡ๆ–‡ๆกฃ


โœจ Features

Connection Management

  • ๐Ÿ” AES-256-GCM encrypted credential storage
  • ๐Ÿ”Œ Multiple concurrent connections with automatic pool recycling
  • โœ… Connection testing & one-click save

Data Operations

  • ๐Ÿ“Š Paginated data browsing (Grid View)
  • ๐Ÿ“ Inline editing โ€” modify data directly in the grid
  • ๐Ÿ“‹ Form View โ€” view and edit individual records vertically
  • โž• Add rows / ๐Ÿ—‘๏ธ Delete rows with batch commit
  • ๐Ÿ” Safe CRUD for tables with and without primary keys

SQL Query

  • โšก SQL Editor powered by CodeMirror 6
  • ๐Ÿ“œ Query history with re-execution support
  • ๐ŸŽฏ Multi-statement execution, Ctrl+Enter shortcut

Table Structure Designer

  • ๐Ÿ—๏ธ Visual structure editor (columns, indexes, foreign keys)
  • ๐Ÿ“ DDL preview with real-time diff comparison
  • ๐Ÿ”„ Auto-generated ALTER TABLE statements

Import / Export

  • ๐Ÿ“ค Database export (mysqldump compatible + pure Go fallback)
  • ๐Ÿ“ฅ SQL file import with automatic database creation
  • ๐Ÿ“‘ Table-level data export (CSV / JSON / SQL formats)
  • ๐Ÿ“‹ Task management panel with real-time progress tracking

Database Overview

  • ๐Ÿ“ˆ Table/view listing with row count, size, and engine info
  • ๐Ÿ”Ž Object search & filter
  • ๐Ÿ“„ Quick DDL preview & copy

Internationalization

  • ๐ŸŒ Chinese / English dual-language support
  • ๐Ÿ”ค Auto-detects GMSSH system language

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚           GMSSH Desktop (Host)          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚         Iframe (Plugin)           โ”‚  โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚  โ”‚
โ”‚  โ”‚  โ”‚   Vue 3  โ”‚โ—„โ”€โ”€โ–บโ”‚  Go Backend โ”‚  โ”‚  โ”‚
โ”‚  โ”‚  โ”‚ Naive UI โ”‚    โ”‚  JSON-RPC   โ”‚  โ”‚  โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                            โ”‚            โ”‚
โ”‚                    Unix Socket          โ”‚
โ”‚                    (app.sock)           โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ”‚    MySQL     โ”‚
              โ”‚   Server     โ”‚
              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Layer Tech Stack
Frontend Vue 3 + Naive UI + CodeMirror 6 + Pinia
Backend Go + simplejrpc-go (JSON-RPC over Unix Socket)
Communication GMSSH proxy โ†’ Unix Socket โ†’ JSON-RPC
Storage AES-256-GCM encrypted JSON (connection configs)

๐Ÿ“ Project Structure

DBStudio/
โ”œโ”€โ”€ backend/                 # Go backend
โ”‚   โ”œโ”€โ”€ handler/rpc/         # JSON-RPC route handlers
โ”‚   โ”œโ”€โ”€ service/             # Business logic layer
โ”‚   โ”œโ”€โ”€ pkg/
โ”‚   โ”‚   โ”œโ”€โ”€ config/          # Connection store (encrypted)
โ”‚   โ”‚   โ”œโ”€โ”€ db/              # Database abstraction layer
โ”‚   โ”‚   โ”œโ”€โ”€ files/           # File utilities
โ”‚   โ”‚   โ””โ”€โ”€ rpcutil/         # RPC utilities
โ”‚   โ”œโ”€โ”€ i18n/                # Backend i18n
โ”‚   โ”œโ”€โ”€ Makefile             # Build script
โ”‚   โ””โ”€โ”€ main.go              # Entry point
โ”‚
โ”œโ”€โ”€ www/                     # Vue frontend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/      # Core components
โ”‚   โ”‚   โ”œโ”€โ”€ views/           # Page layouts
โ”‚   โ”‚   โ”œโ”€โ”€ stores/          # Pinia state management
โ”‚   โ”‚   โ”œโ”€โ”€ styles/          # CSS design system
โ”‚   โ”‚   โ”œโ”€โ”€ i18n/            # Frontend i18n
โ”‚   โ”‚   โ””โ”€โ”€ utils/           # API client & SDK wrappers
โ”‚   โ””โ”€โ”€ vite.config.js
โ”‚
โ””โ”€โ”€ docs/                    # Design docs
    โ””โ”€โ”€ designs/             # Design specs (tokens, components)

๐Ÿš€ Getting Started

Prerequisites

  • Go โ‰ฅ 1.21
  • Node.js โ‰ฅ 18 + pnpm
  • GMSSH desktop system (runtime environment)

Development

# 1. Frontend dev server
cd www
pnpm install
pnpm dev          # http://localhost:5173

# 2. Backend dev server
cd backend
go mod tidy
go run main.go

Build & Package

cd backend

make help         # Show all build targets
make amd64        # Build linux/amd64
make arm64        # Build linux/arm64
make package      # Build frontend + dual-arch packages (tar.gz)

Build output structure:

build/linux-amd64/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ bin/      # Backend binary + config + i18n
โ”‚   โ””โ”€โ”€ www/      # Frontend static files
โ”œโ”€โ”€ data/         # Runtime data
โ”œโ”€โ”€ logs/         # Logs
โ””โ”€โ”€ tmp/          # Temporary files

๐Ÿ”Œ GMSSH Integration

DBStudio runs as a GMSSH external application and communicates with the host via:

// Frontend communicates with GMSSH through window.$gm
window.$gm.request(url, options)   // API request proxy
window.$gm.execShell({ cmd })      // Remote command execution
window.$gm.chooseFile(callback)    // File picker
window.$gm.message.success(msg)    // UI feedback
window.$gm.userName                // Current logged-in user

๐Ÿ“ธ Screenshots

Coming soon


๐Ÿค Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork this repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Commit your changes: git commit -m 'feat: add some feature'
  4. Push to the branch: git push origin feature/your-feature
  5. Open a Pull Request

Development Guidelines

  • Backend: Layered architecture handler โ†’ service โ†’ pkg, i18n error messages
  • Frontend: Follow design specs under docs/designs/ (tokens, typography, spacing)
  • Commits: Use Conventional Commits

๐Ÿ“„ License

MIT ยฉ GMSSH


Built with โค๏ธ for the GMSSH ecosystem

ุงุณุชูƒุดู ู…ุดุงุฑูŠุน ู…ุดุงุจู‡ุฉ ูˆู…ุฑุชุจุทุฉ

ุฌุงุฑู ุงู„ุชุญู…ูŠู„โ€ฆ