obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

`SELECT *` equivalent for dataview

Open AB1908 opened this issue 2 years ago • 4 comments

I've got a lot of empty fields in my metadata and sometimes, field names don't match up correctly. In the absence of any schema validation, a SELECT * equivalent would let me see what data I've defined and make corrections where necessary. I imagine this would exclude .file as that would make the table rather messy. It would look something like

table
*
from
folder

AB1908 avatar May 10 '22 13:05 AB1908

Hmm, so just pick all metadata, drop the file field, and then make one column per distinct field?

blacksmithgu avatar May 14 '22 03:05 blacksmithgu

Yup, that'd be cool!

AB1908 avatar May 14 '22 08:05 AB1908

Every tutorial on SQL will tell you to avoid that sort of structure because of the immense overhead it puts on the system. I can't see how this would be any different.

I would also suggest that if you have empty metadata and fields that don't match up then you need to look at how you are storing your data and fix that instead of asking for a feature to work around what seems to be a problem with your metadata

lolbat avatar May 23 '22 18:05 lolbat

Metadata problems are rather common from what I've seen. Not everyone has the chops to do validation. Perhaps you'd be able to suggest how I'd figure out what I need to fix when that's precisely what I'm looking for?

AB1908 avatar May 31 '22 18:05 AB1908

+1 for this one https://github.com/RafaelGB/obsidian-db-folder/issues/377

RafaelGB avatar Dec 29 '22 14:12 RafaelGB