Kevin Wan
eab904af64
chore: update goctl interface{} to any ( #2819 )
...
* chore: update goctl interface{} to any
* chore: update goctl interface{} to any
2 years ago
anqiansong
2cde970c9e
feat(goctl):Add ignore-columns flag ( #2407 )
...
* fix #2074,#2100
* format code
* fix #2397
* format code
* Support comma spliter
* format code
2 years ago
Richard Yi
6e50c87dca
fix: generated sql query fields do not match template ( #2004 )
...
* Fix typo
* Match generated sql query fields with template
2 years ago
方航
fabea4c448
fix bug: crash when generate model with goctl. ( #1777 )
...
* fix bug: crash when generate model with goctl.
situation: column name with line.
CREATE TABLE test (
id int NOT NULL AUTO_INCREMENT,
zh-cn text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '中文简体',
PRIMARY KEY (id) USING BTREE,
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
* group imports
group imports
* Use
go-zero/tools/goctl/util/string.go
func SafeString(in string) string {
instead of ReplaceAll
Co-authored-by: 方航 <fanghang@tange.ai>
3 years ago
Kevin Wan
415c4c91fc
fix: model unique keys generated differently in each re-generation ( #1771 )
3 years ago
Mikael
d8054d8def
fix -cache=true insert no clean cache ( #1672 )
...
* fix -cache=true insert no clean cache
* fix -cache=true insert no clean cache
3 years ago
Kevin Wan
e31128650e
Revert " 🐞 fix(gen): pg gen of insert ( #1591 )" ( #1598 )
...
This reverts commit cc4c4928e0
.
3 years ago
toutou_o
cc4c4928e0
🐞 fix(gen): pg gen of insert ( #1591 )
...
Co-authored-by: kurimi1 <d0n41df@gmail.com>
3 years ago
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
3 years ago
anqiansong
e57fa8ff53
Fix/issue#1447 ( #1458 )
...
* Add data for template to render
* fix #1447
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
89ce5e492b
refactor file|path ( #1409 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
9c48e9ceab
Feature add template version ( #1152 )
3 years ago
anqiansong
089cdaa75f
Feature model postgresql ( #842 )
...
* Support postgresql generate
* Update template Var
* Support to generate postgresql model
* Support to generate postgresql model
* Update template
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
d894b88c3e
feature 1.1.5 ( #411 )
4 years ago
文杰
3285436f75
f-fix spell ( #381 )
...
Co-authored-by: chenwenjie <chenwenjie@zzstc.cn>
4 years ago
Kevin Wan
65ee877236
refactor & format code ( #255 )
4 years ago
Keson
6e57f6c527
feature model interface ( #222 )
...
* make variable declaration more concise
* add model interface
* optimize interface methods
* fix: go test failed
* warp returns
* optimize
4 years ago
Keson
41964f9d52
gozero template ( #147 )
...
* model/rpc generate code from template cache
* delete unused(deprecated) code
* support template init|update|clean|revert
* model: return the execute result for insert and update operation
* // deprecated: containsAny
* add template test
* add default buildVersion
* update build version
4 years ago
kevin
dfe6e88529
use goctl template to generate all kinds of templates
4 years ago
kevin
f904710811
support api templates
4 years ago
Keson
7e61555d42
Gozero sqlgen patch ( #119 )
...
* merge upstream
* optimize insert logic
* reactor functions
4 years ago
Keson
db16115037
rpc service generation ( #26 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* update usage
* fixed env prepare for project in go path
* optimize gomod cache
* add README.md
* format error
* reactor templatex.go
* remove waste code
4 years ago
Keson
db83843558
gocctl model v20200819 ( #18 )
...
* rename snake、came method
* new: generate model from data source
* add change log md
* update model doc
* update doc
* beauty code
4 years ago
Keson
d21d770b5b
goctl model reactor ( #15 )
...
* reactor sql generation
* reactor sql generation
* add console & example
* optimize unit test & add document
* modify default config
* remove test file
* Revert "remove test file"
This reverts commit 81041f9e
* fix stringx.go & optimize example
* remove unused code
4 years ago
kevin
0a7e0cce77
update package reference
4 years ago
kim
121323b8c3
goctl added
4 years ago