class Litequeue

def pop(queue: DEFAULT_QUEUE, limit: 1)

def pop(queue: DEFAULT_QUEUE, limit: 1)
  results = @db.run_statement(:pop, queue, limit)
  return extract_row(results) if limit == 1
  results
end