mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 23:06:00 +00:00
fix create & drop database on oracle
This commit is contained in:
@@ -2,16 +2,19 @@ const { SqlDumper, arrayToHexString, testEqualTypes } = global.DBGATE_PACKAGES['
|
||||
|
||||
class Dumper extends SqlDumper {
|
||||
createDatabase(name) {
|
||||
this.putCmd(
|
||||
this.put(
|
||||
`CREATE USER c##${name}
|
||||
IDENTIFIED BY ${name}
|
||||
DEFAULT TABLESPACE users
|
||||
TEMPORARY TABLESPACE temp
|
||||
QUOTA 10M ON users;`,
|
||||
name
|
||||
QUOTA 10M ON users`
|
||||
);
|
||||
}
|
||||
|
||||
dropDatabase(name) {
|
||||
this.put(`DROP USER ${name}`);
|
||||
}
|
||||
|
||||
// oracle uses implicit transactions
|
||||
beginTransaction() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user