UNPKG

mg-dbx-napi

Version:

High speed Synchronous and Asynchronous access to InterSystems Cache/IRIS and YottaDB from Node.js or Bun.

19 lines (18 loc) 347 B
// Load the correct JavaScript shim let mod; if (typeof Bun === 'undefined') { mod = await import('mg-dbx-napi/node'); } else { mod = await import('mg-dbx-napi/bun'); } let server = mod.server; let mglobal = mod.mglobal; let mclass = mod.mclass; let mcursor = mod.mcursor; export { server, mglobal, mclass, mcursor }