Skip to content

Obsidian Notes Table

Table Name: obsidian_notes

If you need to reference a property of a object do not forget to use -> and not .

Column NameTypeDescription
pathstringFull path to the markdown note
namestringThe name of the note including the extension
contentstringThe raw content of the markdown file
internalPathstringFull path to the markdown note minus the extension
parentFolderstringThe path of the parent folder for this note
basenamenumberJust the name of the note
extensionnumberThe extension of the note. Usually md
statobjectcontains the time and size details of the note
creatednumberTime the note was creates as a serial
modifiednumberTime the note was last modified as a serial
sizenumberSize of the note in bytes
linksLinkCache[]Array of links cached by Obsidian
embedsEmbedCache[]Array of embeds cached by Obsidian
tagsstring[]Array of tags cached by Obsidian
headingsHeadingCache[]Array of headings cached by Obsidian
sectionsSectionCache[]Array of sections cached by Obsidian
frontmatterFrontMatterCache[]Array of frontmatter cached by Obsidian
blocksRecord<string, BlockCache>Array of blocks cached by Obsidian
listItemsobjectSee the obsidian_lists table for the structure of the object
tasksobjectSee the obsidian_tasks table for the structure of the object

LinkCache structure

text
{
  link: string;
  original: string;
  // if title is different than link text, in the case of [[page name|display name]]
  displayText?: string;
  position: Pos;
}

Pos structure

text
Pos {
  start: Loc;
  end: Loc;
}

Loc structure

text
Loc {
  line: number;
  col: number;
  offset: number;
}

EmbedCache structure

text
{
  link: string;
  original: string;
  // if title is different than link text, in the case of [[page name|display name]]
  displayText?: string;
  position: Pos;
}

HeadingCache structure

text
{
  heading: string;
  level: number;
  position: Pos;
}

SectionCache structure

text
{
  // The block ID of this section, if defined.
  id?: string | undefined;
  //The type string generated by the parser.
  type: string;
  position: Pos;
}

FrontMatterCache structure

text
{
  [key: string]: any;
  position: Pos;
}