POABOB
33f6d7ebb8
fix: goctl pg gen will extract all fields when the same table name exists in different schemas ( #3496 ) ( #3517 )
1 year ago
guangwu
e8c1e6e09b
fix: log format error ( #3409 )
1 year ago
Kevin Wan
2a33b74b35
chore: coding style ( #3362 )
1 year ago
anqiansong
45bb547a81
(goctl)fix: #3328 ( #3348 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
1 year ago
anqiansong
3ca40001b4
feat(goctl): Add with session for model tpl ( #3272 )
2 years ago
guangwu
63368d8b0c
io/ioutil deprecated ( #3217 )
2 years ago
Kevin Wan
f77e2c9cfa
chore: add more tests ( #3014 )
2 years ago
taobig
37cb00d789
Export cache.Option param to NewXXXModel() ( #2995 )
2 years ago
qiying.wang
148afcf1a7
chore: remove redundant prefix of "error: " in error creation
2 years ago
strong
0fe84b225c
fix(goctl): unsupported database type: bpchar ( #2840 )
2 years ago
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
Kevin Wan
ae87114282
chore: change interface{} to any ( #2818 )
...
* chore: change interface{} to any
* chore: update goctl version to 1.5.0
* chore: update goctl deps
2 years ago
chowyu12
ce1c02f4f9
Feat: ignorecolums add sort ( #2648 )
...
* add go-grpc_opt and go_opt for grpc new command
* feat: remove log when disable log
* feat: add sort
Co-authored-by: zhouyy <zhouyy@ickey.cn>
2 years ago
骑着毛驴背单词
81831b60a9
fix(change model template file type): All model template variables ar… ( #2573 )
...
* fix(change model template file type): All model template variables are stored in tpl format files with the same name as the template generated using the template init command
* fix(change model template file type): All model template variables are stored in tpl format files with the same name as the template generated using the template init command
Co-authored-by: qilvge <qilvge@.qilvge.com>
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
王哈哈
dac3600b53
Modify comment syntax error ( #2572 )
2 years ago
anqiansong
9504d30049
fix(goctl): fix redundant import ( #2551 )
2 years ago
anqiansong
7c9ef3ca67
fix(goctl): Fix issues ( #2543 )
...
* fix #2541
* fix #2432
* Fix review comment
* foramt code
* foramt code
2 years ago
chen quan
4f6a900fd4
fix(goctl): fix the unit test bug of goctl ( #2458 )
2 years ago
jesse.tang
1b344a8851
cleanup: deprecated field and func ( #2416 )
...
* cleanup: deprecated field and func
* fmt import order
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
Kevin Wan
d935c83a54
feat: support baggage propagation in httpc ( #2375 )
...
* feat: support baggage propagation in httpc
* chore: use go 1.16
* chore: use go 1.16
* chore: use go ^1.16
* chore: remove deprecated
2 years ago
anqiansong
f70805ee60
Add strict flag ( #2248 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
yiGmMk
fb6d7e2fd2
fix #2301,package conflict generated by ddl ( #2307 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
fyyang
62abac0b7e
fix: unsignedTypeMap type error ( #2246 )
2 years ago
anqiansong
1b51d0ce82
fix: fix #2102 , #2108 ( #2131 )
...
* g4 code generation
* Update grammar
* g4 code generation
* fix #2108
* fix #2102
* Remove comments
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
Kevin Wan
1c09db6d5d
chore: coding style ( #2120 )
2 years ago
taobig
c92400ead2
fix 当表有唯一键时,update()的形参和实参不一致 ( #2010 )
2 years ago
anqiansong
b44e8f5c75
fix #1977 ( #2034 )
2 years ago
Kevin Wan
289a325757
chore: refine docker for better compatible with package main ( #1944 )
...
* chore: refine docker for better compatible with package main
* chore: default to current dir on goctl docker command
3 years ago
anqiansong
58787746db
fix: Useless delete cache logic in update ( #1923 )
...
* Fix bug: useless delete cache logic in update
* Format code
3 years ago
anqiansong
f486685e99
Fix code generation ( #1897 )
3 years ago
anqiansong
5383e29ce6
feat: Replace cli to cobra ( #1855 )
...
* Replace cli
* Replace cli
* Replace cli
* Format code
* Add compare case
* Add compare case
* Add compare case
* Support go style flag
* Support go style flag
* Add test case
3 years ago
anqiansong
cc09ab2aba
feat: Support model code generation for multi tables ( #1836 )
...
* Support model code generation for multi tables
* Format code
* Format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
5bcee4cf7c
fix #1806 ( #1833 )
...
* fix #1806
* chore: refine error text
3 years ago
anqiansong
16c61c6657
chore: Embed unit test data ( #1812 )
...
* Embed unit test data
* Add testdata
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Fyn
036d803fbb
docs(goctl): goctl 1.3.4 migration note ( #1780 )
...
* docs(goctl): goctl 1.3.4 migration note
* adds a simple lang check
* adds migration notes
* chore: remove i18n
* chore: remove todo
3 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
anqiansong
8dd764679c
Fix #1765 ( #1767 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
dfd58c213c
fix: model generation bug on with cache ( #1743 )
...
* fix: model generation bug on with cache
* chore: refine template
* chore: fix test failure
3 years ago
Kevin Wan
6dccfa29fd
feat: let model customizable ( #1738 )
3 years ago
Fyn
f4471846ff
feat(goctl): supports model code 'DO NOT EDIT' ( #1728 )
...
Resolves : #1710
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
Fyn
17e0afeac0
fix(goctl): model method FindOneCtx should be FindOne ( #1656 )
3 years ago
xybingbing
09e6d94f9e
FindOneBy 漏 Context ( #1642 )
3 years ago
anqiansong
68a81fea8a
Fix #1609 ( #1617 )
3 years ago
Kevin Wan
f15a4f9188
chore: update go-zero to v1.3.1 in goctl ( #1599 )
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