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

查看:27
本文介绍了在 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 应用程序的 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天全站免登陆