hantmac / Fuckdb
Licence: apache-2.0
From database generate go struct,help you fuck db fields
Stars: ✭ 195
Projects that are alternatives of or similar to Fuckdb
Struct2ts
Generate Typescript classes/interfaces out of Go structs
Stars: ✭ 116 (-40.51%)
Mutual labels: struct
Mapper
A simple and easy go tools for auto mapper map to struct, struct to map, struct to struct, slice to slice, map to slice, map to json.
Stars: ✭ 175 (-10.26%)
Mutual labels: struct
Apiproject
[https://www.sofineday.com], golang项目开发脚手架,集成最佳实践(gin+gorm+go-redis+mongo+cors+jwt+json日志库zap(支持日志收集到kafka或mongo)+消息队列kafka+微信支付宝支付gopay+api加密+api反向代理+go modules依赖管理+headless爬虫chromedp+makefile+二进制压缩+livereload热加载)
Stars: ✭ 124 (-36.41%)
Mutual labels: gorm
Junion
Delivers struct types for Java programming language.
Stars: ✭ 155 (-20.51%)
Mutual labels: struct
Golang Gin Realworld Example App
Exemplary real world application built with Golang + Gin
Stars: ✭ 1,780 (+812.82%)
Mutual labels: gorm
Goq
A declarative struct-tag-based HTML unmarshaling or scraping package for Go built on top of the goquery library
Stars: ✭ 192 (-1.54%)
Mutual labels: struct
Goilerplate
Clean Boilerplate of Go, Domain-Driven Design, Clean Architecture, Gin and GORM.
Stars: ✭ 173 (-11.28%)
Mutual labels: gorm
Toml To Go
Translates TOML into a Go type in your browser instantly
Stars: ✭ 134 (-31.28%)
Mutual labels: struct
Gin Admin
RBAC scaffolding based on Gin + Gorm 2.0 + Casbin + Wire
Stars: ✭ 1,835 (+841.03%)
Mutual labels: gorm
Go init
一个用go组织项目结构,主要包括 gin, goredis, gorm, websocket, rabbitmq等。👉
Stars: ✭ 183 (-6.15%)
Mutual labels: gorm
Zendea
A free, open-source, self-hosted forum software written in Go 官方QQ群:656868
Stars: ✭ 116 (-40.51%)
Mutual labels: gorm
Goconfig
goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
Stars: ✭ 146 (-25.13%)
Mutual labels: struct
Converter
database table to golang struct (table to struct) converter with cli and go lib support
Stars: ✭ 167 (-14.36%)
Mutual labels: struct
fuckdb
- 中文
- English
fuckdb
helps you fuck the db when you write go struct.
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.
Web UI
- Easy to use
Only a few clicks on the web UI can generate the corresponding golang struct with
ORM
orjson
orxml
... tags.
How to use?
Source code deploy
- git clone the source code
- cd fuckdb/
- make build-frontend
- make start
- Use
localhost:8000
you will get the web UI - The same operation with docker deployment.
Docker deploy
- modify your backend ip in
frontend/src/config/index.js
- docker-compose up -d
- Use
localhost:8000
you will get the next page - Just Put your mariaDB/mysql info into it and you will get your golang code.
- Click generate.
- Boom!Enjoy your coffee and copy your struct code.
CMD - fuckdb Lite
tips: fuckdb Lite is a undependent tool, no need to install fuckdb first.
install
- macos
brew tap hantmac/tap && brew install fuckdb
- Linux
wget https://github.com/hantmac/fuckdb/releases/download/v0.3/fuckdb_linux.tar.gz && tar -zxvf fuckdb_linux.tar.gz
-
windows download the windows file in release
-
First, run
fuckdb generate
to generatefuckdb.json
add your mysql info
{
"db": {
"host": "localhost",
"port": 3306,
"password": "password",
"user": "root",
"table": "cars",
"database": "example",
"packageName": "test",
"structName": "test",
"jsonAnnotation": true,
"gormAnnotation": true
}
}
- then run
fuckdb go
and get your code!
More info => 'Go_Official_Blog' on WeChat:
Support
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].