1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

refactor: rename database to schema

This commit is contained in:
2021-03-17 11:15:14 +01:00
parent d892fa6fb3
commit 4d844fe2c9
13 changed files with 59 additions and 59 deletions

View File

@ -410,7 +410,7 @@ export class MySQLClient extends AntaresCore {
* @returns {Array.<Object>} parameters
* @memberof MySQLClient
*/
async createDatabase (params) {
async createSchema (params) {
return await this.raw(`CREATE DATABASE \`${params.name}\` COLLATE ${params.collation}`);
}
@ -420,7 +420,7 @@ export class MySQLClient extends AntaresCore {
* @returns {Array.<Object>} parameters
* @memberof MySQLClient
*/
async alterDatabase (params) {
async alterSchema (params) {
return await this.raw(`ALTER DATABASE \`${params.name}\` COLLATE ${params.collation}`);
}
@ -430,7 +430,7 @@ export class MySQLClient extends AntaresCore {
* @returns {Array.<Object>} parameters
* @memberof MySQLClient
*/
async dropDatabase (params) {
async dropSchema (params) {
return await this.raw(`DROP DATABASE \`${params.database}\``);
}