wasmbridge

package
v0.66.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package wasmbridge transfers query results from Go to JavaScript.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRows added in v0.66.0

func MakeRows(rowCount, columnCount int) [][]any

MakeRows allocates one cell backing store rather than one per row. Capping each row's capacity keeps append from overwriting its neighbor.

func QueryResult

func QueryResult(columns []string, rows [][]any, errMsg string, count int, elapsedNs int64) any

QueryResult preserves the native-object query response. Larger primitive results cross the boundary in bounded JSON batches. Values whose JSON semantics differ use ValueOf without disabling batching for adjacent rows.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL