简体   繁体   English

连接 OracleDB 和 SQLite (node.js) 的最佳方式是什么?

[英]What's the best way to connect a OracleDB and SQLite (node.js)?

I've started recently with a small project and I admit that I'm new to node.js, oracleDB and sqlite and all this technologies used in here.我最近开始了一个小项目,我承认我是 node.js、oracleDB 和 sqlite 以及这里使用的所有这些技术的新手。

I have a oracleDB connection to a database where I can fetch data from tables (which is actually working properly), altough I also have a SQlite database where I want to temporarilly get the information that I get from the oracleDB.我有一个到数据库的 oracleDB 连接,我可以从表中获取数据(实际上工作正常),尽管我也有一个 SQlite 数据库,我想在其中临时获取我从 oracleDB 获得的信息。

My big question is, what's the best approach?我最大的问题是,最好的方法是什么? I mean, should I create 2 different connections in 2 separate .js files or should I create one connection inside other and try to make it work?我的意思是,我应该在 2 个单独的 .js 文件中创建 2 个不同的连接,还是应该在另一个内部创建一个连接并尝试使其工作?

Thanks for the help already.感谢您的帮助。 Cheers干杯

should I create 2 different connections in 2 separate .js files我应该在 2 个单独的 .js 文件中创建 2 个不同的连接吗

Yes.是的。

should I create one connection inside other and try to make it work?我应该在另一个内部创建一个连接并尝试使其工作吗?

I don't see how you can possible do that since they're different database engines and require different Node packages/drivers.我不知道你怎么可能做到这一点,因为它们是不同的数据库引擎并且需要不同的 Node 包/驱动程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM