LCOV - code coverage report
Current view: top level - dashql-app/src/storage/migration/session - v7_catalogs_of_connections.ts Coverage Total Hit
Test: DashQL 915828b Lines: 100.0 % 9 9
Test Date: 2026-11-06 19:30:32

            Line data    Source code
       1              : import type { SessionMigrationStep } from '../session_migration.js';
       2              : 
       3              : /// Sessions no longer copy the catalog of their connection, the connection holds the only one.
       4              : ///
       5              : /// Version 6 kept a copy of the catalog of the default connection in the session folder. The storage
       6              : /// step `sessionCatalogsToConnections` seeds connections without a catalog from those copies before
       7              : /// the copies are removed.
       8            1 : export const catalogsOfConnections: SessionMigrationStep = {
       9            1 :     version: 7,
      10            1 :     description: 'Remove the catalog copies of the session',
      11            1 :     async migrate(folder) {
      12            1 :         await folder.remove('dashql-catalog-relations.sql');
      13            1 :         await folder.remove('dashql-catalog-functions.sql');
      14            1 :         await folder.remove('dashql-catalog-changes.sql');
      15            1 :     },
      16            1 : };
        

Generated by: LCOV version 2.0-1