<@U01SP2GJYAU> I was wondering if I could re-use a...
# komapper
d
@Toshihiro Nakamura I was wondering if I could re-use a Command for different results by declaring it Exec and mapping it myself after running the dryRun query with Jasync, or is Exec parsed differently in way that wouldn't accept regular select statements?
t
Exec can handle
SELECT
statements, but creating a dedicated class like the one below might make the intent clearer.
Copy code
open class DoNothing : Many<Unit>( { select {  } })

@KomapperCommand(
    """
    select address_id, street, version from address order by address_id
    """,
)
class SelectAddress : DoNothing()
👍🏼 1