Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2008 at 03:28 UTC
Updated:
29 Dec 2011 at 00:46 UTC
patch adds the ability for a view definition to include a 'database' key in the base definition. the value is the key name of the database as defined in the $db_url array. if this 'database' key is defined, views will perform any queries involving the specified base table against the external database.
| Comment | File | Size | Author |
|---|---|---|---|
| view_add_external_data_source.patch | 1.34 KB | hunmonk |
Comments
Comment #1
hunmonk commentedok, i've taken the time to construct an external view and really test this sucker. works beautifully!
Comment #2
merlinofchaos commentedCommitted. Thanks for the patch and the testing.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
easp commentedSorry to re-open this comment, but I have been trying to load data from an external database and have not had success.
The database is in the $db_url array and has a key of 'main'.
What do I use in the data array to select the database?
function my_module_views_data() {
$data['external_table_name']['table']['group'] = t('User sync data');
$data['external_table_name']['table']['base']['database'] = 'main';
...
Am I on the right path?
Comment #5
easp commentedForgot to re-open for comment above.
Comment #6
esmerel commentedPlease do not reopen issues that have been closed for *two years*. especially when it's a patch for a feature request. If you have a support issue, open a new issue.
Comment #7
niek_kloots commentedAny update for Views 6.x-2.16 ?