helpers

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ext *sqlite.ExtensionApi, _ *options.Options) (_ sqlite.ErrorCode, err error)

Register registers helpers as a SQLite extension

Types

type StringSplit

type StringSplit struct{}

StringSplit implements str_split scalar sql function. The function signature of the equivalent sql function is:

str_split(input, separator, index) string

func (*StringSplit) Apply

func (s *StringSplit) Apply(context *sqlite.Context, value ...sqlite.Value)

func (*StringSplit) Args

func (s *StringSplit) Args() int

func (*StringSplit) Deterministic

func (s *StringSplit) Deterministic() bool

type TomlToJson

type TomlToJson struct{}

TomlToJson implements toml_to_json sql function. The function signature of the equivalent sql function is:

toml_to_json(string) string

func (*TomlToJson) Apply

func (y *TomlToJson) Apply(context *sqlite.Context, value ...sqlite.Value)

func (*TomlToJson) Args

func (y *TomlToJson) Args() int

func (*TomlToJson) Deterministic

func (y *TomlToJson) Deterministic() bool

type XmlToJson

type XmlToJson struct{}

XmlToJson implements xml_to_json sql function. The function signature of the equivalent sql function is:

xml_to_json(string) string

func (*XmlToJson) Apply

func (y *XmlToJson) Apply(context *sqlite.Context, value ...sqlite.Value)

func (*XmlToJson) Args

func (y *XmlToJson) Args() int

func (*XmlToJson) Deterministic

func (y *XmlToJson) Deterministic() bool

type YamlToJson

type YamlToJson struct{}

YamlToJson implements yaml_to_json sql function. The function signature of the equivalent sql function is:

yaml_to_json(string) string

func (*YamlToJson) Apply

func (y *YamlToJson) Apply(context *sqlite.Context, value ...sqlite.Value)

func (*YamlToJson) Args

func (y *YamlToJson) Args() int

func (*YamlToJson) Deterministic

func (y *YamlToJson) Deterministic() bool

Jump to

Keyboard shortcuts

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