Interface DuckDBModule

interface DuckDBModule {
    FAST_MEMORY: number;
    FHEAP: Float64Array;
    HEAP: Int32Array;
    HEAP16: Int16Array;
    HEAP32: Int32Array;
    HEAP64: BigInt64Array;
    HEAP8: Int8Array;
    HEAPF32: Float32Array;
    HEAPF64: Float64Array;
    HEAPU16: Uint16Array;
    HEAPU32: Uint32Array;
    HEAPU64: BigUint64Array;
    HEAPU8: Uint8Array;
    IHEAP: Int32Array;
    PThread: PThread;
    TOTAL_MEMORY: number;
    TOTAL_STACK: number;
    arguments: string[];
    ccall: (<I, R>(ident, returnType, argTypes, args, opts?) => ReturnToType<R>);
    environment: EnvironmentType;
    filePackagePrefixURL: string;
    logReadFiles: boolean;
    noExitRuntime: boolean;
    noInitialRun: boolean;
    onAbort: ((what) => void);
    onRuntimeInitialized: (() => void);
    postRun: (() => void)[];
    preInit: (() => void)[];
    preRun: (() => void)[];
    preinitializedWebGLContext: WebGLRenderingContext;
    preloadedAudios: any;
    preloadedImages: any;
    stackAlloc: ((size) => number);
    stackRestore: ((ptr) => void);
    stackSave: (() => number);
    wasmBinary: ArrayBuffer;
    _free(ptr): void;
    _malloc(size): number;
    addOnExit(cb): void;
    addOnInit(cb): void;
    addOnPostRun(cb): void;
    addOnPreMain(cb): void;
    addOnPreRun(cb): void;
    destroy(object): void;
    getPreloadedPackage(remotePackageName, remotePackageSize): ArrayBuffer;
    instantiateWasm(imports, successCallback): WebAssemblyExports;
    locateFile(url, scriptDirectory): string;
    onCustomMessage(event): void;
    print(str): void;
    printErr(str): void;
}

Hierarchy

  • EmscriptenModule
    • DuckDBModule

Properties

FAST_MEMORY: number
FHEAP: Float64Array
HEAP: Int32Array
HEAP16: Int16Array
HEAP32: Int32Array
HEAP64: BigInt64Array
HEAP8: Int8Array
HEAPF32: Float32Array
HEAPF64: Float64Array
HEAPU16: Uint16Array
HEAPU32: Uint32Array
HEAPU64: BigUint64Array
HEAPU8: Uint8Array
IHEAP: Int32Array
PThread: PThread
TOTAL_MEMORY: number
TOTAL_STACK: number
arguments: string[]
ccall: (<I, R>(ident, returnType, argTypes, args, opts?) => ReturnToType<R>)

Type declaration

    • <I, R>(ident, returnType, argTypes, args, opts?): ReturnToType<R>
    • Type Parameters

      • I extends (null | JSType)[] | []
      • R extends null | JSType

      Parameters

      • ident: string
      • returnType: R
      • argTypes: I
      • args: Extract<{
            [P in string | number | symbol]: StringToType<I[P<P>]>
        }, any[]>
      • Optional opts: CCallOpts

      Returns ReturnToType<R>

environment: EnvironmentType
filePackagePrefixURL: string
logReadFiles: boolean
noExitRuntime: boolean
noInitialRun: boolean
onAbort: ((what) => void)

Type declaration

    • (what): void
    • Parameters

      • what: any

      Returns void

onRuntimeInitialized: (() => void)

Type declaration

    • (): void
    • Returns void

postRun: (() => void)[]

Type declaration

    • (): void
    • Returns void

preInit: (() => void)[]

Type declaration

    • (): void
    • Returns void

preRun: (() => void)[]

Type declaration

    • (): void
    • Returns void

preinitializedWebGLContext: WebGLRenderingContext
preloadedAudios: any
preloadedImages: any
stackAlloc: ((size) => number)

Type declaration

    • (size): number
    • Parameters

      • size: number

      Returns number

stackRestore: ((ptr) => void)

Type declaration

    • (ptr): void
    • Parameters

      • ptr: number

      Returns void

stackSave: (() => number)

Type declaration

    • (): number
    • Returns number

wasmBinary: ArrayBuffer

Methods

  • Parameters

    • ptr: number

    Returns void

  • Parameters

    • size: number

    Returns number

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • object: object

    Returns void

  • Parameters

    • remotePackageName: string
    • remotePackageSize: number

    Returns ArrayBuffer

  • Parameters

    • imports: WebAssemblyImports
    • successCallback: ((module) => void)
        • (module): void
        • Parameters

          • module: Module

          Returns void

    Returns WebAssemblyExports

  • Parameters

    • url: string
    • scriptDirectory: string

    Returns string

  • Parameters

    • event: MessageEvent<any>

    Returns void

  • Parameters

    • str: string

    Returns void

  • Parameters

    • str: string

    Returns void