og('Starting...')
        const pg = new PGlite()

        let ret = await pg.exec(`
  CREATE EXTENSION IF NOT EXISTS plpgsql;
`)
        console.log(ret)

        await pg.exec(`
  CREATE OR REPLACE FUNCTION calculate_factorial(n INT) RETURNS INT AS $$
  DECLARE
      result INT := 1;
  BEGIN
      IF n < 0 THEN
          RAISE EXCEPTION 'The input cannot be negative.';
      ELSIF n = 0 OR n = 1 THEN
          RETURN result;
      ELSE
          FOR i IN 2..n LOOP
              result := result * i;
     