mypg-tools
Tools for mypg lib.
API
Methods require context (this
) to have user property for audit reasons (convention of mypg).
findOrCreate.build(tableName, discriminantName)
Builds function findOrCreate(discriminantValue)
which promises extraction or creation of record which match discrimination condition.
var findOrCreate = toolsfindOrCreate;;
associate.build(tableName, masterColumnName, slaveColumnName);
Builds function associate(masterValue, slaveValuesArray)
which does association (many to many) of certain record with given children.
var associate = toolsassociate;;
License
BSD