Skip to content

Instantly share code, notes, and snippets.

@tanaka-takayoshi
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanaka-takayoshi/5703d96fde733888045e to your computer and use it in GitHub Desktop.
Save tanaka-takayoshi/5703d96fde733888045e to your computer and use it in GitHub Desktop.
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