Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.6.95 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRowSort

func DefaultRowSort(rowMap map[string]map[string]interface{}) []string

func DescribeRowSort

func DescribeRowSort(payload map[string]map[string]interface{}) []string

func EmptyProtectResultSet

func EmptyProtectResultSet(
	rv internaldto.ExecutorOutput,
	columns []string,
	typCfg typing.Config,
) internaldto.ExecutorOutput

func ExtractSQLNodeParams

func ExtractSQLNodeParams(
	statement sqlparser.SQLNode,
	insertValOnlyRows map[int]map[int]interface{},
) (map[int]map[string]interface{}, error)

func GenerateSimpleErroneousOutput

func GenerateSimpleErroneousOutput(
	err error,
	typCfg typing.Config,
) internaldto.ExecutorOutput

func GetFilePathFromRepositoryRoot

func GetFilePathFromRepositoryRoot(relativePath string) (string, error)

func GetForwardSlashFilePathFromRepositoryRoot

func GetForwardSlashFilePathFromRepositoryRoot(relativePath string) (string, error)

func GetHeaderOnlyResultStream

func GetHeaderOnlyResultStream(
	colz []string,
	typCfg typing.Config,
) sqldata.ISQLResultStream

func MaxMapKey

func MaxMapKey(numbers map[int]interface{}) int

func TransformSQLRawParameters

func TransformSQLRawParameters(input map[string]interface{}, ignoreTuples bool) (map[string]interface{}, error)

func TrimSelectItemsKey added in v0.5.589

func TrimSelectItemsKey(selectItemsKey string) string

Types

type AnnotatedTabulation

type AnnotatedTabulation interface {
	GetAlias() string
	GetHeirarchyIdentifiers() internaldto.HeirarchyIdentifiers
	GetInputTableName() string
	GetSQLDataSource() (sql_datasource.SQLDataSource, bool)
	GetTabulation() anysdk.Tabulation
	SetSQLDataSource(sql_datasource.SQLDataSource)
	WithParameters(parameters map[string]interface{}) AnnotatedTabulation
	GetParameters() map[string]interface{}
}

func NewAnnotatedTabulation

func NewAnnotatedTabulation(
	tab anysdk.Tabulation,
	hIDs internaldto.HeirarchyIdentifiers,
	inputTableName string,
	alias string,
) AnnotatedTabulation

type Column

type Column interface {
	GetName() string
	GetSchema() anysdk.Schema
	GetWidth() int
}

type TableSchemaAnalyzer

type TableSchemaAnalyzer interface {
	GetColumns() ([]Column, error)
	GetColumnDescriptors(AnnotatedTabulation) ([]anysdk.ColumnDescriptor, error)
}

Jump to

Keyboard shortcuts

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