dbviewer 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -36
- data/app/views/dbviewer/logs/index.html.erb +17 -1
- data/lib/dbviewer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b12cc2cd164b8f28545ecdcc490ce5a9351a469c4d702ed87a64d5f617713f82
|
4
|
+
data.tar.gz: 919d3a36d71de8320f2d7001c0a2b31e8b9c9b9ce0ee29f1ed31e40aa3ec4189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b101e0c8b7e4f64ec7b8b0d8b446a555e860195a9ffa2b99bc34532c35e1c7b8eea87c7072d316265115194796f02ebfea487f9a3d4859036eebd7b2f1d89221
|
7
|
+
data.tar.gz: '096938554cc411491970f725d117df540112779247a210c71ff8b14bd7f418580721c6c91830c2b6083394528f3ebaab08dce8ff111bd421fd0002a5e04b416d'
|
data/README.md
CHANGED
@@ -9,42 +9,18 @@ It's designed for development, debugging, and database analysis, offering a clea
|
|
9
9
|
|
10
10
|
## ✨ Features
|
11
11
|
|
12
|
-
- **Dashboard
|
13
|
-
- **Table Overview
|
14
|
-
- **Detailed Schema Information
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
- **
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
-
|
24
|
-
- Browse table records with customizable pagination (10, 20, 50, or 100 records per page)
|
25
|
-
- Sort data by any column in ascending or descending order
|
26
|
-
- Navigate through large datasets with an intuitive pagination interface
|
27
|
-
- Scrollable table with fixed headers for improved navigation
|
28
|
-
- Single-line cell display with ellipsis for wide content (tooltips on hover)
|
29
|
-
- Export table data to CSV format (configurable via `enable_data_export` option)
|
30
|
-
- **SQL Queries**:
|
31
|
-
- Run custom SELECT queries against your database in a secure, read-only environment
|
32
|
-
- View table structure reference while writing queries
|
33
|
-
- Protection against potentially harmful SQL operations
|
34
|
-
- Query execution statistics and timing
|
35
|
-
- **Multiple Database Connections**:
|
36
|
-
- Connect to multiple databases within your application
|
37
|
-
- Switch between connections on-the-fly to view different database schemas
|
38
|
-
- Add new database connections from the UI without code changes
|
39
|
-
- Test connections to verify they're working properly
|
40
|
-
- **Enhanced UI Features**:
|
41
|
-
- Responsive, Bootstrap-based interface that works on desktop and mobile
|
42
|
-
- Fixed header navigation with quick access to all features
|
43
|
-
- Modern sidebar layout with improved filtering and scrollable table list
|
44
|
-
- Clean tabbed interface for exploring different aspects of table structure
|
45
|
-
- Advanced table filtering with keyboard navigation support
|
46
|
-
- Proper formatting for various data types (dates, JSON, arrays, etc.)
|
47
|
-
- Enhanced data presentation with appropriate styling
|
12
|
+
- **Dashboard**
|
13
|
+
- **Table Overview**
|
14
|
+
- **Detailed Schema Information**
|
15
|
+
- **Entity Relationship Diagram (ERD)**
|
16
|
+
- **Data Browsing**
|
17
|
+
- **SQL Queries**
|
18
|
+
- **Multiple Database Connections**
|
19
|
+
- **Enhanced UI Features**
|
20
|
+
|
21
|
+
## 🧪 Demo Application
|
22
|
+
|
23
|
+
You can explore a live demo of DBViewer at [https://dbviewer-demo.wailantirajoh.tech/](https://dbviewer-demo.wailantirajoh.tech/). This demo showcases all the features of DBViewer on a sample database, allowing you to try out the tool before installing it in your own application.
|
48
24
|
|
49
25
|
## 📸 Screenshots
|
50
26
|
|
@@ -1,6 +1,17 @@
|
|
1
1
|
<% content_for :title, "SQL Query Logs" %>
|
2
2
|
|
3
3
|
<div class="container-fluid">
|
4
|
+
<% unless Rails.env.development? %>
|
5
|
+
<div class="alert alert-warning mb-3">
|
6
|
+
<div class="d-flex align-items-center">
|
7
|
+
<i class="bi bi-exclamation-triangle-fill me-2 fs-5"></i>
|
8
|
+
<div>
|
9
|
+
<strong>Warning:</strong> SQL Query logs are disabled in non-development environments.
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
14
|
+
|
4
15
|
<div class="d-flex justify-content-between align-items-center mb-2">
|
5
16
|
<h1>
|
6
17
|
<i class="bi bi-journal-code me-2"></i>SQL Query Logs
|
@@ -378,7 +389,12 @@
|
|
378
389
|
<td colspan="6" class="text-center py-5 empty-data-message">
|
379
390
|
<i class="bi bi-database-x fs-2 d-block mb-2"></i>
|
380
391
|
No SQL queries logged yet.
|
381
|
-
|
392
|
+
<% if Rails.env.development? %>
|
393
|
+
<p class="mt-2">Navigate through the application to see queries being logged here.</p>
|
394
|
+
<% else %>
|
395
|
+
<p class="mt-2">SQL Query logs are disabled in non-development environments.</p>
|
396
|
+
<small class="text-muted d-block">To enable logs in this environment, set <code>enable_query_logging = true</code> in your configuration.</small>
|
397
|
+
<% end %>
|
382
398
|
</td>
|
383
399
|
</tr>
|
384
400
|
<% end %>
|
data/lib/dbviewer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbviewer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wailan Tirajoh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|