{"id":15002740,"url":"https://github.com/pomzwj/database-export","last_synced_at":"2025-05-16T09:05:52.018Z","repository":{"id":37107083,"uuid":"155941061","full_name":"PomZWJ/database-export","owner":"PomZWJ","description":"基于SpringBoot的开源数据库表结构导出word文档工具","archived":false,"fork":false,"pushed_at":"2025-03-17T07:21:58.000Z","size":74240,"stargazers_count":313,"open_issues_count":8,"forks_count":66,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-16T09:05:43.863Z","etag":null,"topics":["java","mysql","oracle","sqlserver","vue"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PomZWJ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-03T02:06:00.000Z","updated_at":"2025-05-15T09:39:47.000Z","dependencies_parsed_at":"2024-04-27T15:28:28.177Z","dependency_job_id":"4c37b7a9-3686-4bab-bfdc-1a9740f16373","html_url":"https://github.com/PomZWJ/database-export","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PomZWJ%2Fdatabase-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PomZWJ%2Fdatabase-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PomZWJ%2Fdatabase-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PomZWJ%2Fdatabase-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PomZWJ","download_url":"https://codeload.github.com/PomZWJ/database-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501557,"owners_count":22081528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","mysql","oracle","sqlserver","vue"],"created_at":"2024-09-24T18:52:11.778Z","updated_at":"2025-05-16T09:05:47.005Z","avatar_url":"https://github.com/PomZWJ.png","language":"Java","readme":"**[转到Gitee](https://gitee.com/pomz/database-export)**\n\n**[转到Github](https://github.com/PomZWJ/database-export)**\n\n\u003cimg width=\"100px\" height=\"100px\" alt=\"加群\" src=\"img/logo.png\"/\u003e\n\n**database-export V5.0.0**\n=========================\n\n![Spring Boot 2](https://img.shields.io/badge/Spring%20Boot-2-brightgreen.svg)\n![Element-UI](https://img.shields.io/badge/ElementUI-PLUS-green.svg)\n![VUE3](https://img.shields.io/badge/VUE-3-green.svg)\n![Docker](https://img.shields.io/docker/pulls/pomzwj/database-export)\n![Github](https://img.shields.io/github/stars/pomzwj/database-export)\n![Gitee](https://gitee.com/pomz/database-export/badge/star.svg?theme=dark)\n\ndatabase-export是一款多线程生成数据库结构文档的开源springboot工程，能支持最新的数据库版本，支持导出多种格式的文件，也能直接在网页上预览\n\n\n现已支持的数据库\n------------\n* MySQL\n* ORACLE\n* SqlServer\n* Postgresql\n* Clickhouse\n* Sqlite3\n* DB2\n* 达梦\n\n\n现已支持导出的类型\n------------\n* word\n* markdown\n* pdf\n* html\n\n项目特点\n------------\n\n* 导出sql支持多线程查询，导出速度更快\n* 使用element-ui-plus，界面更美观\n* 支持导出word、markdown、pdf、html，更支持网页预览\n* 导出速度高于现在的所有导出工具\n\n想加入技术开发群的加我(项目、毕业设计开发请备注项目，加群备注加群即可)\n----------\n\n\u003cimg width=\"200px\" height=\"300px\" alt=\"加群\" src=\"img/mywxqr.png\"/\u003e\n\n支持一下我\n----------\n\u003cimg width=\"300px\" height=\"300px\" alt=\"加群\" src=\"img/wechat_pay.png\"/\u003e\n\n\nHow to use\n------------\n\n\n#### 1.docker运行(推荐)\n\n```shell\ndocker pull pomzwj/database-export:5.0.0\n```\n\n```shell\ndocker run -d --name database-export -p 9999:9999 pomzwj/database-export:5.0.0\n```\n\n\n#### 2.下载release下的最新打包的压缩包\n\n\ncmd/shell执行java -jar xxx.jar 即可启动\n\n\n#### 3.下载最新的源码启动\n\n------------\n\n**源码运行方法**\n\u003e执行database-export-web下的DatabaseExportApplication.java即可,然后浏览器输入:http://localhost:9999\n\n如果想修改前端，前端项目在 \n\nvue2(database-export \u003c 5.0.0)\n\nhttps://github.com/PomZWJ/database-export-vue\n\nvue3(database-export \u003e= 5.0.0)\n\nhttps://github.com/PomZWJ/database-export-web-vue3\n\n* 1.前端打包后，会出现dist文件夹，把index.html,logo.png,vite.svg替换到database-export\\src\\main\\resources\\templates文件夹\n\n* 2.database-export\\src\\main\\resources\\static\\static文件夹删除(一定要先删除)，然后在把dist中的assets文件夹复制过来\n\n* 3.重启工程即可生效\n\n\n#### 4.用户自行开发\n\n\u003e 参考模块[database-export-core-demo]\n\n在pom.xml文件中引入\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.pomzwj\u003c/groupId\u003e\n    \u003cartifactId\u003edatabase-export-core\u003c/artifactId\u003e\n    \u003cversion\u003e5.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n\n```\nJAVA代码中的使用\n\n```java\nprotected static DataSource getDataSource() {\n    //自行定义数据源\n}\npublic static void main(String[] args){\n    DataSource dataSource = getMySqlDataSource();\n    try {\n        DataBaseExportExecute.executeFile(dataSource, new DbExportConfig()\n                .setSearchIndex(true)\n                .setExportFileTypeEnum(ExportFileType.WORD)\n                //详情见DataBaseType,以下的为字段名,自定字段名导出\n                //表字段\n                .setShowColumnList(Lists.newArrayList(\"columnName\",\"dataType\",\"autoIncrement\"))\n                //索引字段\n                .setShowIndexList(Lists.newArrayList(\"name\",\"seqIndex\"))\n                .setGenerationFileTempDir(\"生成文件的位置\"));\n    }catch (Exception e){\n        e.printStackTrace();\n    }finally {\n        if (dataSource != null) {\n            ((DruidDataSource) dataSource).close();\n        }\n    }\n}\n```\n\n\n\n\n## 首页截图\n\n\u003cimg width=\"600px\" height=\"400px\" src=\"img/cut/index-cut.png\"/\u003e\n\n\n## 操作页面截图\n\n\u003cimg width=\"600px\" height=\"400px\" src=\"img/cut/oper-cut.png\"/\u003e\n\n\n## html预览页面截图\n\n\u003cimg width=\"600px\" height=\"400px\" src=\"img/cut/html-view.png\"/\u003e\n\n## word页面截图\n\n\u003cimg width=\"600px\" height=\"400px\" src=\"img/cut/word.png\"/\u003e\n\n\n\n## 更新日志\n\n**2024-06-16(V5.0.0)**\n\n\u003e1.从vue2升级到vue3\n\n\u003e2.element-ui 升级 element-ui-plus\n\n\u003e3.UI改版\n\n\u003e4.后台JAVA架构改造，改造成可以用户使用的第三方SDK，供用户自行开发\n\n\u003e5.修复已知BUG\n\n**2023-12-14(V4.1.0)**\n\n\u003e1.封装docker镜像\n\n\u003e2.导出可以选择表导出\n\n\u003e3.修复已知bug\n\n\n\n**2023-05-21(V4.0.0)**\n\n\u003e1.前端工程单独开发,不再使用之前thymeleaf引入vue.js的做法\n\n\u003e2.新增支持DB2和达梦数据库\n\n\u003e3.新增导出支持pdf,html\n\n\n**2022-10-29(V3.4.0)**\n\n\u003e1.新增支持Sqlite\n\n\u003e2.导出支持Markdown\n\n**2022-10-27(V3.3.0)**\n\n\u003e1.新增支持ClickHouse\n\n\u003e2.修复已知bug\n\n**2022-03-27(V3.2.0)**\n\n\u003e1.支持Postgresql\n\n\u003e2.修复已知BUG\n\n\n\n**2021-12-16(V3.1.0)**\n\n\u003e1.数据库连接池改成工厂模式，引入了druid和hikaricp两种连接池，可在yml自定义配置\n\n\u003e2.前端html预览美化，加入了导航\n\n\u003e3.修复已知BUG\n\n\n**2021-06-27(V3.0.0)**\n\n\u003e1.查询数据库的时候加入了多线程查询,使得导出速度更快\n\n\u003e2.抛弃了之前使用的原生JDBC连接,引入了druid和JdbcTemplate\n\n\u003e3.支持导出excel\n\n\u003e4.支持前端html预览\n\n**2021-06-05(V2.2.0)**\n\n\u003e1.改变java设计模式为工厂模式，方便用户自己扩展\n\n\u003e2.优化了后台代码,尽量把代码实现高度配置化\n\n\u003e3.BUG改进\n\n**2020-07-15(V2.1.0)**\n\n\u003e1.去除了打包后，application需要重新配置模板文件,使部署更简单，不需要在改动到配置文件\n\n\u003e2.去除了自定义文件生成目录\n\n\u003e3.让生成的文件能够下载\n\n\u003e4.BUG改进\n\n**2019-09-26(V2.0.0)**\n\n\u003e1.使用了VUE+Element-UI重新修改了界面，抛弃了原本的Bootstrap\n\n\u003e2.BUG改进\n\n**2019-04-20(V1.0.0)**\n\n\u003e1.使用springboot2.x+Bootstrap完成界面\n\n\u003e2.能导出docx类型的文档,支持mysql,oracle,sql server\n\n----------\n- [CSDN](https://blog.csdn.net/huanguta1178/article/details/83690318)\n- [submit issue](https://github.com/PomZWJ/database-export/issues/new)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpomzwj%2Fdatabase-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpomzwj%2Fdatabase-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpomzwj%2Fdatabase-export/lists"}