Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Database Connector

Security covered Under active development 1,071 sites

Part of the Views ecosystem · 280 projects

This module allows you to create Views that pull data from external databases configured for your Drupal installation. It provides access to any table within those external databases, enabling you to display external data within your Drupal site.

Description

Views Database Connector is a powerful module that gives Views full access to external database tables found in the settings for your Drupal installation. With this module, you can setup a view around any table in any database configuration. This can be extremely useful to pull external data from a database to show to your users in a view.

Requirements and Limitations

This module depends on access to the information_schema table when using MySQL or PostgreSQL. If using SQLite, access to the sqlite_master table is required. These tables are used to gather information about your tables and their respective column names and data types. If you cannot accommodate this requirement, this module will not work. Also, any table names that conflict with Drupal table names cannot be used, and any conflicting table names among external databases will also need to be resolved. These restrictions are in place because of the way that Views has structured the return value of its hook_views_data() API.

Installation

Upload this module's folder to your server and place it in the sites/all/modules folder. In order to make use of this module, add extra databases following the instructions found in the installation's sites/default/settings.php file. After you've added a database or two, enable the module. If you later decide to change your database configuration, it is advisable to clear cache and cycle the module's state between disabled and enabled.

Utilization

When you add a new view, you should now be able to pick a new entry in the "Show" select menu to use as the view type. Each item created by this module will be prefixed by [VDC]. After you select one of these options and create your view, the first column in the table will be added as the first field. You should also be able to add the other columns as fields using the "Add" button.

Drupal 8–11

Ask your assistant about Views Database Connector

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Jan 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.0.3 Stable 8–11 Dec 30, 2024
2.0.2 Stable 8–10 Feb 2, 2024
2.0.1 Stable 8–10 Apr 3, 2023
2.0.x-dev Dev 10–11 Apr 3, 2023
2.0.0 Stable 8–10 Jan 25, 2023