在Angular 2中连接数据库 [英] Connect database in Angular 2

查看:83
本文介绍了在Angular 2中连接数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我是 Angular2 的新手,请问我如何使用 Angular 2 连接Oracle数据库的解决方案.

Since i am new to Angular2, Can you please give me the solution that how to connect Oracle database using Angular 2.

我尝试使用Meteor,但是由于我们只能与MongoDB连接,但是我需要与Oracle 10G数据库连接.

I have tried using Meteor, But in that we are able to connect with MongoDB only, but my need is to connect with Oracle 10G database.

我正在使用Webstorm IDE来开发应用程序,请帮帮我..

Am using Webstorm IDE for Developing application, Please help me guys..

推荐答案

我刚刚遇到了同样的问题,我认为您遇到的问题是缺少某些API的后端(例如REST- API).

I have just been having the same issue and I think the problem that you are having is the lack of a back-end with some API (for example REST-API).

此后端将确保将来自Angular 2 App的HTTP请求转换为准备好的SQL语句,并执行它们以从数据库中检索数据.

This back-end will make sure to translate your HTTP requests from your Angular 2 App into prepared SQL-Statements and execute them to retrieve the data from your Database.

然后,您应该将检索到的数据解析为JSON格式,并将响应发送到Angular 2前端. 访问数据库

You should then parse the retrieved data into JSON-Format and send the response to your Angular 2 front-end. Access DB

这篇关于在Angular 2中连接数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