Skip to content

h-sphere/sql-seal

Repository files navigation

Obsidian SQLSeal

SQLSeal allows to transform your CSV files located in your vault into fully-fledged SQL database. You can use SQL statements to query this data however you like.

Installation

You can install plugin from the Community Plugins directly from Obsidian, just look for SQLSeal in the marketplace.

Manual Instalation

To manually install the package, open Releases and download .zip of the last one. Unzip it in your vault under .obsidian/Plugins/sqlseal.

Usage

Once you install the plugin, you can use it by creating sqlseal codeblocks in your notes. To create table base on the existing CSV file in your vault simply address it using the following command:

TABLE transactions = file(transactions.csv)

SELECT * FROM transactions LIMIT 10

The code above will create table called transactions based on the transactions.csv file from your vault. Further you can refer to it using regular SELECT statements. You can define multiple tables in a single snippet. You can also point to the tables defined in different snippets within the same note (for now tables stay local to the file).

For more comprehensive documentation head to hypersphere.blog/sql-seal.

Disclaimer

The plugin authors do not take any resposibility for any potential data loss. Always backup your files before usage. That said, plugin does not modify any files in the Vault so you should be fine :)

Stay in Touch!

If you have any questions about the project, ideas or want to share your use-cases, join our Discord Channel!