types

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

* @Description: * @Author: 安知鱼 * @Date: 2025-06-26 11:59:31 * @LastEditTime: 2025-07-13 13:05:13 * @LastEditors: 安知鱼

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullUint64

type NullUint64 struct {
	Uint64 uint64
	Valid  bool // Valid 为 true 表示 Uint64 字段是非 NULL 的
}

NullUint64 用于处理可为空的 uint64 类型。 它实现了 database/sql.Scanner 和 database/sql/driver.Valuer 接口, 以便在 数据库操作中正确处理 NULL 值。

func (*NullUint64) Scan

func (nu *NullUint64) Scan(value interface{}) error

Scan 实现了 sql.Scanner 接口,用于从数据库读取数据到 NullUint64。

func (NullUint64) Value

func (nu NullUint64) Value() (driver.Value, error)

Value 实现了 driver.Valuer 接口,用于将 NullUint64 写入数据库。

Jump to

Keyboard shortcuts

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