MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / insertVote

Function insertVote

run/idp-sql/cloud-sql.js:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 * @returns {Promise}
97 */
98const insertVote = async vote => {
99 if (!knex) knex = await connect();
100 return knex(TABLE).insert(vote);
101};
102
103/**
104 * Retrieve the latest 5 vote records from the database.

Callers 1

app.jsFile · 0.70

Calls 1

connectFunction · 0.70

Tested by

no test coverage detected