Documentation ¶
Index ¶
Constants ¶
View Source
const ( BigQuery_SCHEMA_QUERY = "SELECT * FROM %s LIMIT 1" BigQuery_TABLES_QUERY = "SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = '%s'" )
Variables ¶
View Source
var GOOGLE_APPLICATION_CREDENTIALS = "GOOGLE_APPLICATION_CREDENTIALS"
Functions ¶
func NewBigQuery ¶
NewBigQuery creates a new instance of BigQuery with the provided client. It returns an instance of types.ISQL and an error.
Types ¶
type BigQuery ¶
The BigQuery struct is responsible for holding the BigQuery client and configuration.
func (*BigQuery) Execute ¶
Execute executes a query on BigQuery. It takes a query string as input and returns the result as a byte slice and an error.
func (*BigQuery) GenerateCreateTableQuery ¶
GenerateCreateTableQuery generates a CREATE TABLE query for BigQuery.
Click to show internal directories.
Click to hide internal directories.