Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.3k views
in Technique[技术] by (71.8m points)

flutter如何连接数据库?

网上教程都是json接口。怎么没有数据库的方法?我想链接mongodb,mysql如何做?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

flutter 用来开发大前端应用,这意味着它的大多数运行环境都不会安装数据库,所以官方恐怕没有动力去开发这样的模块。
dart应该可以连接数据库,真有需求的话可以用 dart开发,或者从开源的 dart 服务端项目里剥离其数据库模块,然后集成到 flutter
连接数据库的事情,最好还是交给服务器去做。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...