mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
Merge in v5 code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
/**
|
||||
@@ -59,7 +59,9 @@ export class SQLitePorter extends IonicNativePlugin {
|
||||
successName: 'successFn',
|
||||
errorName: 'errorFn'
|
||||
})
|
||||
importSqlToDb(db: any, sql: string): Promise<any> { return; }
|
||||
importSqlToDb(db: any, sql: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Exports a SQLite DB as a set of SQL statements.
|
||||
@@ -71,7 +73,9 @@ export class SQLitePorter extends IonicNativePlugin {
|
||||
successName: 'successFn',
|
||||
errorName: 'errorFn'
|
||||
})
|
||||
exportDbToSql(db: any): Promise<any> { return; }
|
||||
exportDbToSql(db: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts table structure and/or row data contained within a JSON structure into SQL statements that can be executed against a SQLite database. Can be used to import data into the database and/or create the table structure.
|
||||
@@ -84,7 +88,9 @@ export class SQLitePorter extends IonicNativePlugin {
|
||||
successName: 'successFn',
|
||||
errorName: 'errorFn'
|
||||
})
|
||||
importJsonToDb(db: any, json: any): Promise<any> { return; }
|
||||
importJsonToDb(db: any, json: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Exports a SQLite DB as a JSON structure
|
||||
@@ -96,7 +102,9 @@ export class SQLitePorter extends IonicNativePlugin {
|
||||
successName: 'successFn',
|
||||
errorName: 'errorFn'
|
||||
})
|
||||
exportDbToJson(db: any): Promise<any> { return; }
|
||||
exportDbToJson(db: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wipes all data from a database by dropping all existing tables
|
||||
@@ -108,6 +116,8 @@ export class SQLitePorter extends IonicNativePlugin {
|
||||
successName: 'successFn',
|
||||
errorName: 'errorFn'
|
||||
})
|
||||
wipeDb(db: any): Promise<any> { return; }
|
||||
wipeDb(db: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user