Skip to content

Running query leaves behind -shm and -wal files after clean shutdown. #11

Closed
@smoyerx

Description

@smoyerx

The trivial program below opens/creates a DB file, runs a query on sqlite_schema, closes the DB file, and exits. After exit it leaves behind '-shm' and '-wal' files which shouldn't happen on a clean shutdown.

If you comment-out the query and un-comment the create table command then there is no '-shm' or '-wal' after exit.

import 'package:sqlite_async/sqlite_async.dart';

Future<void> main() async {
  final db = SqliteDatabase(path: 'txntest.db');
  await db.initialize();

  await db.getAll("SELECT * FROM sqlite_schema;");

  //await db.execute("CREATE TABLE table1 (name TEXT UNIQUE NOT NULL);");

  await db.close();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions