Class: Operation

Operation

new Operation(name)

The operation class, used to store details about an operation being performed by the database.
Parameters:
Name Type Description
name String The name of the operation.
Source:

Methods

flag(key, val) → {*}

Used to set key/value flags during operation execution.
Parameters:
Name Type Description
key String
val String
Source:
Returns:
Type
*

log(event) → {*}

Adds an item to the operation log.
Parameters:
Name Type Description
event String The item to log.
Source:
Returns:
Type
*

start()

Starts the operation timer.
Source:

stop()

Stops the operation timer.
Source:

time(section) → {*}

Called when starting and ending a timed operation, used to time internal calls within an operation's execution.
Parameters:
Name Type Description
section String An operation name.
Source:
Returns:
Type
*