PHP Class PMA\libraries\SystemDatabase

Show file Open project: phpmyadmin/phpmyadmin

Protected Properties

Property Type Description
$dbi DatabaseInterface

Public Methods

Method Description
__construct ( DatabaseInterface $dbi ) Get instance of SystemDatabase
getExistingTransformationData ( string $db ) : mysqli_result Get existing data on transformations applied for columns in a particular table
getNewTransformationDataSql ( object $pma_transformation_data, array $column_map, string $view_name, string $db ) : string Get SQL query for store new transformation details of a VIEW

Method Details

__construct() public method

Get instance of SystemDatabase
public __construct ( DatabaseInterface $dbi )
$dbi DatabaseInterface Database interface for the system database

getExistingTransformationData() public method

Get existing data on transformations applied for columns in a particular table
public getExistingTransformationData ( string $db ) : mysqli_result
$db string Database name looking for
return mysqli_result Result of executed SQL query

getNewTransformationDataSql() public method

Get SQL query for store new transformation details of a VIEW
public getNewTransformationDataSql ( object $pma_transformation_data, array $column_map, string $view_name, string $db ) : string
$pma_transformation_data object Result set of SQL execution
$column_map array Details of VIEW columns
$view_name string Name of the VIEW
$db string Database name of the VIEW
return string $new_transformations_sql SQL query for new transformations

Property Details

$dbi protected property

protected DatabaseInterface,PMA\libraries $dbi
return DatabaseInterface