mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 05:39:36 +00:00
add comments
This commit is contained in:
parent
41a793ed53
commit
297bda0d5c
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user