obsidian-db-folder: [BUG]: Special characters on column names affects dv query

Contact Details

brandonkboswell@gmail.com

Present your request

I want to see a query example in the docs when setting up a new database. I am trying to create dashboards for specific folders (without having to have the database in those folders), but I can’t seem to get the syntax right or find a good example. I’m trying FROM "2. areas" and it says it is valid, but when I go to open the database I get an error obtaining query result, using current folder instead

For which platform do you request this request??

Desktop

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Fixed! will be available with the next version =)

export function generateDataviewTableQuery(columns: TableColumn[], fromQuery: string): string {
    return `TABLE ${columns
        .filter((col) => !col.isMetadata)
        .map((col) => `"${col.key}"`) // Added quotes to every column name to fix it
        .join(",")},${DatabaseCore.DATAVIEW_FILE},${DatabaseCore.FRONTMATTER_KEY} ${fromQuery}`
}