PrestoDB Crystal Driver
prestodb crystal driver
Installation
-
Add the dependency to your
shard.yml
:dependencies: presto: github: neovintage/crystal-presto
-
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
- rimas silkaitis - creator and maintainer