bigqueryudf

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

README

bigqueryudf

An Cloud Function interface wrapper that could be used as UDF in Big Query

This implementation uses http interface and bigquery entities expected inside a Cloud Function

TL;DR

func init() {
	functions.HTTP("bigquery", bigqueryudf.NewHandler(transformationExample))
}

func transformationExample(input []byte) (any, error) {
	return "hello world", nil
}

To understand more about how to use this project, there are some examples

Comments, discussions, issues and pull-requests are welcomed.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(transformationFunc func(input []byte) (any, error)) func(w http.ResponseWriter, r *http.Request)

NewHandler function is a wrapper for bigquery functional cloud function that works inside UDF (User Defined Function).

Types

This section is empty.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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