Sqlite Db Copy

Contents

This plugin does something

https://github.com/an-rahulpandey/cordova-plugin-dbcopy

Ionic 数据库Sqlite Db Copy插件的安装(Installation)

ionic cordova plugin add cordova-plugin-dbcopy npm install @ionic-native/sqlite-db-copy

Ionic 数据库Sqlite Db Copy插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 数据库Sqlite Db Copy插件的用法(Usage)

import { SqliteDbCopy } from '@ionic-native/sqlite-db-copy';


constructor(private sqliteDbCopy: SqliteDbCopy) { }

...


this.sqliteDbCopy.copy('sample.db', 0)
  .then((res: any) => console.log(res))
  .catch((error: any) => console.error(error));