crystal-presto
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
Repository
crystal-presto
Owner
Statistic
- 1
- 0
- 0
- 0
- 1
- almost 4 years ago
- February 26, 2020
License
BSD 3-Clause "New" or "Revised" License
Links
Synced at
Sat, 23 Nov 2024 23:47:58 GMT
Languages