Commit Graph

48 Commits (3d552ea7a8435315cd70079fd64f9d6f20307557)

Author SHA1 Message Date
zzZZzzz888 4835e4fe51
fix: coredump: goctl model mysql ddl --src user_base.sql --dir . area… (#3777)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
12 months ago
guangwu 05020a92e8
fix: primary key unique key simultaneously exist cacheIdPrefix duplicate (#3763)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
12 months ago
POABOB a1bbac3c6c
fix: prevent a crash if there is a unique key constraint with a nil field. (#3770) 12 months ago
guangwu e8c1e6e09b
fix: log format error (#3409) 1 year ago
anqiansong 45bb547a81
(goctl)fix: #3328 (#3348)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
1 year ago
guangwu 63368d8b0c
io/ioutil deprecated (#3217) 2 years ago
anqiansong 9504d30049
fix(goctl): fix redundant import (#2551) 2 years ago
anqiansong f70805ee60
Add strict flag (#2248)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
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
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
anqiansong 8dd764679c
Fix #1765 (#1767)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan a40254156f
refactor: refactor yaml unmarshaler (#1517) 3 years ago
Kevin Wan 4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl (#1481) 3 years ago
spectatorMrZ 240132e7c7
Fix pg model generation without tag (#1407)
1. fix pg model struct haven't tag
2. add pg command test from datasource
3 years ago
Kevin Wan e267d94ee1
chore: update go-zero to v1.2.5 (#1410) 3 years ago
anqiansong 89ce5e492b
refactor file|path (#1409)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan d6ff30a570
chore: fix golint issues (#1396) 3 years ago
行者 f5f2097d14
Updated MySQL生成表结构体遇到关键字db部分保持原字段名定义 (#1369) 3 years ago
anqiansong 44202acb18
Fix issue #1127 (#1131)
* fix #1127

* fix #1127

* fixed unit test

* add go keyword converter

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan 2e12cd2c99
coding style (#1083) 3 years ago
anqiansong 9a724fe907
Add MustTempDir (#1069) 3 years ago
anqiansong 189721da16
Fix issues (#931)
* fix #929

* fix #925

* add test case

* update model README

* fix #929

* fix #929

* fix #929

* refactor dir

* Adding todo comments

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan 02adcccbf4
format code (#884) 3 years ago
fangjianwei 476026e393
Added database prefix of cache key. (#835) 3 years ago
Kevin Wan e47079f0f4
go format with extra rules (#821) 3 years ago
anqiansong 9b2a279948
Fix issues: #725, #740 (#813)
* Fix issues: #725, #740

* Update filed sort

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong ea4f680052
Fix issue #747 (#765)
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong ea01cc78f0
Optimize model nl (#686) 4 years ago
Bo-Yi Wu afd9ff889e
chore: update code format. (#628) 4 years ago
anqiansong 888551627c
optimize code (#579)
* optimize code

* optimize returns & unit test
4 years ago
anqiansong dd393351cc
patch 1.1.5 (#530) 4 years ago
anqiansong d894b88c3e
feature 1.1.5 (#411) 4 years ago
kingxt e6ef1fca12
Code optimized (#523)
* optimized markdown generator

* optimized markdown generator

* optimized markdown generator

* add more comment

* add comment

* add comment

* add comments for rpc tool

* add comments for model tool

* add comments for model tool

* add comments for model tool

* add comments for config tool

* add comments for config tool

* add comments

* add comments

* add comments

* add comments

* add comment

* remove rpc main head info

* add comment

* optimized

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
kingxt f98c9246b2
Code optimized (#493) 4 years ago
Kevin Wan 5e969cbef0
fix golint issues, else blocks (#457) 4 years ago
songmeizi 4d53045c6b
improve data type conversion (#236)
* improve data type conversion

* update doc
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 24fb29a356
patch model&rpc (#207)
* change column to read from information_schema

* reactor generate mode from datasource

* reactor generate mode from datasource

* add primary key check logic

* resolve rebase conflicts

* add naming style

* add filename test case

* resolve rebase conflicts

* reactor test

* add test case

* change shell script to makefile

* update rpc new

* update gen_test.go

* format code

* format code

* update test

* generates alias
4 years ago
Keson 2b7545ce11
spell fix (#167) 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 94645481b1 fix golint issues 4 years ago
miaogaolin ce5961a7d0
fix goctl model (#61) 4 years ago
kevin 8dd93d59a0 refactor code 4 years ago
Keson 3a4e1cbb33
fix bug: miss time import (#36)
* add execute files

* add protoc-osx

* add rpc generation

* add rpc generation

* add: rpc template generation

* optimize gomod cache

* add README.md

* format error

* reactor templatex.go

* update project.go & README.md

* fix bug: miss time import
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
kevin e79c42add1 add go report badge 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