Added dummy methods according to interface for Microsoft SQL and PostgreSQL

Please implement if you have the required knowledge
This commit is contained in:
Raphaël Doursenaud 2014-02-21 14:41:00 +01:00
parent 283fec164e
commit 501ffb12b3
2 changed files with 81 additions and 0 deletions

View File

@ -805,6 +805,23 @@ class DoliDBMssql extends DoliDB
return $this->_results;
}
/**
* List information of columns into a table.
*
* @param string $table Name of table
* @return array Tableau des informations des champs de la table
*/
function DDLInfoTable($table)
{
// FIXME: Dummy method
// TODO: Implement
// May help: https://stackoverflow.com/questions/600446/sql-server-how-do-you-return-the-column-names-from-a-table
$infotables=array();
return $infotables;
}
/**
* Create a table into database
*
@ -976,6 +993,24 @@ class DoliDBMssql extends DoliDB
else return 1;
}
/**
* Create a user and privileges to connect to database (even if database does not exists yet)
*
* @param string $dolibarr_main_db_host Ip serveur
* @param string $dolibarr_main_db_user Nom user a creer
* @param string $dolibarr_main_db_pass Mot de passe user a creer
* @param string $dolibarr_main_db_name Database name where user must be granted
* @return int <0 if KO, >=0 if OK
*/
function DDLCreateUser($dolibarr_main_db_host,$dolibarr_main_db_user,$dolibarr_main_db_pass,$dolibarr_main_db_name)
{
// FIXME: Dummy method
// TODO: Implement
// May help: http://msdn.microsoft.com/fr-fr/library/ms173463.aspx
// Always fail for now
return -1;
}
/**
* Return charset used to store data in database
@ -1088,6 +1123,37 @@ class DoliDBMssql extends DoliDB
return '';
}
/**
* Return value of server parameters
*
* @param string $filter Filter list on a particular value
* @return string Value for parameter
*/
function getServerParametersValues($filter='')
{
// FIXME: Dummy method
// TODO: Implement
// May help: SELECT SERVERPROPERTY
$result=array();
return $result;
}
/**
* Return value of server status
*
* @param string $filter Filter list on a particular value
* @return string Value for parameter
*/
function getServerStatusValues($filter='')
{
// FIXME: Dummy method
// TODO: Implement
// May help: http://www.experts-exchange.com/Database/MS-SQL-Server/Q_20971756.html
return '';
}
}
?>

View File

@ -1403,5 +1403,20 @@ class DoliDBPgsql extends DoliDB
return $result;
}
/**
* Return value of server status
*
* @param string $filter Filter list on a particular value
* @return string Value for parameter
*/
function getServerStatusValues($filter='')
{
// FIXME: Dummy method
// TODO: Implement
// May help: http://netpenthe.wordpress.com/2011/12/07/mysql-show-status-for-postgresql
return '';
}
}
?>