PostgreSQL-For-Wordpress / postgresql-for-wordpress

A maintained fork of https://wordpress.org/plugins/postgresql-for-wordpress/
GNU General Public License v2.0
220 stars 71 forks source link

Implement wpsqli_stat #60

Open mattbucci opened 10 months ago

mattbucci commented 10 months ago

https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress/blob/bf2ef7f4185d5327543ded7df42efb16ff79fa7c/pg4wp/driver_pgsql.php#L304C1-L320C2

/**
 * Gets the current system status of the PostgreSQL server.
 *
 * This function is a wrapper for the pg_stat function. It returns a string containing
 * status information about the PostgreSQL server to which it's connected. The information includes
 * uptime, threads, queries, open tables, and flush tables, among other status indicators.
 * This can be useful for monitoring the health and performance of the PostgreSQL server, as well
 * as for debugging purposes.
 *
 * @param PgSql\Connection $connection The pg connection resource.
 * @return string A string describing the server status or FALSE on failure.
 */
function wpsqli_stat(&$connection)
{
    throw new \Exception("PG4WP: Not Yet Implemented");
    // mysqli_stat => No direct equivalent
}