{"id":24575182,"url":"https://github.com/autohomecorp/dbtree","last_synced_at":"2025-04-23T15:22:22.136Z","repository":{"id":52536253,"uuid":"204591382","full_name":"AutohomeCorp/dbtree","owner":"AutohomeCorp","description":"网页查看表结构，修改注释，导出markdown,对表进行有意义的目录分类, mybatis-generator界面的工具，支持mysql, sqlserver。使用springboot2 + vue-element-template","archived":false,"fork":false,"pushed_at":"2022-11-15T23:47:47.000Z","size":6069,"stargazers_count":38,"open_issues_count":2,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-30T00:51:14.040Z","etag":null,"topics":["mybatis-generator","mysql","phpmyadmin","springboot2","vue-element-admin"],"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/AutohomeCorp.png","metadata":{"files":{"readme":"README-EN.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}},"created_at":"2019-08-27T01:15:10.000Z","updated_at":"2024-12-11T02:47:51.000Z","dependencies_parsed_at":"2022-09-06T14:50:50.892Z","dependency_job_id":null,"html_url":"https://github.com/AutohomeCorp/dbtree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutohomeCorp%2Fdbtree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutohomeCorp%2Fdbtree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutohomeCorp%2Fdbtree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutohomeCorp%2Fdbtree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AutohomeCorp","download_url":"https://codeload.github.com/AutohomeCorp/dbtree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250457885,"owners_count":21433757,"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":["mybatis-generator","mysql","phpmyadmin","springboot2","vue-element-admin"],"created_at":"2025-01-23T21:55:05.983Z","updated_at":"2025-04-23T15:22:22.103Z","avatar_url":"https://github.com/AutohomeCorp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DBTree Introduction\n\nEnglish | [简体中文](./README.md)\n\nDBTree is a light web tool for browsing database table definitions. Compared to phpMyAdmin, DBTree only \nfocus on browsing table information and maintaining comment. You can use it to classify your tables as folders and \nupdate comment handily.  \n\n## Features\n\n* organize tables as folders\n* browse important schema information\n* show only one table delegate if the table is split into hundreds or thousands.\n* update table comment, column comment online handily.\n* support mysql, sql server\n* export table schema as markdown\n\n## Demo\n\n\u003cimg src=\"./dbtree_demo.gif\" /\u003e\n\n## Why this tool\n\nIn daily development, database communication is one of the most important and frequent part, our team found that no matter database \nclient like MSS Management Studio, phpMyAdmin or database design software like Power Designer, it is not convenient to browse or share \ntable definition and comment. Especially when there are thousands of sub-tables, it is really tough. So we design this tool and we \nlove this tool, hope it would help you too. \n\ncomment friendly and classify your table as folders is good for all.\n\n## config\n\n* database server config\n\ndbtree-backend/src/main/resources/dbconfig/db-server.json\n```json\n{\n  \"mysql-127.0.0.1\": {\n    \"db_type\": \"mysql\",\n    \"host\": \"127.0.0.1\",\n    \"port\": 3306,\n    \"user\": \"root\",\n    \"password\": \"123456\"\n  },\n  \"sqlserver-127.0.0.2\": {\n    \"db_type\": \"sqlserver\",\n    \"host\": \"127.0.0.2\",\n    \"port\": 1433,\n    \"user\": \"root\",\n    \"password\":\"123456\"\n  }\n}\n```\nthe password is plain.\n\n* database config\n\ndbtree-backend/src/main/resources/dbconfig/db-config.json\n```json\n{\n  \"db_1\": {\n    \"db_name\": \"db_1\",\n    \"db_server\": \"mysql-127.0.0.1\",\n    \"split_table_rules\": [\n      {\n        \"delegate_table\": \"rule\",\n        \"table_pattern\": \"rule_%\"\n      }\n    ]\n  },\n  \"db_2\": {\n     \"db_name\": \"db_2\",\n     \"db_server\": \"sqlserver-127.0.0.2\"\n  }\n}\n```\ndb-config.json is a json map content, the key must be as same as database name(db_name). You can use split_table_rules to specify the \ntable split pattern, the example means using rule to represent all rule_% tables.\n\n* mybatis.base.folder\n\nthe store folder for mybatis generated code file\n\n* mybatis.mysql.connector\n\nthe location of mysql jdbc jar. you can copy dbtree/connector/mysql-connector-java-5.1.36.jar to your own folder.\n\n* mybatis.sqlserver.connector\n\nthe location of sqlserver jdbc jar. you can copy dbtree/connector/sqljdbc42.jar to your own folder\n\n## Debug\n\nRequirements\n* jdk 1.8+\n* node.js\n\nopen and run the springboot project，visit：http://localhost:8080  \n\nfor better debug experience, you should use VS Code to open the dbtree-vue folder. execute the following command:\n\n```bash\n# install dependency\nnpm install\n\n# develop\nnpm run dev\n```\n\nThis will automatically open http://localhost:9528\n\n## Deploy\n\nThis project use springboot2.x + vue-element-template + mybatis。dbtree-vue resources will be package into dbtree-backend/src/main/resources/public. \nYou need only deploy dbtree-backend/target/dbtree.jar.  \n\nmysql schema folder：dbtree-backend/doc/schema\n\nJDK version 1.8\n\nThe tool only deploy in develop environment, you don't need to deploy it in production, it is not safe.\n\n## Thanks To\n\n- [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautohomecorp%2Fdbtree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautohomecorp%2Fdbtree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautohomecorp%2Fdbtree/lists"}