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

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