DataMgr Build 1 Documentation: Check Existence

Check Existence

While DataMgr is very good at retrieving data, sometimes you don't need to actually get the data - you just need to know that it is there.

For that, DataMgr has a method called "hasRecords" that takes the same arguments as "getRecords"

hasRecords() Arguments:

The "hasRecords" argument is more efficient for this purpose as it only returns a boolean instead of a query an internally runs a query that does an EXISTS check rather than running a full query and checking for RecordCount.

Check for Table

You can also check to see if DataMgr is aware of a table by running the "hasTable" method (which just takes a "tablename" argument).