Registry / database / trinodb-trino-go-client

trinodb-trino-go-client

JSON →
library0.333.0gogounverified

A Go client for querying Trino (formerly Presto SQL) databases.

go get github.com/trinodb/trino-go-client
INSTALL
IMPORT
SIG · TRINODB-TRINO-GO-C
T
trinodb-trino-go-client
databasegov0.333.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

trino
github.com/trinodb/trino-go-client/trino

Queries Trino using database/sql

package main import ( "database/sql" "fmt" _ "github.com/trinodb/trino-go-client/trino" ) func main() { db, _ := sql.Open("trino", "http://user@localhost:8080") rows, _ := db.Query("SELECT 1") for rows.Next() { var val int rows.Scan(&val) fmt.Println(val) } }
Debug
Known issues
gotchaThe import path uses the trino subpackage, not the root module.
fix
Use import _ "github.com/trinodb/trino-go-client/trino" to register the driver.
affects: all
Upgrade
Version history
0.333.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
16
Meta
2
OpenAI (training)
2
Amazon
1
Resources
trinodb-trino-go-client — go get trinodb-trino-go-client · libregistry