You are here

function hosting_db_server_as_url in Hosting 5

1 call to hosting_db_server_as_url()
drush_hosting_db_server_pre_hosting_task in db_server/hosting_db_server.drush.inc

File

db_server/hosting_db_server.module, line 55

Code

function hosting_db_server_as_url($nid) {
  $node = node_load($nid);
  return sprintf("%s://%s:%s@%s", $node->db_type, $node->db_user, $node->db_passwd, $node->title);
}