xorm

package module
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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 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