View bigquery_result_transform.js
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
convertBQToMySQLResults(schema, rows) { | |
var resultRows = [] | |
function recurse (schemaCur, rowsCur, colName) { | |
if (Array.isArray(schemaCur) && !Array.isArray(result[colName])) { | |
for(var i=0, l=schemaCur.length; i<l; i++) { | |
if (colName === "") | |
recurse(schemaCur[i], rowsCur.f[i], colName + schemaCur[i].name) |
View flattened_bigquery_result.json
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
{ | |
"Name": "Peter", | |
"Address" : [ | |
{ "Address.street": "street1", "Address.city": "city1" }, | |
{ "Address.street": "street2", "Address.city": "city2" } | |
] | |
} |
View bigquery_json_result.json
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
{ | |
"schema": { | |
"fields": [ | |
{ | |
"name": "Name", | |
"type": "STRING", | |
"mode": "NULLABLE" | |
}, | |
{ | |
"name": "Address", |
View blockchainid.txt
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
Verifying that +eebsidian is my blockchain ID. https://onename.com/eebsidian |