Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

Db.insertRow

Db.insertRow($table, $rowMap)

Description

Insert a row into a table, where each Map key corresponds to a table column.

$row = {
    name: 'Ann',
    role: 'Analyst'
};
Db.insertRow('users', $row);

// Runs this query:
// INSERT INTO users (name, role) VALUES ("Ann", "Analyst")