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) |
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" } | |
] | |
} |
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", |
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 |