Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate 05_sql_template #22

Merged
merged 3 commits into from
Jul 27, 2015

Conversation

edvakf
Copy link
Contributor

@edvakf edvakf commented Jul 25, 2015

refs #7

@seratch
Copy link
Member

seratch commented Jul 25, 2015

レビューしやすくなりましたね。ありがとうございます。

@edvakf
Copy link
Contributor Author

edvakf commented Jul 26, 2015

指摘されたところを反映しました。

ちなみに、翻訳のことではないですが、

#syntax(String) で SyntaxProvider を返します。これはスレッドセーフなのでキャッシュして使い回す事ができます。

というのはどういうことなのでしょうか?スレッドセーフになるような特別なコードになっているのでしょうか?

@seratch
Copy link
Member

seratch commented Jul 27, 2015

新しい SQLSyntax オブジェクトを生成する役割しか持っていないので、スレッドをまたいでアクセスされて困る状態を保持していないということですね。「念のため、毎回メソッドの中で生成した方がよいのでは?」と思われないよう入れた一文でした。

@seratch
Copy link
Member

seratch commented Jul 27, 2015

翻訳ありがとうございます。

seratch added a commit that referenced this pull request Jul 27, 2015
@seratch seratch merged commit 5914072 into scalikejdbc:master Jul 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants