← All articles

Why your SQL client needs policies

Examples of guardrails at the moment a query is run, and how personal rules differ from team governance.

01 · FIELD GUIDE

Catch the obvious mistake first

An accidental write without WHERE is easy to spot after the damage and easy to miss while moving fast. Studio includes default blocks for UPDATE and DELETE without an effective WHERE clause, plus DROP and TRUNCATE.

SQL EXAMPLEREAD BEFORE RUNNING
DELETE FROM orders;
-- Blocked by the default DELETE-without-WHERE policy
Illustrative SQL: the policy evaluates the statement before it reaches the database.
ROWSET STUDIO / POLICIESWORKFLOW VIEW
!
Block DELETE without a WHERE clauseBlocks DELETE statements with no effective WHERE clause.
ON
!
Block UPDATE without a WHERE clauseBlocks UPDATE statements with no effective WHERE clause.
ON
Condensed illustration of Studio's built-in policy list.
02 · FIELD GUIDE

Add limits that match your work

Personal policies can block a table or schema, cap returned rows, stop long queries, and restrict writes to a time window. Safe mode on a connection can block all writes. These controls are useful alongside least-privilege database credentials and backups.

SQL EXAMPLEREAD BEFORE RUNNING
SELECT id, customer_id, total
FROM orders
WHERE created_at >= '2026-09-01'
LIMIT 100;
A bounded read is easier to review and less likely to overwhelm the result grid.
ROWSET STUDIO / SQL WORKSPACEWORKFLOW VIEW
Database Explorer◉ PostgreSQL◉ MySQL◉ MariaDB▾ orders
Table queryRun selected
SELECT id, total, status
FROM orders
WHERE customer_id = 1001
LIMIT 100;
id
total
status
3001
1299.90
paid
3007
89.90
pending
A compact illustration of the Rowset Studio query workspace.
03 · FIELD GUIDE

When the rules must apply to everyone

Rowset Teams adds role-based connection access, shared policies, approvals, masking, row filters and a centralized activity trail. The team path is for organizations that need a consistent decision about who can access a database and what they can see.

Studio's personal policies remain local to one person's workspace. Teams is commercial and self-hosted; shared row backups and Restore are planned and are not available on the Teams server yet.

ROWSET TEAMS / GOVERNANCEWORKFLOW VIEW
01 / ACCESSRoles and connectionsDecide who can reach production.
02 / CONTROLPolicies and approvalsReview sensitive changes before execution.
03 / VISIBILITYMasking and auditProtect results and retain an activity trail.
Illustration of the Teams governance path.
Ready to work with more confidence? Explore Rowset Studio and Teams