PrestoDB Crystal Driver

CI Status

prestodb crystal driver

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      presto:
        github: neovintage/crystal-presto
  2. Run shards install

Usage

require "presto"

DB.open("presto://username:@localhost:8080/tpch/sf1") do |db|
  db.query("select * from customer limit 1") do |q|
    puts q.row_count
    q.each do |rs|
      puts "#{rs.column_name(0)}: #{rs.read}"
    end
  end
end

Development

Contributors