converters

package
v0.0.0-...-0795aef Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cast2Position

func Cast2Position(val interface{}) tracker.Position

Cast2Position converts numeric data type to Position

func Map2JSON

func Map2JSON(row InternalRow) ([]byte, error)

Map2JSON converts intermediate-data-type to JSON

Types

type InternalRow

type InternalRow = map[string]interface{}

InternalRow represents inner-data-type mediates *sqlx.Row and the data-format to be published

func SQL2ListMap

func SQL2ListMap(rows *sqlx.Rows) ([]InternalRow, error)

SQL2ListMap converts *sqlx.Rows to intermediate-data-type

Jump to

Keyboard shortcuts

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