refactor: sqlexec组件重构优化、新增数据库相关系统参数配置、相关问题修复

This commit is contained in:
meilin.huang
2023-02-13 21:11:16 +08:00
parent 77aa724003
commit 70b586e45a
35 changed files with 2486 additions and 2120 deletions

View File

@@ -0,0 +1,27 @@
package utils
import "encoding/binary"
func Bytes2Int8(bytes []byte) int8 {
return int8(Byte2Uint16(bytes))
}
func Bytes2Int(bytes []byte) int {
return int(Byte2Uint64(bytes))
}
func Bytes2Int64(bytes []byte) int64 {
return int64(Byte2Uint64(bytes))
}
func Byte2Uint64(bytes []byte) uint64 {
return binary.LittleEndian.Uint64(bytes)
}
func Byte2Uint32(bytes []byte) uint32 {
return binary.LittleEndian.Uint32(bytes)
}
func Byte2Uint16(bytes []byte) uint16 {
return binary.LittleEndian.Uint16(bytes)
}