convert

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package convert converts between FDBQ and FDB types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFDBElement

func FromFDBElement(in tuple.TupleElement) q.TupElement

FromFDBElement converts a tuple.TupleElement into a keyval.TupElement. This function panics if an invalid tuple.TupleElement is provided.

func FromFDBTuple

func FromFDBTuple(in tuple.Tuple) q.Tuple

FromFDBTuple converts a tuple.Tuple into a keyval.Tuple. This function panics if an invalid tuple.Tuple is provided.

func FromStringArray

func FromStringArray(in []string) q.Directory

FromStringArray converts a string array into a keyval.Directory.

func ToFDBTuple

func ToFDBTuple(in q.Tuple) (tuple.Tuple, error)

ToFDBTuple converts a keyval.Tuple into a tuple.Tuple. If the keyval.Tuple contains a keyval.Variable or keyval.MaybeMore then an error is returned.

func ToStringArray

func ToStringArray(in q.Directory) ([]string, error)

ToStringArray attempts to convert a keyval.Directory to a string array. If the keyval.Directory contains non-string elements, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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