errors.go 930 B

123456789101112131415161718192021
  1. package DB
  2. import "errors"
  3. var (
  4. ErrDBNotInitialized = errors.New("数据库未初始化,请先调用 Open()")
  5. ErrTableNotFound = errors.New("表不存在")
  6. ErrTableNameTooLong = errors.New("表名过长")
  7. ErrTableExists = errors.New("表已存在")
  8. ErrInvalidFieldCount = errors.New("字段数量非法")
  9. ErrFieldAllocateTooLarge = errors.New("字段分配空间过大")
  10. ErrIndexFieldCount = errors.New("index field count must 1-16")
  11. ErrIndexExists = errors.New("index exists")
  12. ErrFieldNotFound = errors.New("字段不存在")
  13. ErrFieldExists = errors.New("字段已存在")
  14. ErrFieldSpaceNotEnough = errors.New("字段扩展空间不足,且无法分配新页")
  15. ErrPageRead = errors.New("当前页不存在")
  16. ErrHeapPageTooLarge = errors.New("申请空间超过单页最大容量")
  17. ErrHeapAllocFailed = errors.New("堆页分配失败")
  18. )