Skip to content

Commit

Permalink
H2Dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
babyfish-ct committed Mar 25, 2022
1 parent 683337c commit c2a8f16
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.babyfish.kimmer.sql.meta.ScalarProvider
import org.babyfish.kimmer.sql.meta.enumProviderByString
import org.babyfish.kimmer.sql.runtime.DefaultR2dbcExecutor
import org.babyfish.kimmer.sql.runtime.R2dbcExecutor
import org.babyfish.kimmer.sql.runtime.dialect.H2Dialect
import org.slf4j.LoggerFactory
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
Expand All @@ -19,6 +20,9 @@ import org.springframework.r2dbc.connection.init.ResourceDatabasePopulator
@SpringBootApplication
class ExampleApplication {

@Bean
fun dialect() = H2Dialect()

@Bean
fun genderProvider() =
enumProviderByString(Gender::class) {
Expand Down

0 comments on commit c2a8f16

Please sign in to comment.