Class: GDSQLite3encImport

GDSQLite3encImport()

Wrapper for sqlite3enc_import method

Methods

sqlite3enc_import(successCallback, errorCallback)

This method will return a Secure Database object. Use the Database Object to manipulate the data.
Parameters:
Name Type Description
successCallback function Callback to be invoked when upload has completed
errorCallback function Callback to be invoked upon error
Properties:
Name Type Description
srcFilename string Full path, within the secure file system, of the plain SQLite database file to be imported.
destFilename string Full path of the database to be created. If the database already exists, its contents will be overwritten.
Source:
Example
function success(dbFile) {
    console.log("Imported Database Path: " + dbFile.fullPath);
    db = window.openDatabase(dbFile.fullPath, "1.0", "Secure SQLite", 200000);
}

function fail(error) {
    alert(error.code);
}

function importSQLiteFile(entry) {
 sqlite3enc_import(entry.fullPath,"/SecureSQLite3.db",success,fail);
}