Widget Type
Type:datatablesSubtype:
integrated_dataTable
Key Concepts
Integrated datatables work by finding tables with identical column names and types across multiple database connections, then combining their data into a single view with a source indicator.
Use Cases
- Compare production vs staging databases
- Merge data from regional databases
- Analyze data across customer-specific instances
- Consolidate multi-tenant data for reporting
- Compare historical backups with current data
Configuration
Requirements
- Multiple Connections - At least 2 database connections (required)
- Compatible Tables - Tables with matching column names and data types
- Title - Descriptive widget name (required)
- Description - Optional description
Configuration Object
How It Works
Select Connections
Choose 2 or more database connections from your project. All selected connections must have schema information available.
Find Compatible Tables
VizBoard automatically analyzes the schemas and identifies tables that exist in all selected connections with matching column structures.The
/api/compatible-tables endpoint compares:- Table names (case-sensitive)
- Column names
- Column data types
Select Tables
Choose one or more compatible tables to display in the widget. Each table will be available via a dropdown selector.
Examples
Production vs Staging Comparison
Multi-Region Data Consolidation
Customer Instance Comparison
The SOURCE Column
The SOURCE column:- Appears as the leftmost column
- Shows the connection name (not ID)
- Is filterable and sortable
- Uses a distinct visual style (badge format)
- Helps identify data origin at a glance
Compatible Table Detection
Tables are considered compatible when they have:- Matching Schema
- Incompatible Examples
Required Matches:✅ These tables are compatible
- Same table name (case-sensitive)
- Same column names
- Compatible data types
Features
Source Identification
Automatic SOURCE column shows data origin for each row
Unified Filtering
Filter across all connections simultaneously
Smart Type Detection
Automatic data type inference from actual values
Column Sorting
Sort by any column including SOURCE
Global Search
Search across all merged data
Table Switching
Dropdown selector for multiple compatible tables
Data Type Inference
Since integrated datatables combine data from multiple sources, they use intelligent type inference:Type Detection Rules
- Number: All values are numeric or numeric strings
- Boolean: All values are true/false variants
- Array: All values are arrays
- Date: Values match date patterns (ISO format, common formats)
- String: Default fallback for mixed or text data
src/components/dashboard/widgets/integratedDatatable/integratedDatatableWidget.tsx:51-89
Usage Tips
Ensuring table compatibility
Ensuring table compatibility
To maximize compatible tables:
- Use consistent naming conventions across databases
- Keep column names and types identical
- Use database migration tools to maintain schema consistency
- Document any schema differences between environments
Performance considerations
Performance considerations
- Each connection is queried separately
- Data is merged on the client side
- More connections = longer load time
- Consider limiting to 3-5 connections for best performance
- Large tables may take longer to merge
Understanding 'no compatible tables'
Understanding 'no compatible tables'
If you see “No compatible tables found”:
- Verify tables exist in ALL selected connections
- Check that column names match exactly (case-sensitive)
- Ensure column data types are compatible
- Confirm connections have schema information loaded
When to use integrated vs simple datatables
When to use integrated vs simple datatables
Use Integrated Datatables when:
- Comparing data across environments
- Consolidating multi-tenant data
- Analyzing regional databases
- Need to identify data source
- Viewing data from a single connection
- No need to compare across databases
- Simpler use case with less overhead
Configuration Help
The configuration dialog includes a helpful accordion with guidance:What is an Integrated Datatable?This widget type allows you to combine data from multiple database connections into a single table view. It’s perfect for comparing data across environments (production vs staging) or consolidating data from multiple sources.How it works:Select 2 or more connections, and the system will find tables that exist in all selected connections with matching schemas. The data will be merged with a SOURCE column to identify which database each row came from.
Limitations
Source Code Reference
Integrated datatable implementation:- Configuration:
src/components/dashboard/widgets/integratedDatatable/integratedDatatableConfigDialog.tsx:38-452 - Widget Rendering:
src/components/dashboard/widgets/integratedDatatable/integratedDatatableWidget.tsx:193-418 - Source Column Logic:
src/components/dashboard/widgets/integratedDatatable/integratedDatatableColumns.tsx - Normalization:
src/components/dashboard/widgets/integratedDatatable/normalizeIntegratedConfig.ts
API Endpoints
Compatible Tables Detection
Related Widgets
Simple Datatables
View data from a single database connection
Charts
Visualize your integrated data with charts
