Enabling Schema API with remote databases

Created on 12 April 2011, over 13 years ago
Updated 20 January 2023, almost 2 years ago

Currently there is no way to use the Schema API to describe tables which are located in external databases. This is prevented by the usage of db_* wrapper functions in drupal_(un)install_schema and drupal_write_record. I believe that using schema for other databases than the default one could make sense. It would, for example, simplify the creation of entity controllers which handle external data. (see attached example controller).

In Drupal 8, Schema should be usable for all tables regardless the role of the database. I've created a stub patch against 7.x-dev therefore I've set the version to 7.x-dev. Please change to 8.x-dev if more appropriate.

Feature request
Status

Closed: outdated

Version

9.5

Component
Database 

Last updated 2 days ago

  • Maintained by
  • 🇳🇱Netherlands @daffie
Created by

🇳🇱Netherlands xatoo

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Closed: outdated almost 2 years ago
Production build 0.71.5 2024