%UnitTest.Utility
hidden class %UnitTest.Utility extends %Library.RegisteredObject
The methods in this class are used by the SQLRegression class. They are subject to change, and not intended to be called directly.Method Inventory
- FindClass()
- Occurs()
- convertSQL()
- countCachedQuery()
- countGlobalRefs()
- crossVerify()
- describe()
- diffData()
- diffExpectedByStream()
- diffPlan()
- genPlan()
- getColumn()
- getData()
- getFromPlan()
- getSqlCode()
- getSqlExec()
- ltrim()
- rewindLine()
- rtrim()
- stripChar()
- trim()
- typeNameByType()
Methods
Returns True if class exists
Count the number of occurences of a delimiter in a string
replace 'arguments' in supplied sql with ?
Count the number of occurences of a query in the cached query table
classmethod countGlobalRefs() as %BigInt
returns the number of global references for the master process,
including number of global references from worker jobs, updated when the master
process gets a work unit complete notification
classmethod crossVerify(ByRef ref As %FileCharacterStream, ByRef src As %FileCharacterStream) as %GlobalCharacterStream
Compare data values from sql output
classmethod describe(table As %String, ByRef colcount As %Integer = 0, ByRef sc As %Status) as %String [ SQLProc = desc ]
Projected as the stored procedure: desc
Describe table method returns column names and types of a given table.
Parameter colcount returns number of columns in the table
classmethod diffData(ByRef rdata As %Stream, ByRef sdata As %Stream, type As %Integer = 0) as %Stream
Compare the data row by row and column by column
classmethod diffExpectedByStream(ByRef sql As %Stream, ByRef exp As %Stream, ignoreVars As %ListOfDataTypes = "") as %Stream
Get the column information
classmethod getData(ByRef str As %Stream, ByRef data As %Stream, type As %Integer = 0, ByRef plan As %Stream = "")
Get the data information
str is stream read, data is stream write, type is result data format (0=dsql,osql,jsql; 1=esql)
Return section from
Return the SQLCODE value from a supplied string
classmethod getSqlExec(ByRef str As %FileCharacterStream, ByRef line As %Integer) as %String
Return a sql execution from file
Trim leading white spaces from str
classmethod rewindLine(ByRef str As %Stream, beginline As %Integer = 0, lastline As %Integer = 0, rewindline As %Integer = 0, ByRef outstr As %Stream)
Rewind line(s) from current line for stream returns the lines between lastline and rewindline
Trim trailing white spaces from str
Strip out occurrences of a ASCII character from a supplied string
Trim leading and trailing white spaces from str
Return name of data type for given data type value
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()