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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e2d222c36ae2bf4e6d20f4f915d59c3b5acae64eead145e8a0dccd7acb3ddbc
4
- data.tar.gz: 786de8d3e46e54532234790345b52c17e3bdf887882b14534cd85b6b1d2b4fe0
3
+ metadata.gz: b12cc2cd164b8f28545ecdcc490ce5a9351a469c4d702ed87a64d5f617713f82
4
+ data.tar.gz: 919d3a36d71de8320f2d7001c0a2b31e8b9c9b9ce0ee29f1ed31e40aa3ec4189
5
5
  SHA512:
6
- metadata.gz: e461217c6b720cc04ec36e884aa19c1468d034451afdc3d64709056df2004cd9d6830f8f28ae339f9705b62eb7f60cc3d5587378828c9965d2468d7b23659999
7
- data.tar.gz: ffb54b66a8bf3d4d426cdba9dabdf39bf619af8e4b70caeb83a541576ae3ec4bad53fbe1d9f28dea19930e7caf00cb1c71525389e04977a8a4771cfc52a402f1
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**: View a comprehensive dashboard with database analytics, largest tables, most complex tables, and recent SQL queries
13
- - **Table Overview**: View a list of all tables with record count, column count, and quick access links
14
- - **Detailed Schema Information**:
15
- - View columns with their types, nullability, defaults, and primary key indicators
16
- - Examine table indexes and their uniqueness constraints
17
- - Explore foreign key relationships between tables
18
- - **Entity Relationship Diagram (ERD)**:
19
- - Interactive visualization of database schema and table relationships
20
- - Zoomable and pannable diagram to explore complex database structures
21
- - Full table details including all columns and their data types
22
- - Visual representation of foreign key relationships between tables
23
- - **Data Browsing**:
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
- <p class="mt-2">Navigate through the application to see queries being logged here.</p>
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 %>
@@ -1,3 +1,3 @@
1
1
  module Dbviewer
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
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.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-07 00:00:00.000000000 Z
11
+ date: 2025-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails