No description
Find a file
Kacper Kula f59065a794
Merge pull request #4 from h-sphere/fix/fix-duplicate-column-issue
[fix] 0.4.1 - duplicate column issue
2024-08-25 11:58:11 +01:00
.github chore: fixing building script 2024-08-10 16:33:13 +01:00
docs chore: fixing library after reviews 2024-05-12 20:01:30 +01:00
src fix: fixing issue with duplicated column issue when transforming to camel case 2024-08-25 11:54:50 +01:00
.editorconfig chore: initial version 2024-04-19 15:53:50 +01:00
.eslintignore chore: initial version 2024-04-19 15:53:50 +01:00
.eslintrc chore: initial version 2024-04-19 15:53:50 +01:00
.gitignore fix: fixing issue with duplicated column issue when transforming to camel case 2024-08-25 11:54:50 +01:00
.npmrc chore: initial version 2024-04-19 15:53:50 +01:00
.prettierrc mvp 2024-04-30 22:52:52 +01:00
CHANGELOG.md chore: updated changelog and version 2024-08-25 11:57:25 +01:00
esbuild.config.mjs fix: fixed issue with the better-sqlite3 files. 2024-08-23 21:17:48 +01:00
LICENSE Create LICENSE 2024-05-06 17:43:49 +01:00
main.ts feat: ability to query vault data finished (POC) 2024-05-06 17:23:32 +01:00
manifest.json chore: updated changelog and version 2024-08-25 11:57:25 +01:00
package-lock.json fix: fixed issue with the better-sqlite3 files. 2024-08-23 21:17:48 +01:00
package.json chore: updated changelog and version 2024-08-25 11:57:25 +01:00
pnpm-lock.yaml fix: fixed issue with the better-sqlite3 files. 2024-08-23 21:17:48 +01:00
README.md chore: adding link to the discord channel. 2024-08-25 11:42:17 +01:00
styles.css chore: fixing issue with styles 2024-05-07 17:39:27 +01:00
tsconfig.json skipping typecheck for now 2024-05-03 21:33:19 +01:00
version-bump.mjs chore: initial version 2024-04-19 15:53:50 +01:00
versions.json chore: updated changelog and version 2024-08-25 11:57:25 +01:00
yarn.lock fix: fixed issue with the better-sqlite3 files. 2024-08-23 21:17:48 +01:00

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

Once the library is published in Obsidian Official Community Repository: just head to Community Tab in your Obisidian Settings page and search for "SQLSeal".

Note: Please note that this plugin is in early phase. Basic functionality should work just fine but I do not take any responsibility for potential data loss and damage to your Vault.

On the first try plugin will download better_sqlite3.node binary to run database locally. This is due to the Obsidian restrictions to bundle everything in the main.js. The whole process of generating it is public and you can check it in the GitHub workflows.

The plugin creates database file in configuration folder .obsidian named sqlseal.db.

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.

Stay in Touch!

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