dbtypes

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package dbtypes provides supported db types

Index

Constants

This section is empty.

Variables

View Source
var AvailableTypeNames = []Type{Integer, Real, Char, String, RealInv, Image}

Functions

func IsAvailableName

func IsAvailableName(val string) bool

func NewChar

func NewChar(v any) (rune, error)

func NewDataVal

func NewDataVal(dataType Type, val any) (any, error)

Parse and return pointer to parsed value

func NewImage

func NewImage(v any) (string, error)

func NewInteger

func NewInteger(v any) (int64, error)

func NewReal

func NewReal(v any) (float64, error)

func NewRealInv

func NewRealInv(val any) ([]float64, error)

func NewString

func NewString(v any) (string, error)

Types

type Type

type Type string
const (
	Integer Type = "integer"
	Real    Type = "real"
	Char    Type = "char"
	String  Type = "string"
	RealInv Type = "realInv"
	Image   Type = "image"
)

Jump to

Keyboard shortcuts

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