kine

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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             uint   `gorm:"primary_key;type:NUMBER(10) not null"`
	Name           string `gorm:"type:VARCHAR2(630)"`
	Created        uint   `gorm:"type:NUMBER(10)"`
	Deleted        uint   `gorm:"type:NUMBER(10)"`
	CreateRevision uint   `gorm:"type:NUMBER(10)"`
	PrevRevision   uint   `gorm:"type:NUMBER(10)"`
	Lease          uint   `gorm:"type:NUMBER(10)"`
	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