Closed nperez0111 closed 8 years ago
Possible request JSON
{
"data":{
"tables":[
"symbols",
"choiceHeadings"
],
"from":"possibleChoices",
"relations":[
[
"symbols.ID",
"possibleChoices.SymbolID"
]
],
"select":[
"symbols.Name",
"choiceHeadings.Title"
]
}
}
tele.sendToDataBase({
type: "GET",
data: {
tables: ["symbols", "choiceHeadings"],
from: "possibleChoices",
relations: [
["symbols.ID", "possibleChoices.SymbolID"],
["possibleChoices.HeadingID", "choiceHeadings.ID"]
],
select: ["symbols.Name", "choiceHeadings.Title"]
}
}, "join");
Working Code since 9465da153dd48468bee4a30b97903861b0059cdc
The API needs to be expanded in order to run this type of query
Other important implementations is the ability to create and drop tables for each special item. These of course would be added as features to the table class.