Adam Cameron
querytoStruct function (https://docs.lucee.org/reference/functions/querytostruct.html), but not a structToQuery equiv.Adam Cameron
dswitzer
07/25/2023, 12:42 PMalexpixl8
07/25/2023, 12:43 PMalexpixl8
07/25/2023, 12:44 PMzackster
07/25/2023, 12:51 PMzackster
07/25/2023, 12:54 PMstructToQuery(struct, keyColumnName) ?zackster
07/27/2023, 7:50 AMAdam Cameron
thats a separate point thoughYup. garbage in, garbage out. The docs can mandate what the baseline expectations / requirements are, and what conditions might cause exceptions to be thrown.
Adam Cameron
how far along is the existing import for queryNew for this?"Instead", not "as well". So no preexisting query object; just one is returned from the function. TBH my actual requirement the other day was
arrayOfStructsToQuery, but I just landed on queryToStruct when I was RTFMing and noted the reverse function was not there.
In the end I just used query.addRow(array)Adam Cameron
zackster
07/27/2023, 9:26 AMAdam Cameron
zackster
07/27/2023, 10:51 AMMark Takata (Adobe)
07/27/2023, 2:32 PM