server for my chess game
jsdoc pg.js
| -rw-r--r-- | src/pg.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,12 @@ pool.on("error", (err) => { console.error("database: err:", err); }); +/** + * Runs a SQL command on the database + * + * @param {String} command The command to run + * @returns {(undefined|Object)} result + */ export async function command(command) { let client; try { |