Learn about using the Go SDK for Firebolt.
database/sql/driver
interface, enabling Go developers to connect to and interact with Firebolt databases seamlessly.
go get
command from inside your Go module:
client_id
: client ID of your service account.client_secret
: client secret of your service account.account_name
: The name of your Firebolt account.database
: (Optional) The name of the database to connect to.engine
: (Optional) The name of the engine to run SQL queries on.main.go
) and run using go run main.go
inside your Go module:
rows.Next()
, allowing efficient processing of large datasets.
firebolt-go-sdk/context
package to create a context with streaming enabled:
firebolt:///
.account_name
matches the name shown in the Firebolt Console URL, which is usually lowercase with no special characters.&database=
in the DSN.Error message | Likely cause | Solution |
---|---|---|
invalid connection string format | URI format is invalid or it contains illegal characters (like - ) | Double check the URI format and remove illegal characters. |
unknown parameter name database | Attempted to pass database as a query parameter. | Move the database name into the URI path. |
error opening database connection | Incorrect connection credentials. | Verify connection parameters values in the Firebolt UI and use exact values. |