src/Charcoal/Source/DatabaseSource.php
public function tableIsEmpty()
    {
        $table = $this->table();
        $query = sprintf('SELECT NULL FROM `%s` LIMIT 1', $table);
        $this->logger->debug($query);
        $sth = $this->db()->query($query);
        return ($sth->rowCount() === 0);
    }
public function tableIsEmpty()
    {
        $table = $this->table();
        $query = sprintf('SELECT NULL FROM `%s` LIMIT 1', $table);
        $this->logger->debug($query);
        $sth = $this->db()->query($query);
        return ($sth->rowCount() === 0);
    }
public function tableIsEmpty ( ) { $ table = $ this -> table ( ) ; $ query = sprintf ( 'SELECT NULL FROM `%s` LIMIT 1' , $ table ) ; $ this -> logger -> debug ( $ query ) ; $ sth = $ this -> db ( ) -> query ( $ query ) ; return ( $ sth -> rowCount ( ) === 0 ) ; }
Determine if the source table is empty or not.

@return boolean TRUE if the table has no data, otherwise FALSE.
Determine if the source table is empty or not .