{"id":13600529,"url":"https://github.com/hantmac/fuckdb","last_synced_at":"2025-04-11T00:31:26.221Z","repository":{"id":39289959,"uuid":"227396401","full_name":"hantmac/fuckdb","owner":"hantmac","description":"From database generate go struct,help you fuck db fields","archived":true,"fork":false,"pushed_at":"2024-10-29T16:17:11.000Z","size":49908,"stargazers_count":340,"open_issues_count":6,"forks_count":37,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-07T03:41:45.085Z","etag":null,"topics":["golang","gorm","struct"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hantmac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["hantmac"],"custom":["https://cloudsjhan.github.io/images/wechatpay.jpg"]}},"created_at":"2019-12-11T15:19:46.000Z","updated_at":"2024-11-05T00:42:19.000Z","dependencies_parsed_at":"2023-11-26T10:22:08.067Z","dependency_job_id":"eaaa2044-b04b-4185-8c65-f402d5b77a1c","html_url":"https://github.com/hantmac/fuckdb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantmac%2Ffuckdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantmac%2Ffuckdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantmac%2Ffuckdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantmac%2Ffuckdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hantmac","download_url":"https://codeload.github.com/hantmac/fuckdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322267,"owners_count":21084334,"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":["golang","gorm","struct"],"created_at":"2024-08-01T18:00:41.426Z","updated_at":"2025-04-11T00:31:25.485Z","avatar_url":"https://github.com/hantmac.png","language":"Go","funding_links":["https://github.com/sponsors/hantmac","https://cloudsjhan.github.io/images/wechatpay.jpg"],"categories":["Go","SQL Builders"],"sub_categories":[],"readme":"\n# fuckdb\n- [中文](https://github.com/hantmac/fuckdb/blob/master/README_zh.md)\n- [相关文章](https://mp.weixin.qq.com/s?__biz=MzIxNTU0ODY1NQ==\u0026amp;mid=2247484336\u0026amp;idx=1\u0026amp;sn=07097166a6e6b5a113599e7d2f572c2d\u0026amp;chksm=9797d430a0e05d26b30999ca042cb9ab4b1927a97b1bad439c3e06e51ae9ef46022e2a315e96\u0026token=918317406\u0026lang=zh_CN#rd)\n- English\n\n![Example to show fuckdb](http://static.vue2.net/db.gif)\n\n`fuckdb` helps you fuck the db when you write go struct.\n`fuckdb` generates a go compatible struct type with the required column names, data types, and annotations just fill in the database information in the web UI. Making go web develop very easy by saving a lot of time writing structure.`fuckdb`is based/inspired by the work of Seth Shelnutt's db2struct, and Db2Struct is based/inspired by the work of ChimeraCoder's gojson package gojson.\n# Web UI\n- Easy to use\nOnly a few clicks on the web UI can generate the corresponding golang struct with `ORM` or `json` or `xml` ... tags.\n# How to use?\n\n### Source code deploy\n- git clone the source code\n- cd fuckdb/\n- make build\n- fuckdb server\n\nThen UI will be opened.\n\n### CMD - fuckdb Lite\n\u003e tips: fuckdb Lite is a undependent tool, no need to install fuckdb first.\n#### install\n- macos \n ```\n  brew tap hantmac/tap \u0026\u0026 brew install fuckdb\n ```\n- Linux \n\n ```\nwget https://github.com/hantmac/fuckdb/releases/download/v1.0.1/fuckdb_linux.tar.gz \u0026\u0026  tar -zxvf fuckdb_linux.tar.gz\n  ```\n  \n- windows \n  download the windows file in release\n\n- First,  run `fuckdb generate` to generate `fuckdb.json` add your mysql info\n```\n{\n  \"db\": {\n    \"host\": \"localhost\",\n    \"port\": 3306,\n    \"password\": \"password\",\n    \"user\": \"root\",\n    \"table\": \"cars\",\n    \"database\": \"example\",\n    \"packageName\": \"test\",\n    \"structName\": \"test\",\n    \"jsonAnnotation\": true,\n    \"gormAnnotation\": true\n  }\n}\n```\n\n- then run `fuckdb go` and get your code!\n\nIf you want use UI on localhost you can use `fuckdb server` and will open browser in one second.\n![server](https://z3.ax1x.com/2021/05/03/gmYPe0.gif)\n\n### Docker deploy\n- modify your backend ip in  `frontend/src/config/index.js`\n- docker-compose up -d\n- Use `localhost:8000` you will get the next page\n![](https://tva1.sinaimg.cn/large/006tNbRwgy1g9w1ru6tl4j31wb0u0aft.jpg)\n- Just Put your mariaDB/mysql info into it and you will get your golang code.\n- Click generate.\n- Boom！Enjoy your coffee and copy your struct code.\n![](https://tva1.sinaimg.cn/large/006tNbRwly1g9w531osobj31u90u0jzq.jpg)\n\n\nMore info =\u003e 'Go_Official_Blog' on WeChat:\n\n![](https://user-gold-cdn.xitu.io/2020/3/27/1711c6a37c75e3fb?w=142\u0026h=142\u0026f=jpeg\u0026s=10725)\n\n### Support\n\n[![jetbrains](https://s1.ax1x.com/2020/03/26/G9uQoR.png)]( https://www.jetbrains.com/?from=fuckdb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhantmac%2Ffuckdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhantmac%2Ffuckdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhantmac%2Ffuckdb/lists"}