innodb-utils 5.1.0

InnoDB file analysis toolkit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// WASM module loader
let wasmModule = null;

export async function initWasm() {
  if (wasmModule) return wasmModule;
  const mod = await import('../../pkg/idb.js');
  await mod.default();
  wasmModule = mod;
  return mod;
}

export function getWasm() {
  if (!wasmModule) throw new Error('WASM not initialized');
  return wasmModule;
}