Learn about using the Rust SDK for Firebolt.
Cargo.toml
dependencies:
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.query
method. The SDK returns results with type-safe parsing for all Firebolt data types. The following examples show you how to create a table, insert data, and retrieve data:
FireboltError
enum:
client_id
, client_secret
, account_name
) are provided to the builder.Error message | Likely cause | Solution |
---|---|---|
Configuration error: client_id is required | Missing required parameter in builder | Ensure all required parameters are provided to the builder |
Authentication error: Invalid credentials | Incorrect client ID or secret | Verify your service account credentials in the Firebolt console |
Network error: Failed to get engine URL | Network connectivity issues | Check your internet connection and firewall settings |
Query error: relation "table_name" does not exist | Invalid SQL query or missing table | Verify your SQL query uses valid table and column names |