Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var bigquery = new BigqueryService(new BaseClientService.Initializer
{
ApplicationName = "BigQuery Sample",
ApiKey = "ApiKey"
});
await bigquery.Tables.Insert(new Table
{
FriendlyName = "MyTableFriendyName",
Description = "My Table Description",
Schema = new TableSchema
{
Fields = new[]
{
new TableFieldSchema
{
Name = "date",
Type = "TIMESTAMP",
Mode = "REQUIRED",
Description = "Date"
},
new TableFieldSchema
{
Name = "source",
Type = "STRING",
Mode = "REQUIRED",
Description = "Text"
},
}
},
TableReference = new TableReference
{
ProjectId = "myproject",
DatasetId = "mydataset",
TableId = "mytable"
}
},
"myproject", "mydataset").ExecuteAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment