It is simple to work with third party databases in Lianja.
Apart from Virtual Tables you can perform queries very quickly with minimum coding.
Take a look at this screenshot which demonstrates how to perform SQL queries quickly against MSSQL.
Notice how you can specify the CONNSTR (connection string) which will connect to MSSQL and perform a SELECT * FROM the specified table name selecting the rows that match the WHERE condition.
We can also specify the SQL SELECT statement we want to execute. See below.
Now that we have the MSSQL data in a local cursor we can slice it up and output JSON to send back to a web/mobile client.
Clearly we can query MySQL data and PostgreSQL data also and fetch the data into a local cursor.
At this point we can then perform a join of MSSQL and MySQL and PostgreSQL if that is required.
Enjoy.
Bookmarks