SwatDB/SwatDB.php
public static function queryRow($db, $sql, $types = null)
    {
        $mdb2_types = $types === null ? true : $types;

        $row = self::executeQuery($db, 'queryRow', array(
            $sql,
            $mdb2_types,
            MDB2_FETCHMODE_OBJECT
        ));

        return $row;
    }
public static function queryRow($db, $sql, $types = null)
    {
        $mdb2_types = $types === null ? true : $types;

        $row = self::executeQuery($db, 'queryRow', array(
            $sql,
            $mdb2_types,
            MDB2_FETCHMODE_OBJECT
        ));

        return $row;
    }
public static function queryRow ( $ db , $ sql , $ types = null ) { $ mdb2_types = $ types === null ? true : $ types ; $ row = self :: executeQuery ( $ db , 'queryRow' , array ( $ sql , $ mdb2_types , MDB2_FETCHMODE_OBJECT ) ) ; return $ row ; }
Query a single row

Convenience method to query for a single row from a database table.

@param MDB2_Driver_Common $db The database connection.
@param string $sql The SQL to execute.
@param array $types Optional array of MDB2 datatypes for the result.

@return Object A row object, or null.

@throws SwatDBException
Query a single row