field

package
v0.0.0-...-6596822 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatedAtAttr

type CreatedAtAttr struct {
	CreatedAt time.Time `torm:"created_at" json:"created_at"`
}

type DeletedAtAttr

type DeletedAtAttr struct {
	DeletedAt time.Time `torm:"deleted_at" json:"deleted_at"`
}

type IDAttr

type IDAttr struct {
	ID uint `torm:"primary_key" json:"id"`
}

type ModelStateAttr

type ModelStateAttr struct {
	State any `tormstate:"1"`
}

ModelStateAttr 模型状态挂载点:内嵌进 torm.Model 后,original/changes/exists 状态直接随模型实例存储(代替全局状态表对模型指针的强引用),长驻进程 不再需要手动 ForgetModel。State 的具体类型由 torm 包持有(any), 内嵌字段不参与数据库列解析(tormstate tag)。

func (*ModelStateAttr) SetTormState

func (m *ModelStateAttr) SetTormState(v any)

SetTormState 供 torm 包写入状态指针。

func (*ModelStateAttr) TormState

func (m *ModelStateAttr) TormState() any

TormState 供 torm 包反射定位的状态指针读取入口(字段级访问辅助)。

type UpdatedAtAttr

type UpdatedAtAttr struct {
	UpdatedAt time.Time `torm:"updated_at" json:"updated_at"`
}

Jump to

Keyboard shortcuts

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