DataMgr 2.5 Documentation: Simulated Database

Simulated Database

One popular technique for prototyping an application is to use simulated queries (cf_QuerySim has been a popular implementation of this concept). DataMgr makes this easy. It will create random data of the create data type for simulated queries. All you need to do is switch use its Simulated Database as your database type:

<cfset Application.DataMgr = CreateObject("component","DataMgr").init("TestSQL","Sim")>

Use loadXml() to define your data structure, then call your DataMgr methods normally and they will provide simulated data. Note that this data cannot be updated as it is generated on the fly. It does, however, help to test out a prototype without having to generate data for it.