I am new to the world of web services and web APIs. I've noticed most companies offer an XML or JSON based connection that basically takes data from their database and encodes it into their format of choice. My question is, why don't I see anyone offering some sort of SQL connection?
At first i thought it was security. But with MySQL you can limit a users access all the way down to a specific column. You can allow them to only view, or only insert. You can create views and stored procedures to perform joins or veil your true backend structure. You can use an ssl connection to properly encode transmitted data. So really i think the only difference is style. It seems to me people would rather have me write
$conn->getWidgetAttr('widgetName');
rather than
SELECT widgetName FROM widgets;
Can someone tell me what I'm missing here?