db

package
v0.0.0-...-7db8d2e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package db defines database models for Result data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapError

func WrapError(err error) error

WrapError converts database error codes into their corresponding gRPC status codes.

Types

type Record

type Record struct {
	Parent     string `gorm:"primaryKey;index:records_by_name,priority:1"`
	ResultID   string `gorm:"primaryKey"`
	ID         string `gorm:"primaryKey"`
	ResultName string `gorm:"index:records_by_name,priority:2"`
	Name       string `gorm:"index:records_by_name,priority:3"`
	Data       []byte
}

Record is the database model of a Record

type Result

type Result struct {
	Parent string `gorm:"primaryKey;index:results_by_name,priority:1"`
	ID     string `gorm:"primaryKey"`
	Name   string `gorm:"index:results_by_name,priority:2"`
}

Result is the database model of a Result.

Jump to

Keyboard shortcuts

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