DBeaver12 downloadsRun SQL against a CloudBeaver server from a console tab or from code blocks in your notes.
This is an Obsidian community plugin for CloudBeaver - a web-based database management tool. It lets you run SQL against any database connected to your CloudBeaver server directly from your vault.

After enabling the plugin, open the results panel from the ribbon icon (database symbol) or the Open CloudBeaver
command. Configure your server and connections once under Settings -> CloudBeaver, then write SQL in a
cloudbeaver code block anywhere in your notes:
```cloudbeaver prod
SELECT id, name, created_at
FROM users
WHERE active
```
prod is a connection alias you name in settings - leave it out to use your default connection. Place your cursor
inside the block and press Run in the panel, or Cmd/Ctrl+Enter.
cloudbeaver code blocks, instead of copy-pasting them from elsewhere.SELECT, WITH, SHOW, EXPLAIN, or DESCRIBE
until you explicitly enable writes for it.This plugin does not include a schema browser, autocomplete, result editing, or writing results back into your notes. It runs the SQL you give it and shows you the table - nothing more.
Configure the plugin under Settings -> CloudBeaver:
| Field | Description |
|---|---|
| Server URL | Base URL of your CloudBeaver server, e.g. https://cloudbeaver.example.com |
| Authentication | Username and password (all editions) or API token (CloudBeaver PRO only) |
| Username / Password | Local access credentials - the password is hashed before it's saved, never stored in plain text |
| API token | Token generated by an administrator in CloudBeaver PRO |
| Connections | Fetched from the server; each gets a short alias, a default-database override, and a writes toggle |
| Row limit [default: 200] | Hard cap on rows per query. Leave empty to request CloudBeaver's own maximum, 100,000 rows |
| Query timeout [default: 60s] | Seconds before a running query is treated as timed out |
Requires Obsidian 1.7.2 or later, desktop only. Designed for self-hosted CloudBeaver instances (Community or PRO).
Why doesn't Run do anything when my cursor is in Reading view?
Reading view has no text cursor at all, so there's nothing to detect a block from. Switch to Edit mode (or Live
Preview), click inside a cloudbeaver block, then press Run.
Where are my credentials stored?
In this plugin's data.json, inside your vault, unencrypted. See Where your data lives.
Can I run more than one statement per block?
No. One statement per block, no transactions, no ;-separated batches.
INSERT / UPDATE / DELETE there - it asks for
a one-time confirmation and stays off by default for a reason.Start CloudBeaver:
docker run -d -p 8978:8978 dbeaver/cloudbeaver:latest
Or follow the full installation guide.
Configure authentication - follow the Local Access Authentication guide. Create a user (login/password) or use the admin credentials.
Create a database connection - follow the Create Connection guide.
In Obsidian:
cloudbeaver code block to a note and run it from the results panelDeveloped by Vladimir Ivanov at DBeaver.