You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use strman.format, I have to wrap the parameters in an Array as stated, but the documentation shows differently:
const select = `SELECT * FROM CONTACTS WHERE NAME LIKE '%{0}%' AND EMAIL LIKE '%{1}%'`
format(select, 'DANIEL', 'GMAIL')
// => `SELECT * FROM CONTACTS WHERE NAME LIKE '%DANIEL%' AND EMAIL LIKE '%GMAIL%'`
In my tests, I have to use:
format(select, ['DANIEL', 'GMAIL'])
I prefer the documented format (without an Array). Is it possible to also support?
The text was updated successfully, but these errors were encountered:
When I use strman.format, I have to wrap the parameters in an Array as stated, but the documentation shows differently:
In my tests, I have to use:
I prefer the documented format (without an Array). Is it possible to also support?
The text was updated successfully, but these errors were encountered: