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

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