component

package
v1.0.83 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToInsertStatement

func ConvertToInsertStatement(params Params) (string, string)

func IsPointer

func IsPointer(value interface{}) bool

Types

type Field

type Field struct {
	Name       string
	Caption    string
	DataType   *sql.ColumnType
	Value      Variant
	DataMask   string
	ValueTrue  string
	ValueFalse string
	Visible    bool
	Order      int
	Index      int
}

func (Field) AsBool

func (field Field) AsBool() bool

func (Field) AsDateTime

func (field Field) AsDateTime() time.Time

func (Field) AsFloat

func (field Field) AsFloat() float32

func (Field) AsFloat64

func (field Field) AsFloat64() float64

func (Field) AsInt

func (field Field) AsInt() int

func (Field) AsInt64

func (field Field) AsInt64() int64

func (Field) AsString

func (field Field) AsString() string

func (Field) AsValue

func (field Field) AsValue() interface{}

type Input

type Input int
const (
	IN    Input = 0
	OUT   Input = 1
	INOUT Input = 2
)

type Param

type Param struct {
	Value Variant
	Input Input
	Tipo  reflect.Type
}

func (Param) AsBool

func (p Param) AsBool() bool

func (Param) AsDateTime

func (p Param) AsDateTime() time.Time

func (Param) AsFloat

func (p Param) AsFloat() float32

func (Param) AsFloat64

func (p Param) AsFloat64() float64

func (Param) AsInt

func (p Param) AsInt() int

func (Param) AsInt64

func (p Param) AsInt64() int64

func (Param) AsString

func (p Param) AsString() string

func (Param) AsValue

func (p Param) AsValue() interface{}

func (Param) SetValue

func (p Param) SetValue(value any)

type Params

type Params map[string]Param

type Rows

type Rows []map[string]Field

type Strings

type Strings struct {
	// contains filtered or unexported fields
}

func NewStrings

func NewStrings() *Strings

func (*Strings) Add

func (s *Strings) Add(value string) *Strings

func (*Strings) Append

func (s *Strings) Append(value string) *Strings

func (*Strings) Clear

func (s *Strings) Clear() *Strings

func (*Strings) Count

func (s *Strings) Count() int

func (*Strings) Text

func (s *Strings) Text() string

type Value

type Value interface{ *Variant | Variant }

type Variant

type Variant struct {
	Value any
}

func (Variant) AsBool

func (v Variant) AsBool() bool

func (Variant) AsDateTime

func (v Variant) AsDateTime() time.Time

func (Variant) AsFloat

func (v Variant) AsFloat() float32

func (Variant) AsFloat64

func (v Variant) AsFloat64() float64

func (Variant) AsInt

func (v Variant) AsInt() int

func (Variant) AsInt16

func (v Variant) AsInt16() int16

func (Variant) AsInt32

func (v Variant) AsInt32() int32

func (Variant) AsInt64

func (v Variant) AsInt64() int64

func (Variant) AsInt8

func (v Variant) AsInt8() int8

func (Variant) AsString

func (v Variant) AsString() string

func (Variant) AsValue

func (v Variant) AsValue() any

Jump to

Keyboard shortcuts

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