xorm

package module
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 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.

README

db

盘古数据库插件,主要支持如下功能

  • 方便的配置
  • 同步器
  • 事务
  • 通用操作

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatedAt added in v0.2.3

type CreatedAt struct {
	Identity `xorm:"extends"`

	// 创建时间
	Created time.Time `` // nolint:lll
	/* 139-byte string literal not displayed */
}

CreatedAt 创建时间

type DeletedAt added in v0.2.9

type DeletedAt struct {
	Model `xorm:"extends"`

	Deleted *time.Time `xorm:"deleted comment('最后删除时间,用于实现软删除功能')" json:"deleted,omitempty"`
}

DeletedAt 用于实现软删除

type Engine

type Engine = core.Engine

Engine 数据引擎

type Entity added in v0.2.5

type Entity = Model

Entity 避免和项目中原有的命名起冲突

type Identity added in v0.1.5

type Identity struct {
	Id uint64 `xorm:"pk BIGINT notnull default(0) comment('编号,用来唯一标识数据')" json:"id,string,omitempty"`
}

func (*Identity) BeforeInsert added in v0.2.3

func (i *Identity) BeforeInsert()

type Model added in v0.2.4

type Model struct {
	Identity `xorm:"extends"`

	// 创建时间
	Created time.Time `` // nolint:lll
	/* 139-byte string literal not displayed */
	// 最后更新时间
	Updated time.Time `` // nolint:lll
	/* 151-byte string literal not displayed */
}

type Selector added in v0.2.6

type Selector = core.Selector

Selector 选择器

type Session

type Session = core.Session

Session 会话

type Tx added in v0.0.5

type Tx = core.Tx

Tx 事务

type UpdatedAt added in v0.2.3

type UpdatedAt struct {
	Identity `xorm:"extends"`

	// 最后更新时间
	Updated time.Time `` // nolint:lll
	/* 151-byte string literal not displayed */
}

UpdatedAt 更新时间

Jump to

Keyboard shortcuts

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