THT is in early Beta. We welcome contributors & feedback.

Db.insertRow

Db.insertRow(table, rowMap)

Description

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

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

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