 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func CheckNil(v interface{}) bool
- func FromDBMap(v DBMappable, m map[string]interface{})
- func FromMap[PT MapConverterPtr[T], T any](m map[string]any) PT
- func GetMapGen[PT MapConverterPtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) PT
- func GetMappable[PT DBMappablePtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) PT
- func MakeGenMap[T HasSimpleKey](arr []T) map[string]T
- func MakeGenMapInt64[T HasSimpleInt64Key](arr []T) map[int64]T
- func QuickJson(v interface{}) string
- func QuickJsonArr(v interface{}) string
- func QuickJsonArrBytes(v interface{}) []byte
- func QuickJsonBytes(v interface{}) []byte
- func QuickNullableJson(v interface{}) string
- func QuickScanJson(ptr interface{}, val interface{}) error
- func QuickSetBool(bval *bool, m map[string]interface{}, name string)
- func QuickSetBytes(bval *[]byte, m map[string]interface{}, name string)
- func QuickSetInt(ival *int, m map[string]interface{}, name string)
- func QuickSetInt64(ival *int64, m map[string]interface{}, name string)
- func QuickSetJson(ptr interface{}, m map[string]interface{}, name string)
- func QuickSetJsonArr(ptr interface{}, m map[string]interface{}, name string)
- func QuickSetNullableInt64(ival **int64, m map[string]any, name string)
- func QuickSetNullableJson(ptr interface{}, m map[string]interface{}, name string)
- func QuickSetStr(strVal *string, m map[string]interface{}, name string)
- func QuickValueJson(v interface{}) (driver.Value, error)
- func SelectMappable[PT DBMappablePtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) []PT
- func SelectMapsGen[PT MapConverterPtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) []PT
- func SelectSimpleMap[T any](tx *txwrap.TxWrap, query string, args ...interface{}) map[string]T
- func ToDBMap(v DBMappable, useBytes bool) map[string]interface{}
- type DBMappable
- type DBMappablePtr
- type HasSimpleInt64Key
- type HasSimpleKey
- type MapConverter
- type MapConverterPtr
- type MapEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromDBMap ¶
func FromDBMap(v DBMappable, m map[string]interface{})
func GetMapGen ¶
func GetMapGen[PT MapConverterPtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) PT
func GetMappable ¶
func GetMappable[PT DBMappablePtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) PT
func MakeGenMap ¶
func MakeGenMap[T HasSimpleKey](arr []T) map[string]T
func MakeGenMapInt64 ¶
func MakeGenMapInt64[T HasSimpleInt64Key](arr []T) map[int64]T
func QuickJsonArr ¶
func QuickJsonArr(v interface{}) string
    func QuickJsonArrBytes ¶
func QuickJsonArrBytes(v interface{}) []byte
    func QuickJsonBytes ¶
func QuickJsonBytes(v interface{}) []byte
    func QuickNullableJson ¶
func QuickNullableJson(v interface{}) string
    func QuickScanJson ¶
func QuickScanJson(ptr interface{}, val interface{}) error
    func QuickSetBool ¶
func QuickSetBytes ¶
func QuickSetInt ¶
func QuickSetInt64 ¶
func QuickSetJson ¶
func QuickSetJsonArr ¶
func QuickSetNullableInt64 ¶
func QuickSetNullableJson ¶
func QuickSetStr ¶
func QuickValueJson ¶
func SelectMappable ¶
func SelectMappable[PT DBMappablePtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) []PT
func SelectMapsGen ¶
func SelectMapsGen[PT MapConverterPtr[T], T any](tx *txwrap.TxWrap, query string, args ...interface{}) []PT
func SelectSimpleMap ¶
func ToDBMap ¶
func ToDBMap(v DBMappable, useBytes bool) map[string]interface{}
Types ¶
type DBMappable ¶
type DBMappable interface {
	UseDBMap()
}
    type DBMappablePtr ¶
type DBMappablePtr[T any] interface { DBMappable *T }
type HasSimpleInt64Key ¶
type HasSimpleInt64Key interface {
	GetSimpleKey() int64
}
    type HasSimpleKey ¶
type HasSimpleKey interface {
	GetSimpleKey() string
}
    type MapConverter ¶
type MapConverterPtr ¶
type MapConverterPtr[T any] interface { MapConverter *T }
 Click to show internal directories. 
   Click to hide internal directories.