Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 9, 2024
1 parent a84dce1 commit 883aa70
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/connectors/pglite.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
import { PGlite, type Extensions } from "@electric-sql/pglite";
import { PGlite, type PGliteOptions } from "@electric-sql/pglite";
import type { Connector, Statement } from "../types";

// Since Filesystem is not exported, we will type it as `any` for now
export type ConnectorOptions = {
dataDir?: string;
debug?: 1 | 2 | 3 | 4 | 5;
relaxedDurability?: boolean;
fs?: any; // Change to any or remove if not needed
loadDataDir?: Blob | File;
extensions?: Extensions;
username?: string;
database?: string;
initialMemory?: number;
};
export type ConnectorOptions = PGliteOptions

export default function pgliteConnector(opts: ConnectorOptions = {}) {
let _client: PGlite | undefined;
Expand Down

0 comments on commit 883aa70

Please sign in to comment.