我想将我的ionic V3应用程序连接到SQL Server数据库,我应该在哪里放置配置对象,以及如何在我的应用程序中使用数据库?我需要的是在主页中以表格或网格的形式显示查询结果。总而言之:1.将应用程序连接到数据库1.进行一些查询1.在主页视图中显示查询结果
5sxhfpxr1#
you can do this in tow ways :1- using sqlite :
SqlServer.init("ipAddress","dbName","dbUser","password",result => { console.log(JSON.stringify(result))})}
2- use this tutorial ( here ) this can be used for fetch data from API's (REST API for example ) of to build your own sql query and use it as API
1条答案
按热度按时间5sxhfpxr1#
you can do this in tow ways :
1- using sqlite :
2- use this tutorial ( here ) this can be used for fetch data from API's (REST API for example ) of to build your own sql query and use it as API