ionic-orm icon indicating copy to clipboard operation
ionic-orm copied to clipboard

dropDatabase failing with error 'query failed: drop table __WebKitDatabaseInfoTable__;'

Open connor-odoherty opened this issue 7 years ago • 1 comments

I am attempting to write a function that lets me drop the database I am currently using. My method is a follows:

    dropDatabase(): Promise<void>{
        return new Promise<void>((resolve, reject) => {
            this.getConnection().then(connection =>{
                connection.dropDatabase().then(()=>{
                    connection.close().then(resolve,reject)
                }, reject)
            },reject)
        })
    }

connor-odoherty avatar Aug 25 '17 21:08 connor-odoherty

Facing same issue, @connor-odoherty did you get any solution for this?

akashbiz avatar Dec 21 '18 10:12 akashbiz