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

connection.close() is not working

Open rammere opened this issue 8 years ago • 2 comments

Hi, I tried to use connection.close but it is not working , any suggestion ? Regards,

rammere avatar Jun 22 '17 11:06 rammere

For me too, any success? Even if we do: createConnection(options).then(connection => connection.close());

It not work.

The error is:

this.databaseConnection.connection.close is not a function
    at Promise (WebSqlDriver.js:61)
    at new t (polyfills.js:3)
    at WebSqlDriver.disconnect (WebSqlDriver.js:57)
    at Connection.<anonymous> (Connection.js:131)
    at Generator.next (<anonymous>)
    at Connection.js:6
    at new t (polyfills.js:3)
    at __awaiter (Connection.js:2)
    at Connection.close (Connection.js:128)
    at DatabaseServiceProvider.<anonymous> (database-service.ts:140)

jeansantana avatar Jul 18 '17 12:07 jeansantana

Bump, also not working for me using 'ionic-sqlite'

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