forked from kriszyp/lmdbx-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexternal.js
More file actions
21 lines (21 loc) · 835 Bytes
/
external.js
File metadata and controls
21 lines (21 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export let Env, Compression, Cursor, getAddress, clearKeptObjects, setGlobalBuffer,
require, arch, fs, lmdbxError, path, EventEmitter, orderedBinary, MsgpackrEncoder, WeakLRUCache;
export function setNativeFunctions(externals) {
Env = externals.Env;
Compression = externals.Compression;
getAddress = externals.getAddress;
clearKeptObjects = externals.clearKeptObjects;
setGlobalBuffer = externals.setGlobalBuffer;
Cursor = externals.Cursor;
lmdbxError = externals.lmdbxError;
}
export function setExternals(externals) {
require = externals.require;
arch = externals.arch;
fs = externals.fs;
path = externals.path;
EventEmitter = externals.EventEmitter;
orderedBinary = externals.orderedBinary;
MsgpackrEncoder = externals.MsgpackrEncoder;
WeakLRUCache = externals.WeakLRUCache;
}