add comments

This commit is contained in:
Ben Irvin 2023-03-23 16:10:24 +01:00
parent 41a793ed53
commit 297bda0d5c

View File

@ -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':