core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnsupportedValueType 不支持的参数类型
	ErrUnsupportedValueType = errors.New("unsupported value type")

	// ErrMissingRangeValue 排序值丢失
	ErrMissingRangeValue = errors.New("missing range value")

	// ErrDuplicateKey 主键重复
	ErrDuplicateKey = errors.New("duplicate key")

	// ErrUnsupportedExprType 不支持的筛选字符串类型
	ErrUnsupportedExprType = errors.New("unsupported expr type")

	// ErrNotFound 未查询到指定对象
	ErrNotFound = errors.New("no item found")

	// ErrExpiredValue 当前对象非最新
	ErrExpiredValue = errors.New("item has updated, or you cannot change hash or range key")
)

Functions

This section is empty.

Types

type Model

type Model struct {
	Version uint64 `dynamo:",version"`
}

Model 数据标准模型,使用 Version 做版本管理 + 乐观锁

Jump to

Keyboard shortcuts

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