db

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Condition

func Condition(src any) string

简单转化查询条件

Types

type JSON added in v0.1.6

type JSON[T any] struct {
	// contains filtered or unexported fields
}

json类型

func (JSON[T]) Get added in v0.1.7

func (j JSON[T]) Get() T

func (JSON[T]) GormDataType added in v0.1.6

func (JSON[T]) GormDataType() string

func (*JSON[T]) Scan added in v0.1.6

func (j *JSON[T]) Scan(value any) error

func (*JSON[T]) Set added in v0.1.7

func (j *JSON[T]) Set(data T)

func (JSON[T]) Value added in v0.1.6

func (j JSON[T]) Value() (value driver.Value, err error)

Jump to

Keyboard shortcuts

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