All Projects → hantmac → Fuckdb

hantmac / Fuckdb

Licence: apache-2.0
From database generate go struct,help you fuck db fields

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

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
Gosql
golang orm and sql builder
Stars: ✭ 141 (-27.69%)
Mutual labels:  gorm
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
Gorm Paginator
gorm pagination extension
Stars: ✭ 136 (-30.26%)
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
Go Web
Modern Web Application with Golang
Stars: ✭ 138 (-29.23%)
Mutual labels:  gorm
Goilerplate
Clean Boilerplate of Go, Domain-Driven Design, Clean Architecture, Gin and GORM.
Stars: ✭ 173 (-11.28%)
Mutual labels:  gorm
Gin bbs
Gin BBS App
Stars: ✭ 123 (-36.92%)
Mutual labels:  gorm
Toml To Go
Translates TOML into a Go type in your browser instantly
Stars: ✭ 134 (-31.28%)
Mutual labels:  struct
Cmall Go
golang写的电子商城的API接口
Stars: ✭ 167 (-14.36%)
Mutual labels:  gorm
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
Grails Data Mapping
GORM - Groovy Object Mapping
Stars: ✭ 194 (-0.51%)
Mutual labels:  gorm
Go Mocket
Go GORM & SQL mocking library
Stars: ✭ 190 (-2.56%)
Mutual labels:  gorm
Converter
database table to golang struct (table to struct) converter with cli and go lib support
Stars: ✭ 167 (-14.36%)
Mutual labels:  struct

fuckdb

Example to show fuckdb

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.fuckdbis 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 or json or xml ... 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 generate fuckdb.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

jetbrains

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].