I don’t seem to be able to find any documentation on the best practice for getting SQL data directly into a Dataset.
Can anyone suggest an efficient method?
At the same time, I am sure somewhere in the documentation I saw a fast way of creating a Dataset in which first the list of keys were specified, and then a list of all the values were specified. So rather than something like…
dataset = Dataset[{<| "a" -> 1, "b" -> 2|>, <| "a" -> 3, "b" -> 4|>}]
…which works, but is rather long-winded with lots of records, you’d do something like…
dataset = Dataset[<| {"a", "b" }|> -> {{1, 2}, {3, 4}}]
…which is admirably terse with lots of records, but has the very small disadvantage that it doesn’t work at all.
My two questions are related, because if something like the second method of Dataset[] creation actually existed, it would be pretty simple to turn the results of a SQL data query into a functioning Dataset[] by using a SQLExecute[] option like “ShowColumnHeadings” → True
Any thoughts, anyone?
