Last active
August 29, 2015 14:05
-
-
Save tanaka-takayoshi/5703d96fde733888045e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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