go 的一个orm generator,生成kpoh

北战南征 提交于 2020-10-08 03:31:35

用于生成Go的Model文件,数据库操作太过于麻烦,依靠工具可以直接生成model对象,默认使用的是xorm映射。 需要支持Go mod ,所以版本最好1.11以上 下载: go get -u github.com/anthony-dong/orm-generator 执行 ./build.sh 或者 release里下载压缩版 ~/Downloads/orm-generator-1.0 % ls LICENSE README.md bin build.sh cmd generator go.mod go.sum utils ~/Downloads/orm-generator-1.0 % ./build.sh GOPATH: /Users/sgcx015/go GOBIN: /Users/sgcx015/Downloads/orm-generator-1.0/bin/ CURDIR: /Users/sgcx015/Downloads/orm-generator-1.0 WORK=/var/folders/cs/_wm77lv95j5d88s_q9vr959w0000gn/T/go-build403299929 build finished sgcx015@SGCX015deMacBook-Pro:~/Downloads/orm-generator-1.0 % bin/orm-generator 快速开始 ~/go/code/orm-generator (master*) % bin/orm-generator -u=root -p=123456 -d=xorm -t=users -tag=xorm generate template finished ~/go/code/orm-generator/tmp (master*) % cat tmp/users.go package model import ( "time" ) type Users struct { ID uint32 `xorm:"id"` Name string `xorm:"name"` Age uint32 `xorm:"age"` Date time.Time `xorm:"date"` ClassID uint32 `xorm:"class_id"` } func (u Users) TableName() string { return "users"mixcloud.com/pydctqug/?mode=desktop&ref_=m_ft_bbd

mixcloud.com/xhwtjpfp/?mode=desktop&ref_=m_ft_jdh

mixcloud.com/78834490/?mode=desktop&ref_=m_ft_rnx

mixcloud.com/ueqiihzj/?mode=desktop&ref_=m_ft_lnd

mixcloud.com/hqbhrpnl/?mode=desktop&ref_=m_ft_vjf

mixcloud.com/qjxwwyxg/?mode=desktop&ref_=m_ft_xxp

mixcloud.com/52728960/?mode=desktop&ref_=m_ft_dfp

mixcloud.com/nlujqzjt/?mode=desktop&ref_=m_ft_hfb

mixcloud.com/vpsiynrb/?mode=desktop&ref_=m_ft_dnf

mixcloud.com/09988292/?mode=desktop&ref_=m_ft_jzd

mixcloud.com/43048176/?mode=desktop&ref_=m_ft_thp

mixcloud.com/plqhjqtb/?mode=desktop&ref_=m_ft_zlx

mixcloud.com/54768592/?mode=desktop&ref_=m_ft_dbh

mixcloud.com/25477976/?mode=desktop&ref_=m_ft_zbx

mixcloud.com/gnftxhze/?mode=desktop&ref_=m_ft_htn

mixcloud.com/58419717/?mode=desktop&ref_=m_ft_jhh

mixcloud.com/qgmqbktn/?mode=desktop&ref_=m_ft_nbp

mixcloud.com/73028842/?mode=desktop&ref_=m_ft_zrt

mixcloud.com/wrlhpxnq/?mode=desktop&ref_=m_ft_dtz

mixcloud.com/iimzusvg/?mode=desktop&ref_=m_ft_vxz

mixcloud.com/dnaqzpfd/?mode=desktop&ref_=m_ft_hzl

mixcloud.com/uaozobix/?mode=desktop&ref_=m_ft_bvb

mixcloud.com/96564743/?mode=desktop&ref_=m_ft_lpf

mixcloud.com/20668775/?mode=desktop&ref_=m_ft_jnv

mixcloud.com/yemgknkv/?mode=desktop&ref_=m_ft_rpv

mixcloud.com/fzpffmdi/?mode=desktop&ref_=m_ft_pbd

mixcloud.com/pmguaoed/?mode=desktop&ref_=m_ft_pbn

mixcloud.com/jpwpfvuv/?mode=desktop&ref_=m_ft_hhx

mixcloud.com/ergzvkki/?mode=desktop&ref_=m_ft_ttn

mixcloud.com/76102368/?mode=desktop&ref_=m_ft_lxp

mixcloud.com/juabsgwg/?mode=desktop&ref_=m_ft_hvh

mixcloud.com/rgjbazmf/?mode=desktop&ref_=m_ft_nbr

mixcloud.com/92437708/?mode=desktop&ref_=m_ft_hvr

mixcloud.com/gcplumhl/?mode=desktop&ref_=m_ft_fbf

mixcloud.com/ywbjipcd/?mode=desktop&ref_=m_ft_zhl

mixcloud.com/msosnueu/?mode=desktop&ref_=m_ft_zjt

mixcloud.com/fjwffxwn/?mode=desktop&ref_=m_ft_rhb

mixcloud.com/eazivwwz/?mode=desktop&ref_=m_ft_vrd

mixcloud.com/41796165/?mode=desktop&ref_=m_ft_vvt

mixcloud.com/tkoxwmby/?mode=desktop&ref_=m_ft_htx

mixcloud.com/svnoxwga/?mode=desktop&ref_=m_ft_hth

mixcloud.com/46440760/?mode=desktop&ref_=m_ft_ohb

mixcloud.com/yngclldf/?mode=desktop&ref_=m_ft_fop

mixcloud.com/lhigerss/?mode=desktop&ref_=m_ft_jru

mixcloud.com/42741755/?mode=desktop&ref_=m_ft_ule

mixcloud.com/rmvcbalp/?mode=desktop&ref_=m_ft_iln

mixcloud.com/tfuqxzuo/?mode=desktop&ref_=m_ft_zha

mixcloud.com/85704891/?mode=desktop&ref_=m_ft_bbo

mixcloud.com/hwjfwfpf/?mode=desktop&ref_=m_ft_mxl

mixcloud.com/qzhaikxr/?mode=desktop&ref_=m_ft_zio

mixcloud.com/vdwcvefi/?mode=desktop&ref_=m_ft_mzc

mixcloud.com/sayucpso/?mode=desktop&ref_=m_ft_qmf

mixcloud.com/69115417/?mode=desktop&ref_=m_ft_fsu

mixcloud.com/akeqpllm/?mode=desktop&ref_=m_ft_pho

mixcloud.com/63513519/?mode=desktop&ref_=m_ft_fxp

mixcloud.com/khhkbnel/?mode=desktop&ref_=m_ft_bks

mixcloud.com/xggthoqq/?mode=desktop&ref_=m_ft_tvh

mixcloud.com/ghejxnyu/?mode=desktop&ref_=m_ft_xym

mixcloud.com/hkbhcrfo/?mode=desktop&ref_=m_ft_ank

mixcloud.com/srhfelny/?mode=desktop&ref_=m_ft_ips

mixcloud.com/jtqcfmax/?mode=desktop&ref_=m_ft_dri

mixcloud.com/dtetelkj/?mode=desktop&ref_=m_ft_int

mixcloud.com/24507616/?mode=desktop&ref_=m_ft_zhx

mixcloud.com/ivnunzqm/?mode=desktop&ref_=m_ft_ppz

mixcloud.com/azcesvfa/?mode=desktop&ref_=m_ft_wts

mixcloud.com/yzmbtyil/?mode=desktop&ref_=m_ft_jsq

mixcloud.com/53579977/?mode=desktop&ref_=m_ft_vyj

mixcloud.com/53189800/?mode=desktop&ref_=m_ft_hta

mixcloud.com/qbwyhggl/?mode=desktop&ref_=m_ft_rrp

mixcloud.com/huaktmvc/?mode=desktop&ref_=m_ft_odg

mixcloud.com/31198224/?mode=desktop&ref_=m_ft_hou

mixcloud.com/lksjyngg/?mode=desktop&ref_=m_ft_lgi

mixcloud.com/ojqknnuk/?mode=desktop&ref_=m_ft_jlu

mixcloud.com/lejknvvj/?mode=desktop&ref_=m_ft_hoe

mixcloud.com/uigovpwg/?mode=desktop&ref_=m_ft_crl

mixcloud.com/cxchfnir/?mode=desktop&ref_=m_ft_nkg

mixcloud.com/00898046/?mode=desktop&ref_=m_ft_wjp

mixcloud.com/wlmmktmv/?mode=desktop&ref_=m_ft_vsp

mixcloud.com/04007555/?mode=desktop&ref_=m_ft_dzd

mixcloud.com/89757981/?mode=desktop&ref_=m_ft_xuk

mixcloud.com/rxkdcbls/?mode=desktop&ref_=m_ft_rdz

mixcloud.com/94448730/?mode=desktop&ref_=m_ft_mws

mixcloud.com/hlvdvdlz/?mode=desktop&ref_=m_ft_ugz

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!