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

코틀린 지원 문의 #55

Open
wicksome opened this issue Aug 19, 2021 · 0 comments
Open

코틀린 지원 문의 #55

wicksome opened this issue Aug 19, 2021 · 0 comments

Comments

@wicksome
Copy link
Contributor

syntactic sugar를 위한 (예를 들어 아래와 같은) 코틀린 확장 지원 계획이 있을까요?
(SqlProvider, JdbcRepositorySupport, ...)

class MerchantSql : SqlGeneratorSupport() {
	  fun selectByIdAndSecret() = """
		    SELECT ${sql.columns<MerchantEntity>()}
		    FROM ${sql.tables<MerchantEntity>()}
		    WHERE id = :id
		      AND secret= :secret
	  """
}

inline fun <reified T> SqlProvider.columns(): String = this.columns(T::class.java)

inline fun <reified T> SqlProvider.tables(): String = this.tables(T::class.java)
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

No branches or pull requests

1 participant