将Pouch DB连接到mssql

时间:2016-11-09 12:57:19

标签: angularjs cordova ionic-framework pouchdb

我需要将我的pouchdb,ionic,cordova,angular app连接到另一个db,它与mvc / .net和mssql服务器一起使用。

在我的应用中我的常数是。

'use strict';

angular.module('emInspectionsApp.constants').constant('AppConstants', {
AppName:                'Inspectus',
Build:                  '', // This value is taken from config.xml, the one  defined here is overwritten
WebServicesURL:         'https://localhost:44302/api/',
WebServicesURLHTTPS:    'https://localhost:44302/api/',
LocalDatabaseName:      'CBRE_Opus_Local',
MaxPhotosPerQuestion:   4,
MaxPhotosForInspection: 40,
//maximum size of images in bytes.
//If the size of current uploaded images will be greater than this value, it will not allow to upload any other images
MaxPhotosSizeForInspection: 5000000,
// DatabaseVersion property is incremented every time a change is made to the database that
// requires a recreation of its structure
DatabaseVersion:        '1.27.1'
});

我与db的连接是

db = new PouchDB(AppConstants.LocalDatabaseName, {adapter: 'websql'});

0 个答案:

没有答案