pglite icon indicating copy to clipboard operation
pglite copied to clipboard

database parameter not working properly

Open tdrz opened this issue 6 months ago • 0 comments

PGlite seems not to use the database parameter properly.

e.g. this doesn't work properly:

  const db = await PGlite.create({
    database: "postgres",
    dataDir: purpose === "database" ? "path/to/data/dir" : "memory://",
    debug: debug ? 5 : undefined,
    defaultDataTransferContainer: "file",
    relaxedDurability: false,
    username: "postgres",
  });

see the discussion on Slack on 2025.05.28

tdrz avatar May 28 '25 13:05 tdrz