Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
98
const
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.js
File · 0.70
Calls
1
connect
Function · 0.70
Tested by
no test coverage detected