eggjs / egg

🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
https://eggjs.org
MIT License
18.88k stars 1.81k forks source link

egg-sequelize 如何支持 oracle? #1714

Closed chen900112 closed 6 years ago

chen900112 commented 6 years ago

没找到用例和对应的 oracle包 ,有提示么?

atian25 commented 6 years ago

如果 sequelize 官方支持,我们就能使用,不支持的话就没办法。

chen900112 commented 6 years ago

@atian25 那egg 我想连接 oracle 应该怎么做?

atian25 commented 6 years ago

如果没有 sequelize 对应的 dialect 驱动的话,那只能自己找个 oracle 的 nodejs 类库,然后参考 egg-mysql 封装了。

solarhell commented 6 years ago

https://github.com/eggjs/egg-knex/blob/master/lib/knex.js 这个是支持 oracle 的

chen900112 commented 6 years ago

@solarhell 有经过项目使用?怕有坑 维护周期看上去并不活跃啊

solarhell commented 6 years ago

kenx只是个sql builder,最后的执行、数据库连接都是依赖 strong-oracle 或者 oracle,所以稳定性都是由这些驱动来决定的。 (http://knexjs.org/ 详见oracle驱动)