|
mobius-js | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--ProcessingStack
Method Summary | |
void
|
close()
Called by a model to place a close operation on the stack. |
void
|
connect(<function> callback)
Called by a model to place a connect operation on the stack. |
void
|
create(<object> params, <function> callback)
Called by a model to place a create operation on the stack. |
void
|
createIndex(<object> params, <function> callback)
Called by a model to place an operation on the stack which initializes model indexes. |
void
|
find(params, <function> callback)
A stack operation that returns models from the database as a parameter to the callback provided. |
void
|
init(dbConfiguration, callback)
Synchronous processing stack abstracts away asynchronous behavior. |
void
|
render(params, <function> callback)
Called by a MobiusController to queue up the rendering of a view, so that it is performed after all other database operations. |
void
|
reset(<function> callback)
Performs a hard reset of the Database connection. |
Method Detail |
void close()
void connect(<function> callback)
callback
- function to execute once connection is complete.
void create(<object> params, <function> callback)
params
- key value pairs for creating a new model.
callback
- function to execute upon this operations completion.
void createIndex(<object> params, <function> callback)
params
- key value pairs for model index creation operation.
callback
- function to execute upon this operations completion.
void find(params, <function> callback)
callback
- function to return all models retrieved to.
Parameters
- for restricting and sorting the models returned from the DB.
void init(dbConfiguration, callback)
void render(params, <function> callback)
callback
- the function that actually performs rendering.
parameters
- needed by Express' render function.
void reset(<function> callback)
callback
- function to execute once connection is complete.
|
mobius-js | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |