utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const SPANER_KEY string = "spanner"
View Source
const SSORM_TAG_CREATE_TIME string = "create_time"
View Source
const SSORM_TAG_DELETE_TIME string = "delete_time"
View Source
const SSORM_TAG_IGNORE_WRITE string = "ignore_write"
View Source
const SSORM_TAG_KEY string = "ssorm_key"
View Source
const SSORM_TAG_NULLABLE_WRITE string = "nullable_write"
View Source
const SSORM_TAG_PRIMARY string = "primary"
View Source
const SSORM_TAG_UPDATE_TIME string = "update_time"

Variables

This section is empty.

Functions

func ArrayContains

func ArrayContains(arr []string, str string) bool

func GetArrayStr

func GetArrayStr(value interface{}, valType reflect.Type) string

func GetDeleteColumnName

func GetDeleteColumnName(model interface{}) string

func GetTableName

func GetTableName(model interface{}) string

func GetTimestampStr

func GetTimestampStr(value interface{}) string

func IsNullable

func IsNullable(value interface{}) bool

func IsTime

func IsTime(value interface{}) bool

func IsTypeString

func IsTypeString(valType reflect.Type) bool

func IsValid

func IsValid(value interface{}) bool

func ReflectValues

func ReflectValues(reflectValue reflect.Value, i int) (reflect.StructTag, string, interface{}, reflect.Type)

Types

This section is empty.

Jump to

Keyboard shortcuts

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