kine

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorIs

func ErrorIs(err error, code OraErrorCode) bool

func ExtractErrorCode

func ExtractErrorCode(err error) string

Types

type Kine

type Kine struct {
	ID             int64  `gorm:"primary_key;type:INTEGER not null"`
	Name           string `gorm:"type:VARCHAR2(630)"`
	Created        int64  `gorm:"type:INTEGER"`
	Deleted        int64  `gorm:"type:INTEGER"`
	CreateRevision int64  `gorm:"type:INTEGER"`
	PrevRevision   int64  `gorm:"type:INTEGER"`
	Lease          int64  `gorm:"type:INTEGER"`
	Value          []byte `gorm:"type:BLOB;create:false"`
	OldValue       []byte `gorm:"type:BLOB;create:false"`
}

func (*Kine) Setup

func (k *Kine) Setup(db *gorm.DB) error

func (Kine) TableName

func (Kine) TableName() string

type OraErrorCode

type OraErrorCode string
const (
	UniqueViolation         OraErrorCode = "ORA-00001"
	NameAlreadyInUse        OraErrorCode = "ORA-00955"
	TableOrViewDoesNotExist OraErrorCode = "ORA-00942"
)

Jump to

Keyboard shortcuts

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