n00dles/DM_Matrix — pull request #6 by tablatronix (2012-05-13 14:03:38+00:00)
Title: added public general use query function

Added a single use query function.

Didn't know what to name it
so

DM_query($query,$cache=true)

will auto load tables needed into the class, and also save them to a global cache array after they are loaded from file. This way files are only loaded once. But you can provide the cache argument to override in case you know the table has changed.

I intend this to be used by end users, not plugin authors who are touching the actual data, they have their own logic level functions to work with the actual schema directly.

Nothing else is needed to do a simple query.

I added a public function to the sql4array class to parse out the tables in the query and return the names in an array. This this depends on , also added a global table cache array for read in tables for this to use.