Skip to content

Commit e36da7f

Browse files
authored
Merge pull request #53 from ric-v/main
feat: Update documentation to reflect new connection safety features …
2 parents 7ec71e0 + 1852d66 commit e36da7f

5 files changed

Lines changed: 102 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10-
## [Unreleased] - 0.8.1
10+
## [0.8.1] - 2026-02-08
1111

1212
### Added
1313
- **Connection Safety Features**: Environment tagging (🔴 PROD, 🟡 STAGING, 🟢 DEV), read-only mode enforcement, query safety analyzer with risk scoring, and status bar risk indicator.

MARKETPLACE.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@
3333
| Feature | Description |
3434
|---------|-------------|
3535
| 🔌 **Secure Connections** | Manage multiple connections with VS Code SecretStorage encryption |
36+
| 🛡️ **Connection Safety** | Environment tagging (🔴 PROD, 🟡 STAGING, 🟢 DEV), read-only mode, query safety analyzer |
3637
| 📊 **Live Dashboard** | Real-time metrics, active query monitoring, and performance graphs |
3738
| 📓 **SQL Notebooks** | Interactive notebooks with rich output, AI assistance, and export options |
3839
| 🌳 **Database Explorer** | Browse tables, views, functions, types, extensions, roles, and FDWs |
3940
| 🛠️ **Object Operations** | Full CRUD operations, scripts, VACUUM, ANALYZE, REINDEX |
41+
| 📊 **Table Intelligence** | Profile, activity monitor, index usage analytics, definition viewer |
42+
| 🔍 **EXPLAIN CodeLens** | One-click EXPLAIN/ANALYZE with results in notebooks |
43+
| 🛡️ **Auto-LIMIT** | Automatic query protection with configurable row limits (default 1000) |
4044
| 🌍 **Foreign Data Wrappers** | Manage foreign servers, user mappings, and tables |
4145
| 🤖 **AI-Powered** | GitHub Copilot, OpenAI, Anthropic, and Google Gemini integration |
4246
| ⌨️ **Developer Tools** | IntelliSense, keyboard shortcuts, PSQL terminal access |
@@ -72,13 +76,26 @@
7276

7377
### 🔐 Secure & Reliable
7478
- VS Code SecretStorage for credentials
75-
- Safe connection management
79+
- Environment tagging & read-only mode
80+
- Query safety analyzer with risk scoring
81+
- Auto-LIMIT protection
7682
- Transaction support
77-
- Data integrity protection
7883

7984
</td>
8085
<td>
8186

87+
### 📊 Performance Intelligence
88+
- Table profiling with size breakdown
89+
- Real-time activity monitoring
90+
- Index usage analytics
91+
- Bloat detection & warnings
92+
- EXPLAIN CodeLens for optimization
93+
94+
</td>
95+
</tr>
96+
<tr>
97+
<td>
98+
8299
### 🚀 Developer Friendly
83100
- 🤖 GitHub Copilot integration
84101
- Keyboard shortcuts

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@
3636
## ✨ Key Features
3737

3838
- 🔌 **Secure Connections** — VS Code SecretStorage encryption
39+
- 🛡️ **Connection Safety** — Environment tagging (🔴 PROD, 🟡 STAGING, 🟢 DEV), read-only mode, query safety analyzer
3940
- 📊 **Live Dashboard** — Real-time metrics & query monitoring
4041
- 📓 **SQL Notebooks** — Interactive notebooks with AI assistance
4142
- 🌳 **Database Explorer** — Browse tables, views, functions, types, FDWs
4243
- 🛠️ **Object Operations** — CRUD, scripts, VACUUM, ANALYZE, REINDEX
44+
- 📊 **Table Intelligence** — Profile, activity monitor, index usage, definition viewer
45+
- 🔍 **EXPLAIN CodeLens** — One-click query analysis directly in notebooks
46+
- 🛡️ **Auto-LIMIT** — Intelligent query protection (configurable, default 1000 rows)
4347
- 🌍 **Foreign Data Wrappers** — Manage foreign servers, user mappings & tables
4448
- 🤖 **AI-Powered** — Generate, Optimize, Explain & Analyze (OpenAI, Anthropic, Gemini)
4549
- 📤 **Export Data** — Export results to CSV, JSON, or Excel
@@ -64,8 +68,31 @@
6468
### ⚡ Powerful Features
6569
- Interactive SQL notebooks
6670
- 🤖 AI-powered Copilot & agentic support
67-
- Advanced query management
71+
- Table intelligence & performance insights
6872
- Complete CRUD operations
73+
- EXPLAIN CodeLens for query analysis
74+
75+
</td>
76+
</tr>
77+
<tr>
78+
<td>
79+
80+
### 🛡️ Production-Ready Safety
81+
- Environment tagging (Production/Staging/Dev)
82+
- Read-only mode enforcement
83+
- Query safety analyzer with risk scoring
84+
- Auto-LIMIT for SELECT queries
85+
- Status bar risk indicators
86+
87+
</td>
88+
<td>
89+
90+
### 📊 Performance Insights
91+
- Table profile with size & statistics
92+
- Real-time activity monitoring
93+
- Index usage analytics
94+
- Bloat detection & warnings
95+
- Complete table definitions
6996

7097
</td>
7198
</tr>

docs/ROADMAP.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,23 @@
9595

9696
---
9797

