sqlite_modern_cpp icon indicating copy to clipboard operation
sqlite_modern_cpp copied to clipboard

Unknown number of columns

Open hidai-pfr opened this issue 1 year ago • 1 comments

Is it possible to process queries where the number of columns is not determined at compile time?

hidai-pfr avatar Sep 13 '23 13:09 hidai-pfr

i dont know what you mean by that, i guess you could make a loop that just extracts with the >> operator repeatedly into a variable. Since these queries rely on runtime evaluations there is no "exact" type defined anyways, so as long as you somehow get to know how many cols the row should have at runtime its possible

codethinki avatar Dec 15 '23 18:12 codethinki