Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize SQLite close #295

Closed
brettz9 opened this issue Mar 24, 2017 · 1 comment
Closed

Utilize SQLite close #295

brettz9 opened this issue Mar 24, 2017 · 1 comment

Comments

@brettz9
Copy link
Collaborator

brettz9 commented Mar 24, 2017

As discussed in #294, we ought to be calling nodeWebSQLDBInstance._db._db.close() under the right conditions, if not for freeing resources than for catching possible errors during closing.

@brettz9 brettz9 added the Bug label Mar 24, 2017
@brettz9 brettz9 added this to the 3.0.0 milestone Mar 24, 2017
@brettz9 brettz9 self-assigned this Mar 24, 2017
brettz9 added a commit to brettz9/IndexedDBShim that referenced this issue Apr 2, 2017
…ion fault"--but not closing in that test?

- Enhancement: For Node, utilize underlying SQLite3 `close` listener to wait
    for genuine closing before reporting `close` event (indexeddbshim#295)
- Enhancement: For Node, treat any underlying SQLite3 `close` errors as force
    close operations
- Refactoring (spec parity): Integrate force close logic into close logic (force close still untested)
brettz9 added a commit to brettz9/IndexedDBShim that referenced this issue Apr 4, 2017
…ion fault"--but not closing in that test?

- Enhancement: For Node, utilize underlying SQLite3 `close` listener to wait
    for genuine closing before reporting `close` event (indexeddbshim#295)
- Enhancement: For Node, treat any underlying SQLite3 `close` errors as force
    close operations
- Refactoring (spec parity): Integrate force close logic into close logic (force close still untested)
brettz9 added a commit to brettz9/IndexedDBShim that referenced this issue Apr 5, 2017
…ion fault"--but not closing in that test?

- Enhancement: For Node, utilize underlying SQLite3 `close` listener to wait
    for genuine closing before reporting `close` event (indexeddbshim#295)
- Enhancement: For Node, treat any underlying SQLite3 `close` errors as force
    close operations
- Refactoring (spec parity): Integrate force close logic into close logic (force close still untested)
@brettz9 brettz9 modified the milestones: 4.0.0, 3.0.0 Apr 7, 2017
@brettz9
Copy link
Collaborator Author

brettz9 commented May 4, 2017

It didn't seem to be possible to recover after such a close, so I'm not sure this would be of any use.

@brettz9 brettz9 closed this as completed May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant