sql

package
v0.0.0-...-a4f77ab Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "SQL"

Variables

This section is empty.

Functions

func DataCreateOf

func DataCreateOf(name string, fields, typs []string) string

func DataTypeOf

func DataTypeOf(dataValue reflect.Value, sf reflect.StructField) (sqlType string)

func GenQuery

func GenQuery(in interface{})

func GetIterFieldNames

func GetIterFieldNames(val reflect.Value) []string

func GetIterFieldValues

func GetIterFieldValues(val reflect.Value) ([]string, []string, []interface{})

func IsByteArrayOrSlice

func IsByteArrayOrSlice(value reflect.Value) bool

Types

type Store

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

Store ...

func NewStore

func NewStore() *Store

func (*Store) Keys

func (s *Store) Keys(...string) []string

func (*Store) Perfix

func (s *Store) Perfix() string

func (*Store) Read

func (s *Store) Read(id string, out interface{}) error

func (*Store) ReadAll

func (s *Store) ReadAll(out interface{}) error

func (*Store) Write

func (s *Store) Write(key string, in interface{}) error

Jump to

Keyboard shortcuts

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