store

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayToSql

func ArrayToSql[arrType any](arr []arrType) (sql string)

func GenParams

func GenParams(params map[string]any) (string, string, []any, error)

GenParams 返回占位符?,?,?,? 参数id名:aa,bbb,ccc 参数值列表

func GetTdType

func GetTdType(define schema.Define) string

func Scan

func Scan(rows *sql.Rows, Dest any) error

Types

type HubLogStore

type HubLogStore struct {
}

func (*HubLogStore) GetLogStableName

func (h *HubLogStore) GetLogStableName() string

func (*HubLogStore) GetLogTableName

func (h *HubLogStore) GetLogTableName(productID, deviceName string) string

type SDKLogStore

type SDKLogStore struct {
}

func (*SDKLogStore) GetSDKLogStableName

func (s *SDKLogStore) GetSDKLogStableName() string

func (*SDKLogStore) GetSDKLogTableName

func (s *SDKLogStore) GetSDKLogTableName(productID, deviceName string) string

type SchemaStore

type SchemaStore struct {
}

func (*SchemaStore) GetEventStableName

func (S *SchemaStore) GetEventStableName() string

func (*SchemaStore) GetEventTableName

func (S *SchemaStore) GetEventTableName(productID, deviceName string) string

func (*SchemaStore) GetPropertyStableName

func (S *SchemaStore) GetPropertyStableName(productID, identifier string) string

func (*SchemaStore) GetPropertyTableName

func (S *SchemaStore) GetPropertyTableName(productID, deviceName, identifier string) string

func (*SchemaStore) GetSpecsColumnWithArgFunc

func (S *SchemaStore) GetSpecsColumnWithArgFunc(s schema.Specs, argFunc string) string

func (*SchemaStore) GetSpecsCreateColumn

func (S *SchemaStore) GetSpecsCreateColumn(s schema.Specs) string

func (*SchemaStore) GetStableNameList

func (S *SchemaStore) GetStableNameList(
	t *schema.Model,
	productID string) (tables []string)

func (*SchemaStore) GetTableNameList

func (S *SchemaStore) GetTableNameList(
	t *schema.Model,
	productID string,
	deviceName string) (tables []string)

Jump to

Keyboard shortcuts

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