xsql

package
v0.0.0-...-770e577 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonColumn

type JsonColumn[T any] struct {
	Val   T
	Valid bool
}

JsonColumn 自定义数据库 json 字段类型。

如果 T 是指针且为 nil 则 Valid 必须为 false。

func (*JsonColumn[T]) Scan

func (j *JsonColumn[T]) Scan(src interface{}) error

func (JsonColumn[T]) Value

func (j JsonColumn[T]) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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