ActionHero.js 具有 Oracle 数据库持久性的框架
ActionHero.js Framework with Oracle database persistence
我是使用 nodejs 的新手,我需要制作一个可以使用 websocket 的 REST API。我正在寻找一个我可以使用的框架,我找到了 actionhero.js,我认为它可以满足我的需要。
但是我发现这个框架有一个小问题,我找不到关于如何让它与 oracle 数据库一起工作的信息,如果你们中的任何人能告诉我如何做,我将不胜感激我让它与 Oracle 数据库一起使用这个框架,或者建议我使用一个基于 REST API 的框架来满足我的需求。
谢谢。
正如您所指出的,Actionhero 是一个 REST API 框架。它不包含任何数据库驱动程序(redis 除外,它用于集群通信)。您可以轻松地在 initializer 中为您喜欢的任何数据库添加广告支持。
还有添加数据库支持的插件。例如,ah-sequelize-plugin adds support for the Sequelize ORM, probably the most popular node.js ORM. Sequelize doesn't support the Oracle DB out of the box (very few things do), but there exist drivers you can use: https://github.com/adeo-proxideco/sequelize-oracle
我是使用 nodejs 的新手,我需要制作一个可以使用 websocket 的 REST API。我正在寻找一个我可以使用的框架,我找到了 actionhero.js,我认为它可以满足我的需要。
但是我发现这个框架有一个小问题,我找不到关于如何让它与 oracle 数据库一起工作的信息,如果你们中的任何人能告诉我如何做,我将不胜感激我让它与 Oracle 数据库一起使用这个框架,或者建议我使用一个基于 REST API 的框架来满足我的需求。
谢谢。
正如您所指出的,Actionhero 是一个 REST API 框架。它不包含任何数据库驱动程序(redis 除外,它用于集群通信)。您可以轻松地在 initializer 中为您喜欢的任何数据库添加广告支持。
还有添加数据库支持的插件。例如,ah-sequelize-plugin adds support for the Sequelize ORM, probably the most popular node.js ORM. Sequelize doesn't support the Oracle DB out of the box (very few things do), but there exist drivers you can use: https://github.com/adeo-proxideco/sequelize-oracle