Skip to content

Commit

Permalink
Expose DUCKDB_BINDINGS in global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-- authored and Mytherin committed Nov 9, 2023
1 parent 92feffe commit 5d8f8ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/duckdb-wasm/src/bindings/bindings_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export abstract class DuckDBBindingsBase implements DuckDBBindings {
this._initPromise = null;
// Remove own progress callback
this.onInstantiationProgress = this.onInstantiationProgress.filter(x => x != onProgress);
(globalThis as any).DUCKDB_BINDINGS = this;
return this;
}
/** Open a database with a config */
Expand Down

0 comments on commit 5d8f8ea

Please sign in to comment.