dave08
10/10/2024, 11:43 AM/*-
for removing whitespace before the directive), this could be useful when declaring more complex @KomapperCommands
, keeping normal formatting for the sql while still staying within the editor's bounderies (not having to scroll horizontally too much...), what do you think @Toshihiro Nakamura?dave08
10/10/2024, 11:46 AMdave08
10/10/2024, 11:48 AMToshihiro Nakamura
10/10/2024, 12:11 PMselect * from address where
version = /*version*/0
/*%if street != null*/
and
street = /*street*/''
/*%end*/
order by address_id
If the street
parameter is null, it will be converted to the following SQL:
select * from address where
version = ?
order by address_id
So, in most cases, unnecessary spaces shouldn’t be an issue. However, what kind of SQL template are you using in your use case?dave08
10/10/2024, 12:14 PM