如何将Flutter(Dart)与Oracle Server连接?有人尝试过这个吗? [英] How Can i Connect Flutter (Dart) with my Oracle Server ? Have Some one Tried on this?

查看:44
本文介绍了如何将Flutter(Dart)与Oracle Server连接?有人尝试过这个吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将Flutter App与我的Oracle Server连接..搜索了Google,但除了dart网站上的一个资源外,没有找到任何好的资源,但是它不再与当前的dart版本一起使用.有人尝试过此操作,请告诉并解释应该做什么我会吗?

I need to Connect My Flutter App With my Oracle Server ..Searched Google but no good resource found except one on dart web but it is no more used with current dart version.Have Some one tried this please tell and explain what should i do ?

最近,我在YouTube上观看了视频,其中阿里巴巴团队制作了一个扑朔迷离的应用严重的是,我不认为他们为此使用火力基地.他们拥有自己的服务器,并且不会将数据提供给某些第三方.必须有一种将flutter与Server连接的方法.请解释.

Recently i have seen video on YouTube in which Alibaba team made a flutter app and seriously i do not think they use fire base for that .they have their own servers and will not provide data to some third party.There must be a way to connect flutter with Servers. Please Explain.

推荐答案

我有一个类似的用例场景,我正在Flutter中为使用 Oracle DB .

I have a similar use case scenario, I'm creating a new mobile app in Flutter for an already existing web app that use an Oracle DB.

如上所述,我已经使用此Oracle数据库驱动程序为Node.js创建了REST API. node-oracledb https://github.com/oracle/node-oracledb .到目前为止,我可以说它是稳定的并且有据可查.您还可以添加一个 https://www.npmjs.com/package/simple-oracledb 为了扩展oracledb的功能(我已经使用此数据库在单个事务中运行多个oracle操作).

As the above replies I've create the REST APIs using this Oracle Database driver for Node.js node-oracledb https://github.com/oracle/node-oracledb. So far I can say that it is stable and well documented. You can also add this one https://www.npmjs.com/package/simple-oracledb in order to extend capabilities of oracledb (I've use this one to run multiple oracle operations in a single transaction).

之后,在Flutter上,您可以使用 json_serializable https:/创建模型/pub.dartlang.org/packages/json_serializable 来为类生成与JSON代码之间的信息.您可以解析来自API的响应,以便将JSON响应转换为对象(甚至更好的是将json响应中的数据集输出发送到对象列表).

After that on Flutter you can create your models using json_serializable https://pub.dartlang.org/packages/json_serializable to generate to/from JSON code for a class. You can parse the response that came from the API in order to convert the JSON response to object (or even better a dataset output send in json response to a list of objects) .

https://medium.com/flutter-io/some-options-for-deserializing-json-with-flutter-7481325a4450

这篇关于如何将Flutter(Dart)与Oracle Server连接?有人尝试过这个吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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