mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 16:52:18 +00:00
add comments
This commit is contained in:
parent
41a793ed53
commit
297bda0d5c
@ -1,5 +1,8 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Require our dialect-specific code
|
||||||
|
*/
|
||||||
const getDialectClass = (client) => {
|
const getDialectClass = (client) => {
|
||||||
switch (client) {
|
switch (client) {
|
||||||
case 'postgres':
|
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) => {
|
const getDialectName = (client) => {
|
||||||
switch (client) {
|
switch (client) {
|
||||||
case 'postgres':
|
case 'postgres':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user