【文件属性】:
文件名称:presto-go-client:Go编程语言的Presto客户端
文件大小:34KB
文件格式:ZIP
更新时间:2021-01-30 21:30:55
golang sql big-data presto prestodb
Presto客户
编程语言的客户端。
产品特点
本机Go实施
通过HTTP或HTTPS的连接
HTTP基本和Kerberos身份验证
每个查询的用户信息,用于访问控制
支持自定义HTTP客户端(可调conn池,超时,TLS)
支持从Presto到本机Go数据类型的转换
string , sql.NullString
int64 , presto.NullInt64
float64 , presto.NullFloat64
map , presto.NullMap
time.Time , presto.NullTime
任意支持类型的多达3维数组到Go切片
要求
达到1.8或更高版本
Presto 0.16x或更高版本
安装
您需要一个安装了Go并设置了$ GOPATH的工作环境。
下载并安装presto数据库/ sql驱动程序:
go get github.com/prestodb/presto-go-client/presto
确保已在$ PATH中安装了Git。
用法
该Presto客户端是Go的database/sql/driver接口的实现。 为了使用它,您需
【文件预览】:
presto-go-client-master
----.travis.yml(196B)
----presto()
--------integration_test.go(9KB)
--------presto_test.go(21KB)
--------serial_test.go(4KB)
--------integration_tls_test.go(4KB)
--------presto.go(39KB)
--------serial.go(4KB)
----integration_tests()
--------Dockerfile(1KB)
--------run.sh(1KB)
--------etc()
----LICENSE(11KB)
----CONTRIBUTING.md(769B)
----go.sum(3KB)
----CODE_OF_CONDUCT.md(244B)
----README.md(6KB)
----go.mod(515B)