easysql/README.md
2025-12-29 18:35:04 +08:00

124 lines
4.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 🗄️ EasySQL
<div align="center">
![EasySQL](https://img.shields.io/badge/EasySQL-v1.0-06b6d4?style=for-the-badge)
![Electron](https://img.shields.io/badge/Electron-28-47848f?style=for-the-badge&logo=electron)
![React](https://img.shields.io/badge/React-18-61dafb?style=for-the-badge&logo=react)
![TypeScript](https://img.shields.io/badge/TypeScript-5-3178c6?style=for-the-badge&logo=typescript)
**现代化多数据库管理工具**
</div>
---
## ✨ 特性
- 🎨 **精美 UI** - 基于 React + Tailwind CSS深空科技风格
-**高性能** - Electron + Vite启动快速
- 🔌 **多数据库** - 支持 MySQL、PostgreSQL、SQLite、MongoDB、Redis 等
- 🔐 **SSH 隧道** - 安全连接远程数据库
- 📝 **SQL 编辑器** - 语法高亮、快捷执行
## 🗃️ 支持的数据库
| 数据库 | 状态 |
|--------|------|
| 🐬 MySQL | ✅ |
| 🐘 PostgreSQL | ✅ |
| 💾 SQLite | ✅ |
| 🍃 MongoDB | ✅ |
| ⚡ Redis | ✅ |
| 📊 SQL Server | 🔜 |
| 🔶 Oracle | 🔜 |
| 🦭 MariaDB | ✅ |
| ❄️ Snowflake | 🔜 |
## 🚀 快速开始
### 环境要求
- Node.js 18+
- npm 或 yarn
### 安装
```bash
# 克隆项目
git clone https://github.com/your-repo/easysql.git
cd easysql
# 安装依赖
npm install
# 开发模式运行
npm run dev
# 构建应用
npm run build
```
## 📸 界面预览
```
┌─────────────────────────────────────────────────────────────────┐
│ 🗄️ EasySQL ─ □ ✕ │
├────────────────┬────────────────────────────────────────────────┤
│ │ 🏠 欢迎 │ 📝 MySQL │ 📝 查询2 │ + │
│ + 新建连接 │ ┌──────────────────────────────────────────┐ │
│ │ │ │ │
│ ─ 连接 ─────── │ │ 🗄️ EasySQL │ │
│ │ │ 现代化多数据库管理工具 │ │
│ 🐬 MySQL本地 │ │ │ │
│ 🐘 PostgreSQL │ │ [ 开始查询 ] │ │
│ 🍃 MongoDB │ │ │ │
│ │ │ 🐬 🐘 💾 🍃 ⚡ 📊 │ │
│ ─ 数据库 ───── │ │ MySQL PG SQLite Mongo Redis ... │ │
│ │ └──────────────────────────────────────────┘ │
│ 🗃️ mydb │ │
│ 🗃️ testdb │ │
│ │ │
├────────────────┴────────────────────────────────────────────────┤
│ ● 就绪 EasySQL v1.0 │
└─────────────────────────────────────────────────────────────────┘
```
## 🛠️ 技术栈
- **框架**: Electron 28 + React 18
- **语言**: TypeScript 5
- **样式**: Tailwind CSS 3
- **构建**: Vite 5
- **数据库驱动**: mysql2, pg, better-sqlite3, mongodb, redis
## 📁 项目结构
```
easysql/
├── electron/ # Electron 主进程
│ ├── main.ts # 主进程入口
│ ├── preload.ts # 预加载脚本
│ └── database.ts # 数据库连接管理
├── src/ # React 前端
│ ├── components/ # UI 组件
│ ├── App.tsx # 主应用
│ ├── types.ts # 类型定义
│ └── index.css # 全局样式
├── index.html
├── package.json
├── tailwind.config.js
├── tsconfig.json
└── vite.config.ts
```
## 📄 License
MIT
---
<div align="center">
Made with ❤️ using Electron + React
</div>