Documentation ¶
Overview ¶
Package sql is a client package for WASM functions running within a Tarmac server.
This package provides a user-friendly SQL database interface with underlying databases configured within Tarmac. Guest WASM functions running inside Tarmac can import and call this SQL interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Namespace controls the function namespace to use for host callbacks. The default value is "default" which is the global namespace. // Users can provide an alternative namespace by specifying this field. Namespace string // HostCall is used internally for host callbacks. This is mainly here for testing. HostCall func(string, string, string, []byte) ([]byte, error) }
Config provides users with the ability to specify namespaces, function handlers and other key information required to execute the function.
Click to show internal directories.
Click to hide internal directories.