lib/etl/control/source/database_source.rb
# Get the number of rows in the source
Get the number of rows in the source
Get the number of rows in the source
def count(use_cache=true)
        return @count if @count && use_cache
        if store_locally || read_locally
          @count = count_locally
        else
          @count = connection.select_value(query.gsub(/SELECT .* FROM/, 'SELECT count(1) FROM'))
        end
      end
def count ( use_cache = true ) return @count if @count && use_cache if store_locally || read_locally @count = count_locally else @count = connection . select_value ( query . gsub ( / SELECT .* FROM / , 'SELECT count(1) FROM' ) ) end end
Get the number of rows in the source
Get the number of rows in the source
use_cache
<not_specific>