fix(mock-collections): syntax error at or near "-"

This commit is contained in:
chenos 2024-06-15 15:35:12 +08:00
parent de0fb26609
commit 6c431caec4

View File

@ -334,8 +334,8 @@ export class PluginMockCollectionsServer extends Plugin {
}); });
await client.connect(); await client.connect();
await client.query(`DROP DATABASE IF EXISTS ${externalDB}`); await client.query(`DROP DATABASE IF EXISTS "${externalDB}"`);
await client.query(`CREATE DATABASE ${externalDB}`); await client.query(`CREATE DATABASE "${externalDB}"`);
await client.end(); await client.end();
// import sql import external database // import sql import external database