From c2a8f16dcf6ce5aa40e4c37ae1e02054f8a34fb7 Mon Sep 17 00:00:00 2001 From: babyfish-ct Date: Sat, 26 Mar 2022 05:50:10 +0800 Subject: [PATCH] H2Dialect --- .../babyfish/graphql/provider/example/ExampleApplication.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/src/main/kotlin/org/babyfish/graphql/provider/example/ExampleApplication.kt b/example/src/main/kotlin/org/babyfish/graphql/provider/example/ExampleApplication.kt index 602e96b..c01dbff 100644 --- a/example/src/main/kotlin/org/babyfish/graphql/provider/example/ExampleApplication.kt +++ b/example/src/main/kotlin/org/babyfish/graphql/provider/example/ExampleApplication.kt @@ -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 @@ -19,6 +20,9 @@ import org.springframework.r2dbc.connection.init.ResourceDatabasePopulator @SpringBootApplication class ExampleApplication { + @Bean + fun dialect() = H2Dialect() + @Bean fun genderProvider() = enumProviderByString(Gender::class) {