taobig
37cb00d789
Export cache.Option param to NewXXXModel() ( #2995 )
2023-03-09 13:34:58 +00:00
qiying.wang
148afcf1a7
chore: remove redundant prefix of "error: " in error creation
2023-03-02 12:46:19 +00:00
strong
0fe84b225c
fix(goctl): unsupported database type: bpchar ( #2840 )
2023-02-21 19:40:29 +08:00
Kevin Wan
eab904af64
chore: update goctl interface{} to any ( #2819 )
...
* chore: update goctl interface{} to any
* chore: update goctl interface{} to any
2023-01-24 17:51:03 +08:00
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
2023-01-24 16:32:02 +08:00
foliet
a2df1bb164
fix: modify the generated update function and add return values for update and delete functions ( #2793 )
2023-01-15 22:11:08 +08:00
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>
2022-12-28 14:53:22 +08:00
骑着毛驴背单词
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>
2022-11-10 13:38:35 +08:00
王哈哈
dac3600b53
Modify comment syntax error ( #2572 )
2022-11-04 21:55:17 +08:00
foliet
07128213d6
chore: update "DO NOT EDIT" format ( #2559 )
...
* chore: update "DO NOT EDIT" format
* Update readme.md
* Update head.go
2022-10-27 19:41:24 +08:00
anqiansong
9504d30049
fix(goctl): fix redundant import ( #2551 )
2022-10-25 06:58:51 +08:00
anqiansong
7c9ef3ca67
fix(goctl): Fix issues ( #2543 )
...
* fix #2541
* fix #2432
* Fix review comment
* foramt code
* foramt code
2022-10-22 21:01:15 +08:00
wuleiming2009
ea52fe2e0d
Fix the wrong key about FindOne in mongo of goctl. ( #2523 )
2022-10-17 19:58:57 +08:00
anqiansong
1b87f5e30d
Fix mongo insert tpl ( #2512 )
2022-10-14 12:27:04 +08:00
foliet
b51339b69b
fix(mongo): fix file name generation errors ( #2479 )
...
Before this, no matter what style is used, lowercase file names without underscores will be generated.
2022-10-04 18:09:03 +08:00
chen quan
4f6a900fd4
fix(goctl): fix the unit test bug of goctl ( #2458 )
2022-09-27 23:52:05 +08:00
jesse.tang
1b344a8851
cleanup: deprecated field and func ( #2416 )
...
* cleanup: deprecated field and func
* fmt import order
2022-09-20 22:13:34 +08:00
anqiansong
2cde970c9e
feat(goctl):Add ignore-columns flag ( #2407 )
...
* fix #2074,#2100
* format code
* fix #2397
* format code
* Support comma spliter
* format code
2022-09-19 11:49:39 +08:00
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
2022-09-10 15:18:52 +08:00
anqiansong
f70805ee60
Add strict flag ( #2248 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2022-08-28 18:55:52 +08:00
yiGmMk
fb6d7e2fd2
fix #2301,package conflict generated by ddl ( #2307 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2022-08-27 21:56:39 +08:00
fyyang
62abac0b7e
fix: unsignedTypeMap type error ( #2246 )
2022-08-11 22:56:00 +08:00
anqiansong
1b51d0ce82
fix: fix #2102 , #2108 ( #2131 )
...
* g4 code generation
* Update grammar
* g4 code generation
* fix #2108
* fix #2102
* Remove comments
2022-07-20 22:49:41 +08:00
Richard Yi
6e50c87dca
fix: generated sql query fields do not match template ( #2004 )
...
* Fix typo
* Match generated sql query fields with template
2022-07-11 23:06:00 +08:00
Kevin Wan
1c09db6d5d
chore: coding style ( #2120 )
2022-07-10 11:05:21 +08:00
Kevin Wan
97a171441d
chore: remove blank lines ( #2117 )
...
* chore: remove blank lines
* chore: refactor
2022-07-09 15:59:25 +08:00
虫子樱桃
725e6056e1
feat:goctl model mongo
add easy
flag for easy declare. ( #2073 )
...
* fix:typo in readme.md
* feat:`goctl model mongo ` add `easy` flag to generate code with Auto generated CollectionName for easy declare.
* fix:`goctl api doc ` when referenced api file contains no route,will generate an empty markdown file.
* code: adjust code.
Co-authored-by: 虫子樱桃 <czyt@w.cn>
2022-07-09 15:34:01 +08:00
taobig
c92400ead2
fix 当表有唯一键时,update()的形参和实参不一致 ( #2010 )
2022-06-30 23:25:54 +08:00
虫子樱桃
76086fc717
fix:typo in readme.md ( #2061 )
...
Co-authored-by: 虫子樱桃 <czyt@w.cn>
2022-06-29 19:38:23 +08:00
anqiansong
93b3f5030f
chore: Add command desc & color commands ( #2013 )
...
* Add link & Color sub-commands
* Color sub-commands for unix-like OS
* Remove useless code
* Remove redundant dependency
2022-06-21 20:21:38 +08:00
anqiansong
b44e8f5c75
fix #1977 ( #2034 )
2022-06-21 20:01:42 +08:00
anqiansong
c27e00b45c
feat: Replace mongo package with monc & mon ( #2002 )
...
* Replace mongo package with monc & mon
* Add terminal whitespace
* format code
2022-06-12 23:02:34 +08:00
anqiansong
8be47b9c99
Fix pg subcommand level error ( #1979 )
2022-06-06 19:42:31 +08:00
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
2022-05-30 13:26:58 +08:00
anqiansong
58787746db
fix: Useless delete cache logic in update ( #1923 )
...
* Fix bug: useless delete cache logic in update
* Format code
2022-05-23 09:12:06 +08:00
anqiansong
f486685e99
Fix code generation ( #1897 )
2022-05-13 00:16:17 +08:00
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
2022-05-07 15:40:11 +08:00
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>
2022-04-28 10:01:04 +08:00
Kevin Wan
5bcee4cf7c
fix #1806 ( #1833 )
...
* fix #1806
* chore: refine error text
2022-04-27 00:01:31 +08:00
anqiansong
16c61c6657
chore: Embed unit test data ( #1812 )
...
* Embed unit test data
* Add testdata
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-21 21:49:09 +08:00
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
2022-04-18 14:42:13 +08:00
方航
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>
2022-04-11 10:11:40 +08:00
Kevin Wan
415c4c91fc
fix: model unique keys generated differently in each re-generation ( #1771 )
2022-04-09 00:25:23 +08:00
anqiansong
8dd764679c
Fix #1765 ( #1767 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-07 10:40:21 +08:00
Kevin Wan
faad6e27e3
feat: use go:embed to embed templates ( #1756 )
2022-04-04 13:12:05 +08:00
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
2022-04-02 15:36:06 +08:00
Kevin Wan
6dccfa29fd
feat: let model customizable ( #1738 )
2022-04-01 22:19:52 +08:00
Fyn
f4471846ff
feat(goctl): supports model code 'DO NOT EDIT' ( #1728 )
...
Resolves : #1710
2022-04-01 14:48:45 +08:00
Mikael
d8054d8def
fix -cache=true insert no clean cache ( #1672 )
...
* fix -cache=true insert no clean cache
* fix -cache=true insert no clean cache
2022-03-23 18:55:16 +08:00
Fyn
17e0afeac0
fix(goctl): model method FindOneCtx should be FindOne ( #1656 )
2022-03-17 17:16:53 +08:00