为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:dm8
【操作系统】:window11
【CPU】:13th Gen Intel(R) Core(TM) i7-1355U 1.70 GHz
【问题描述】*:
// dmdb 版本号为:1.0.30381
// this.host 值为 'localhost'
// this.port值为 5236
// this.username 值为 SYSDBA
// this.password 值为 ***
// this.database 值为 'DEMO'
import dmdb from 'dmdb';
// 方式一
dmdb.createPool({
connectString: `dm://${this.username}:${this.password}@${this.host}:${this.port}?schema=${this.database}`
})
// 通过 dmdb.createPool 中的 connectString 属性来设置 schema 模式无效,不会切换成功,一直是默认模式
// 方式二
dmdb.getConnection({
connectString: `${this.host}:${this.port}`,
user: this.username,
password: this.password,
schema: `${this.database}`
})
// 通过 dmdb.getConnection 中的 schema 属性来设置 schema 模式无效,不会切换成功,一直是默认模式
DM管理工具
这样可以