value

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool added in v0.0.3

type Bool struct {
	True  bool
	False bool
}

type Column added in v0.0.2

type Column struct {
	Schema string
	DB     string
	Table  string
	Column string
}

type Table added in v0.0.2

type Table struct {
	TableID string
}

type Type

type Type int
const (
	UNKNOWN Type = iota
	NA
	INTEGER
	FLOAT
	DECIMAL
	STRING
	NULL
	COLUMN
	BOOL
)

func (Type) String

func (t Type) String() string

type Value

type Value struct {
	Type   Type
	Int    int64
	Float  float64
	String string
	Column Column
	Bool   Bool

	PartI  int64
	PartF  int64
	FDigit int
}

func Convert

func Convert(s string) (Value, error)

Jump to

Keyboard shortcuts

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