From 297bda0d5cc2bcb9cdf6ea1f437be0d91a523cfe Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Thu, 23 Mar 2023 16:10:24 +0100 Subject: [PATCH] add comments --- packages/core/database/lib/dialects/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/core/database/lib/dialects/index.js b/packages/core/database/lib/dialects/index.js index a42f1b3465..e13fb4d95a 100644 --- a/packages/core/database/lib/dialects/index.js +++ b/packages/core/database/lib/dialects/index.js @@ -1,5 +1,8 @@ 'use strict'; +/** + * Require our dialect-specific code + */ const getDialectClass = (client) => { switch (client) { case 'postgres': @@ -13,6 +16,12 @@ const getDialectClass = (client) => { } }; +/** + * Get the dialect of a database client + * + * @param {string} The client value from a project database configuration + * @returns {string} The dialect of that client + */ const getDialectName = (client) => { switch (client) { case 'postgres':