Hi, is there a way to create sql without db conect...
# exposed
b
Hi, is there a way to create sql without db conection or wrapping in transaction. I just want to create string sql query using exposed DSL
2
s
Sql is inherently dialect specific but for basic cases maybe this works:
Copy code
query.prepareSQL(QueryBuilder(false))
b
This requires Db connection and transaction
s
The easiest workaround is probably to connect to an inmemory h2 database then
b
yeah but it felt too hacky 😄
a
This requires a connection because a metadata required to build a query can only be retrieved from the server.