These are Infozense's recommendations, built on documented DBeaver features. Each pattern can stand on its own, and patterns can be combined; expect to run two or three side by side.
Which DBeaver edition does each pattern need? It depends on your team, your databases and the licences you already have. Ask us, and we'll match the patterns to your setup.
Analysts ask questions in AI Chat from a browser, with nothing to install. Behind it:
What stays human: before a number goes into a decision, someone who reads SQL checks the query behind it.
DBeaver shows you the plan; AI reads it with you. The AI explains execution plans, finds why a query fails and proposes a fix, and describes unfamiliar tables. For this work it mainly needs metadata. Query text and error messages can still contain data values, so the scope stays narrow.
What stays human: the DBA decides whether an index or rewrite goes to production.
For deeper investigations, an AI coding agent can work through DBeaver's connections: see Pattern 6 →During a data transfer, AI suggests target data types for each column from the schema and sample data. Because sample rows go to the AI provider:
What stays human: an engineer reviews every suggested mapping before the task is saved.
DBeaver connects to a private model running on your own servers, through Ollama or through a service with an OpenAI-compatible API (DBeaver 26.3 and later), so prompts, schema and any sample data stay inside your network.
What stays human: the same review rules as Patterns 1 and 2. A private model is private, not infallible.
AI helps write the SQL in DBeaver. Execution happens somewhere predictable:
dbvr reads the same connections and projects as DBeaver desktop, so when they share a workspace, nothing is configured twice. dbvr Community is free. Exporting to S3, Google Cloud Storage or Azure, and pulling credentials from a secret manager (a vault such as HashiCorp Vault, AWS Secrets Manager or Azure Key Vault), need commercial dbvr.
What stays human: every script is reviewed before it is committed. No AI runs at execution time.
More on pipeline access: dbvr at Infozense →Already using DBeaver? Adding an AI coding agent on top of it can save time on investigation and exploration, without new connections to manage. DBeaver can run as a local MCP server, so the agent works with your databases through connections you already govern.
Intended uses:
What stays human: approving the agent's tool calls, and reviewing anything it proposes before it reaches production.
Agents running on servers instead of laptops need a different design: see Agent access provisioning →An AI agent can connect to a database directly, through ODBC, a driver or a database MCP server. For one developer with a read-only account on non-sensitive data, that can be enough.
Once credentials, teams or sensitive data are involved, going through DBeaver adds:
| Direct connection | Through DBeaver | |
|---|---|---|
| Password | Sits in the agent's config or script | Stays in DBeaver's connection store |
| What runs | Whatever the agent's script does | Tools set to ask for approval, one connection per endpoint |
| Many databases | Set up per database, per developer | The connections already set up in DBeaver (shared across a team with CloudBeaver or Team Edition) |
| Who did what | Database logs only | Query history per user with CloudBeaver Enterprise or Team Edition; with the desktop MCP server, the database log |
Either way, the database account sets the hard limit.
The settings we change before anyone starts using AI on a real database.
Out of the box, DBeaver's AI is turned on and runs the read queries it writes without asking. That's a good default for one person, and the first thing to set for a team.
| Setting | Default | What we set |
|---|---|---|
| AI-generated SELECT | Execute immediately | "Show confirmation" for anyone working on shared or production databases (a global preference; DBeaver's docs recommend it) |
| AI-generated INSERT, UPDATE, DELETE | Show confirmation | Keep it. Never "Execute immediately" |
| AI-generated CREATE, ALTER, DROP | Show confirmation | Keep it |
| Other AI-generated statements | Show confirmation | Keep it |
| Metadata sent to AI | Asked per connection | Scope limited to the schemas each team needs (agreed per team; the database grant enforces it) |
| Sample rows read by AI tools | 10 rows (max 200) | Kept low, or the "Read table sample rows" tool disabled |
| Production connections | Development type | Production type: auto-commit off, confirmation for data changes |
| Reporting connections | Read/write | Read-only connection and a read-only database account |
| MCP access | Off | On only for named connections, with tools set to ask |
| AI provider and model | Desktop: each user configures their own | CloudBeaver / Team Edition (web): one admin-managed Global profile; users can't change the model |
| AI on machines where it isn't approved | On | Switched off by the administrator, so it can't be re-enabled from Preferences (dbeaver.ini locked down) |
| Log of AI requests (desktop) | Off | Switched on for teams that handle regulated data. It's a per-user debug log, not an audit trail |
| Statement timeout on AI accounts | Database default (often none) | Set on the database account, e.g. 60 seconds, so a heavy AI query can't tie up the database |
The rule behind the table: DBeaver's settings reduce mistakes. The database account sets the limit. Every pattern relies on both.
These patterns don't replace your AI governance. They give the people responsible for it real controls to hold.
| Your governance decision | The lever | Who holds it |
|---|---|---|
| Is AI allowed here at all? | AI switched on or off for a whole CloudBeaver server, or switched off on a desktop install so it can't be re-enabled from Preferences | IT / platform administrator |
| Which AI provider and model are approved? | A company AI profile in CloudBeaver: approved provider, model and API key, which users can't change | AI governance owner, through the CloudBeaver administrator |
| Who may use AI? | Team Edition's built-in roles: by default, AI features for administrators, developers and managers, not for editors and viewers | Team Edition administrator |
| Which data may AI see? | AI data sharing switched on per connection, metadata scope limited, and database accounts that only see approved views | Data owner + DBA |
| What may AI-written SQL do? | Confirmation rules for data and structure changes, read-only connections, and database grants as the hard limit | DBA |
| Which connections may agents use? | MCP switched on only for named connections, with tools set to ask for approval | Platform owner |
| Can we show what happened? | CloudBeaver Query Manager: administrators see queries from all users, filterable by user, including queries run through CloudBeaver's own MCP server. DBeaver doesn't document a central history for the desktop MCP server, so rely on the database's audit log there | Audit / risk team |
On the desktop, provider choice and most AI settings are set by each user. An administrator can switch AI off for an install, but DBeaver's documented admin controls don't lock it to one approved provider. Organizations that need that level of control run AI through CloudBeaver Enterprise or Team Edition's web client, where these settings live on the server.
Some decisions no tool setting can make for you:
Infozense helps with both sides: setting the levers in DBeaver, and building the governance process around them.
| You are | Start with | Then add |
|---|---|---|
| An analytics team waiting on SQL writers | Self-service analytics | Private AI, if the data is sensitive |
| A DBA team | Query tuning | AI drafts, dbvr runs |
| A data engineering team | AI-assisted migration | AI drafts, dbvr runs |
| A regulated organization | Private AI | Self-service analytics |
| A team already experimenting with agents | Non-human access audit | AI agents through DBeaver |
We supply licences for DBeaver editions and dbvr, and we offer these patterns as AI Safe Deployment: assessment, read-only accounts and masked views, provider and private model setup, connection policies, MCP guardrails, and training in Thai.
If you don't yet know what your existing pipelines and service accounts can reach, start there. Adding AI comes after: Non-Human Database Access Audit.