BradyNadeau / ionic-orm

Data-Mapper ORM for Ionic2, AngularJS, ( Hybrid Mobile Applications ), Supports WebSQL and SQLite databases. Currently in active development. - TypeORM Fork
https://typeorm.github.io
MIT License
48 stars 13 forks source link

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

Open connor-odoherty opened 7 years ago

connor-odoherty commented 7 years ago

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)
        })
    }
akashbiz commented 5 years ago

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