https://github.com/neovintage/crystal-presto
prestodb crystal driver
https://github.com/neovintage/crystal-presto
crystal crystal-lang database database-driver presto prestodb prestodb-crystal-driver
Last synced: about 2 months ago
JSON representation
prestodb crystal driver
- Host: GitHub
- URL: https://github.com/neovintage/crystal-presto
- Owner: neovintage
- License: bsd-3-clause
- Created: 2020-02-26T18:05:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-25T20:58:54.000Z (over 4 years ago)
- Last Synced: 2025-02-05T22:18:59.486Z (4 months ago)
- Topics: crystal, crystal-lang, database, database-driver, presto, prestodb, prestodb-crystal-driver
- Language: Crystal
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# PrestoDB Crystal Driver

prestodb crystal driver
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
presto:
github: neovintage/crystal-presto
```2. Run `shards install`
## Usage
```crystal
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](https://github.com/neovintage) - creator and maintainer