GMSSH/DBStudio
ุญูู
๐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 ููู ูุง
- ุฌุงุฑู ุฌู ุน ุงูุณุฌู
- ุฎูุงู ุดูุฑ
- ุฌุงุฑู ุฌู ุน ุงูุณุฌู
ุชุบููุฑ ุตุงูู ุงููุฌูู ุฎูุงู ูุชุฑุงุช ู ุชุฏุงุฎูุฉุ ูููุณ ู ุฌู ูุนูุง ููู ููุง. ุชุจูู ุงูููุงุณุงุช ุงูู ูููุฏุฉ ูุงุฑุบุฉ. ุงููุฌูู ุชููุณ ุงูุงูุชู ุงู ูุง ุฌูุฏุฉ ุงูุจุฑู ุฌูุงุช.
README.md
ุงูุฃุตู๐๏ธ 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 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+Entershortcut
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:
- Fork this repository
- Create a feature branch:
git checkout -b feature/your-feature - Commit your changes:
git commit -m 'feat: add some feature' - Push to the branch:
git push origin feature/your-feature - 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
Built with โค๏ธ for the GMSSH ecosystem
ุงุณุชูุดู ู ุดุงุฑูุน ู ุดุงุจูุฉ ูู ุฑุชุจุทุฉ
ุฌุงุฑู ุงูุชุญู ููโฆ