jsonframer

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRootData

func GetRootData(jsonString string, rootSelector string) (string, error)

func QueryJSONUsingSQLite3

func QueryJSONUsingSQLite3(jsonString string, query string, rootSelector string) (string, error)

func ToFrame added in v0.0.2

func ToFrame(jsonString string, options FramerOptions) (frame *data.Frame, err error)

Types

type ColumnSelector

type ColumnSelector struct {
	Selector   string
	Alias      string
	Type       string
	TimeFormat string
}

type FramerOptions added in v0.0.2

type FramerOptions struct {
	FramerType      FramerType // `gjson` | `sqlite3`
	SQLite3Query    string
	FrameName       string
	RootSelector    string
	Columns         []ColumnSelector
	OverrideColumns []ColumnSelector
}

type FramerType

type FramerType string
const (
	FramerTypeGJSON   FramerType = "gjson"
	FramerTypeSQLite3 FramerType = "sqlite3"
)

Jump to

Keyboard shortcuts

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