src/snac/server/database/DatabaseConnector.php
/**
     * Fetch all rows
     *
     * Fetches all rows from the given resource and returns it as an array of associative arrays.
     *
     * @param \resource $resource Postgres result resource (From $db->execute())
     * @return string[][] All rows from the database as an associative array, or false if no rows to return
     * @throws \snac\exceptions\SNACDatabaseException
     */
Fetch all rows
Fetches all rows from the given resource and returns it as an array of associative arrays.

@param \resource $resource Postgres result resource (From $db->execute())
@return string[][] All rows from the database as an associative array, or false if no rows to return
@throws \snac\exceptions\SNACDatabaseException
Fetch all rows Fetches all rows from the given resource and returns it as an array of associative arrays . @param \ resource $resource Postgres result resource ( From $db - > execute () ) @return string [] [] All rows from the database as an associative array or false if no rows to return @throws \ snac \ exceptions \ SNACDatabaseException
public function fetchAll($resource) {
        try {
            $rows = \pg_fetch_all($resource);
            return $rows;
        } catch (\Exception $e) {
            throw new \snac\exceptions\SNACDatabaseException($e->getMessage());
        }
    }
public function fetchAll ( $ resource ) { try { $ rows = \ pg_fetch_all ( $ resource ) ; return $ rows ; } catch ( \ Exception $ e ) { throw new \ snac \ exceptions \ SNACDatabaseException ( $ e -> getMessage ( ) ) ; } }
Fetch all rows
 Fetches all rows from the given resource and returns it as an array of associative arrays.
Fetch all rows Fetches all rows from the given resource and returns it as an array of associative arrays .
// Replace any exceptions with the SNAC Database Exception and re-throw back out