I am looking at the exposed SQL library.. How do I...
# exposed
r
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
Take a look at
checkMappingConsistence
r
thanks
s
Maybe you also need some code from SchemaUtils.kt
I havent yet used this myself
r
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
There are multiple issues with requests to support classes generation from an existing scheme. So PR is very-very welcome.
🚬 1