98-
## 🧠 Phase 6: Data Intelligence & Productivity
99-
100-
### Query Productivity
101-
- [ ] **Query history with rerun & diff**
102-
- [ ] **Auto `LIMIT` / sampling for SELECT**
103-
- Implementation: Automatically append `LIMIT 100` if not present when in browsing mode.
104-
- [ ] **One-click `EXPLAIN` / `EXPLAIN ANALYZE`**
105-
- Implementation: CodeLens or button to wrap current query in `EXPLAIN ANALYZE` and visualize output.
106-
107-
### Table Intelligence
108-
- [ ] **Table profile**
109-
- Implementation: Fetch row count, approximate size, null %, distinction stats.
110-
- [ ] **Quick stats & recent activity**
111-
- Implementation: Show recent tuples inserted/updated/deleted from `pg_stat_user_tables`.
112-
- [ ] **Open definition / indexes / constraints**
113-
- Implementation: Quick view for DDL, indexes list, and foreign key constraints.
98+
## 🧠 Phase 6: Data Intelligence & Productivity ✅ COMPLETE
99+
100+
### Query Productivity ✅ COMPLETE
101+
- [x] **Auto `LIMIT` / sampling for SELECT**
102+
- Implementation: Automatically append `LIMIT 1000` (configurable) if not present. Smart detection skips queries with existing LIMIT/OFFSET. Auto-disabled in read-only mode.
103+
- [x] **One-click `EXPLAIN` / `EXPLAIN ANALYZE`**
104+
- Implementation: CodeLens buttons on all SQL queries to wrap in `EXPLAIN` or `EXPLAIN ANALYZE`. Results inserted as new notebook cell for seamless workflow.
105+
106+
### Table Intelligence ✅ COMPLETE
107+
- [x] **Table profile**
108+
- Implementation: Comprehensive statistics including approximate row count, storage size breakdown (table/indexes/TOAST), column-level stats (null %, distinct values, correlation), and complete column definitions.
109+
- [x] **Quick stats & recent activity**
110+
- Implementation: Real-time insights from `pg_stat_user_tables` showing access patterns (sequential/index scans), data modifications (inserts/updates/deletes/HOT updates), table health metrics (live/dead rows, bloat ratio), and maintenance history (VACUUM/ANALYZE timestamps).
111+
- [x] **Index usage analytics**
112+
- Implementation: Performance insights for all indexes including usage statistics (scans, tuples read/fetched), index definitions with DDL and size, automatic detection of unused indexes with recommendations.
113+
- [x] **Open definition / indexes / constraints**
114+
- Implementation: Complete table structure viewer with generated CREATE TABLE DDL, all constraints (PRIMARY KEY, UNIQUE, FOREIGN KEY, CHECK), complete index definitions, and incoming foreign key relationships.
114115

115116
---
116117

docs/index.html

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,56 @@ <h2 class="gradient-text">Everything You Need</h2>
183183
<p class="section-subtitle">Comprehensive database management tools built for modern development</p>
184184

185185
<div class="feature-grid">
186+
<div class="card feature-card">
187+
<div class="card-icon">🛡️</div>
188+
<h3>Connection Safety</h3>
189+
<p>Production-ready safety features for enterprise environments.</p>
190+
<ul class="feature-list">
191+
<li>Environment tagging (🔴 PROD, 🟡 STAGING, 🟢 DEV)</li>
192+
<li>Read-only mode enforcement</li>
193+
<li>Query safety analyzer with risk scoring</li>
194+
<li>Status bar risk indicators</li>
195+
</ul>
196+
</div>
197+
186198
<div class="card feature-card">
187199
<div class="card-icon">🔐</div>
188200
<h3>Secure Connections</h3>
189201
<p>Enterprise-grade security for your database credentials.</p>
190202
<ul class="feature-list">
191203
<li>VS Code SecretStorage encryption</li>
192204
<li>Multiple simultaneous connections</li>
193-
<li>One-click connect/disconnect</li>
205+
<li>Auto-LIMIT protection (default 1000 rows)</li>
194206
<li>Connection string import</li>
195207
</ul>
196208
</div>
197209

198210
<div class="card feature-card">
199211
<div class="card-icon">📊</div>
212+
<h3>Table Intelligence</h3>
213+
<p>Comprehensive insights into table performance and health.</p>
214+
<ul class="feature-list">
215+
<li>Table profile with size breakdown & statistics</li>
216+
<li>Real-time activity monitoring</li>
217+
<li>Index usage analytics</li>
218+
<li>Bloat detection & complete definitions</li>
219+
</ul>
220+
</div>
221+
222+
<div class="card feature-card">
223+
<div class="card-icon">🔍</div>
224+
<h3>EXPLAIN CodeLens</h3>
225+
<p>One-click query analysis directly in your notebooks.</p>
226+
<ul class="feature-list">
227+
<li>EXPLAIN & EXPLAIN ANALYZE buttons</li>
228+
<li>Results inserted as notebook cells</li>
229+
<li>Performance optimization insights</li>
230+
<li>Query execution plan visualization</li>
231+
</ul>
232+
</div>
233+
234+
<div class="card feature-card">
235+
<div class="card-icon">📈</div>
200236
<h3>Live Dashboard</h3>
201237
<p>Real-time database metrics and performance monitoring.</p>
202238
<ul class="feature-list">

0 commit comments

Comments
 (0)