nearinfinity/node-persist — pull request #35 by tvernon (2012-08-07 18:54:57+00:00)
Title: Added support for creating models without defining the columns.

Added methods to persist.js:defineAuto, waitForDefinitionsToFinish

Syntax: defineAuto(modelName, dbOptions, callback). Gets column data from dbInfo and calls the standard define with the retrieved columnDefs. Uses a queue to prevent concurrency issues.

waitForDefinitionsToFinish(callback): assigns a callback to be called when the last item in the queue has returned.