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
Wed, 06 Nov 2024 12:33:51 GMT
Languages