hunk.code_window:     //   if (error) {
       //     logger.error('open db error', error);
       //   }
       // });
       this._db = db;
       db.exec(schemas.join(';'));
       return db;
     };
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:     this.sqliteDB = db;
  
hunk.file_path: apps/electron/layers/main/src/data/sqlite.ts
hunk.type: replace
file: import type { FC, PropsWithChildren, ReactNode } from 'react';
  import { cloneElement } from 'react';
  
  export const ProviderComposer: FC<
    PropsWithChildren<{
      contexts: any;
    }>
  > = ({ contexts, children }) =>
    contexts.reduceRight(
      (kids: ReactNode, parent: any) =>
        cloneElement(parent, {
          children: kids,
        }),
      children
    );
  