I am looking at the exposed SQL library.. How do I interact with a table that already exists in the database and was created long before Kotlin? I guess I must declare it but ensure that the properties or schema matches perfectly. Is there anyway to ensure that I match the properties of the in this case, MySQL table ?
s
spand
11/29/2019, 10:02 AM
Take a look at
checkMappingConsistence
r
Roy Nard
11/29/2019, 10:03 AM
thanks
s
spand
11/29/2019, 10:05 AM
Maybe you also need some code from SchemaUtils.kt
spand
11/29/2019, 10:05 AM
I havent yet used this myself
r
Roy Nard
11/29/2019, 10:44 AM
ok, thanks for the extra tip.
maybe i should create a PR to convert mysql to DSL object..
dont know if it there is demand for such thing..
t
tapac
11/29/2019, 10:58 AM
There are multiple issues with requests to support classes generation from an existing scheme.
So PR is very-very welcome.