Skip to content

How to get a db connection object when I replace existing db file with new file? #222

@dugginenisagar

Description

@dugginenisagar

Requirement:
Download an SQLite DB file and use that in the application. Redownload the DB file every time server has new data, and replace the existing DB file in the application.

When I replace the file, openDatabase() is returning Disk IO Error as it is still referencing the old DB file. should I close the connection before replacing the connection? if Yes How?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions