esutils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EsSqlToMapSlice

func EsSqlToMapSlice(columns []SqlColumn, rows Rows) []map[string]string

func EsSqlToModel

func EsSqlToModel[T any](columns []SqlColumn, rows Rows) []map[string]string

Types

type Rows

type Rows [][]string

Rows es sql 执行返回的行

type SqlColumn

type SqlColumn struct {
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

SqlColumn es sql执行返回的列

type SqlResult

type SqlResult struct {
	Columns []SqlColumn `json:"columns,omitempty"`
	Rows    Rows        `json:"rows,omitempty"`
}

Jump to

Keyboard shortcuts

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