Skip to content

生成時のコードにいくつかのメソッドを追加する#47

Merged
fujiwara402 merged 15 commits intomasterfrom
add-useful-methods
Jun 1, 2018
Merged

生成時のコードにいくつかのメソッドを追加する#47
fujiwara402 merged 15 commits intomasterfrom
add-useful-methods

Conversation

@PyYoshi
Copy link
Contributor

@PyYoshi PyYoshi commented Jun 1, 2018

以下メソッドを生成するようにしました.

  • QueryOne: 指定レコードを1つ取得する
  • Count: 指定レコードをCountする
  • Query: 指定レコードを複数取得する
  • Exec: クエリを実行する

生成されたコードに変更があるので破壊的変更となります.


その他の変更点:

  • MySQL5.7へ
  • go 1.10.2へ
  • depのファイルフォーマットを更新
  • CLIのUsageメソッドでr利用しているFprintf文を修正

@codecov
Copy link

codecov bot commented Jun 1, 2018

Codecov Report

Merging #47 into master will increase coverage by 3.29%.
The diff coverage is 51.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #47      +/-   ##
==========================================
+ Coverage   79.18%   82.47%   +3.29%     
==========================================
  Files          55       58       +3     
  Lines        2570     2602      +32     
==========================================
+ Hits         2035     2146     +111     
+ Misses        523      433      -90     
- Partials       12       23      +11
Impacted Files Coverage Δ
cmd/sqlabble/generator/converter.go 80.34% <ø> (+54.33%) ⬆️
builder/errors.go 0% <0%> (ø)
cmd/sqlabble/main.go 12.76% <0%> (ø) ⬆️
errors.go 0% <0%> (ø)
sqlabble.go 100% <100%> (ø)
cmd/sqlabble/generator/generator.go 55.55% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a64b6e...0baf708. Read the comment docs.

@PyYoshi
Copy link
Contributor Author

PyYoshi commented Jun 1, 2018

Squashしてマージお願いします!

@fujiwara402 fujiwara402 merged commit 5cac8a3 into master Jun 1, 2018
@fujiwara402 fujiwara402 deleted the add-useful-methods branch June 1, 2018 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants