db

package
v0.0.0-...-35e449e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameArtifact = "Artifact"
View Source
const TableNameArtifactProperty = "ArtifactProperty"
View Source
const TableNameAssociation = "Association"
View Source
const TableNameAttribution = "Attribution"
View Source
const TableNameContext = "Context"
View Source
const TableNameContextProperty = "ContextProperty"
View Source
const TableNameEvent = "Event"
View Source
const TableNameEventPath = "EventPath"
View Source
const TableNameExecution = "Execution"
View Source
const TableNameExecutionProperty = "ExecutionProperty"
View Source
const TableNameMLMDEnv = "MLMDEnv"
View Source
const TableNameParentContext = "ParentContext"
View Source
const TableNameParentType = "ParentType"
View Source
const TableNameType = "Type"
View Source
const TableNameTypeProperty = "TypeProperty"

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ID                       int64   `gorm:"column:id;primaryKey;autoIncrement:true" json:"-"`
	TypeID                   int64   `gorm:"column:type_id;not null;uniqueIndex:UniqueArtifactTypeName,priority:1" json:"-"`
	URI                      *string `gorm:"column:uri;index:idx_artifact_uri,priority:1" json:"-"`
	State                    *int64  `gorm:"column:state" json:"-"`
	Name                     *string `gorm:"column:name;uniqueIndex:UniqueArtifactTypeName,priority:2" json:"-"`
	ExternalID               *string `gorm:"column:external_id;uniqueIndex:idx_artifact_external_id,priority:1" json:"-"`
	CreateTimeSinceEpoch     int64   `` /* 130-byte string literal not displayed */
	LastUpdateTimeSinceEpoch int64   `` /* 140-byte string literal not displayed */

	// relationships
	Properties   []ArtifactProperty
	ArtifactType Type          `gorm:"foreignKey:TypeID;references:ID"`
	Attributions []Attribution `gorm:"foreignKey:ArtifactID;references:ID"`
	Events       []Event
}

Artifact mapped from table <Artifact>

func (*Artifact) TableName

func (*Artifact) TableName() string

TableName Artifact's table name

type ArtifactProperty

type ArtifactProperty struct {
	ArtifactID       int64    `gorm:"column:artifact_id;primaryKey" json:"-"`
	Name             string   `` /* 173-byte string literal not displayed */
	IsCustomProperty bool     `` /* 187-byte string literal not displayed */
	IntValue         *int64   `gorm:"column:int_value;index:idx_artifact_property_int,priority:3" json:"-"`
	DoubleValue      *float64 `gorm:"column:double_value;index:idx_artifact_property_double,priority:3" json:"-"`
	StringValue      *string  `gorm:"column:string_value;index:idx_artifact_property_string,priority:3" json:"-"`
	ByteValue        *[]byte  `gorm:"column:byte_value" json:"-"`
	ProtoValue       *[]byte  `gorm:"column:proto_value" json:"-"`
	BoolValue        *bool    `gorm:"column:bool_value" json:"-"`
}

ArtifactProperty mapped from table <ArtifactProperty>

func (*ArtifactProperty) TableName

func (*ArtifactProperty) TableName() string

TableName ArtifactProperty's table name

type Association

type Association struct {
	ID          int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"-"`
	ContextID   int64 `gorm:"column:context_id;not null;uniqueIndex:UniqueAssociation,priority:1" json:"-"`
	ExecutionID int64 `gorm:"column:execution_id;not null;uniqueIndex:UniqueAssociation,priority:2" json:"-"`
	Context     Context
	Execution   Execution
}

Association mapped from table <Association>

func (*Association) TableName

func (*Association) TableName() string

TableName Association's table name

type Attribution

type Attribution struct {
	ID         int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"-"`
	ContextID  int64 `gorm:"column:context_id;not null;uniqueIndex:UniqueAttribution,priority:1" json:"-"`
	ArtifactID int64 `gorm:"column:artifact_id;not null;uniqueIndex:UniqueAttribution,priority:2" json:"-"`
	Context    Context
	Artifact   Artifact
}

Attribution mapped from table <Attribution>

func (*Attribution) TableName

func (*Attribution) TableName() string

TableName Attribution's table name

type Context

type Context struct {
	ID                       int64   `gorm:"column:id;primaryKey;autoIncrement:true" json:"-"`
	TypeID                   int64   `gorm:"column:type_id;not null;uniqueIndex:UniqueContextName,priority:1" json:"-"`
	Name                     string  `gorm:"column:name;not null;uniqueIndex:UniqueContextName,priority:2" json:"-"`
	ExternalID               *string `gorm:"column:external_id;uniqueIndex:idx_context_external_id,priority:1" json:"-"`
	CreateTimeSinceEpoch     int64   `` /* 129-byte string literal not displayed */
	LastUpdateTimeSinceEpoch int64   `` /* 139-byte string literal not displayed */

	// relationships
	Properties   []ContextProperty
	ContextType  Type          `gorm:"foreignKey:TypeID;references:ID"`
	Attributions []Attribution `gorm:"foreignKey:ContextID;references:ID"`
	Associations []Association `gorm:"foreignKey:ContextID;references:ID"`

	// self-reference for context graphs
	Parents  []ParentContext `gorm:"foreignKey:ContextID;references:ID"`
	Children []ParentContext `gorm:"foreignKey:ParentContextID;references:ID"`
}

Context mapped from table <Context>

func (*Context) TableName

func (*Context) TableName() string

TableName Context's table name

type ContextProperty

type ContextProperty struct {
	ContextID        int64    `gorm:"column:context_id;primaryKey" json:"-"`
	Name             string   `` /* 170-byte string literal not displayed */
	IsCustomProperty bool     `` /* 184-byte string literal not displayed */
	IntValue         *int64   `gorm:"column:int_value;index:idx_context_property_int,priority:3" json:"-"`
	DoubleValue      *float64 `gorm:"column:double_value;index:idx_context_property_double,priority:3" json:"-"`
	StringValue      *string  `gorm:"column:string_value;index:idx_context_property_string,priority:3" json:"-"`
	ByteValue        *[]byte  `gorm:"column:byte_value" json:"-"`
	ProtoValue       *[]byte  `gorm:"column:proto_value" json:"-"`
	BoolValue        *bool    `gorm:"column:bool_value" json:"-"`
}

ContextProperty mapped from table <ContextProperty>

func (*ContextProperty) TableName

func (*ContextProperty) TableName() string

TableName ContextProperty's table name

type Event

type Event struct {
	ID                     int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"-"`
	ArtifactID             int64  `gorm:"column:artifact_id;not null;uniqueIndex:UniqueEvent,priority:1" json:"-"`
	ExecutionID            int64  `gorm:"column:execution_id;not null;uniqueIndex:UniqueEvent,priority:2;index:idx_event_execution_id,priority:1" json:"-"`
	Type                   int64  `gorm:"column:type;not null;uniqueIndex:UniqueEvent,priority:3" json:"-"`
	MillisecondsSinceEpoch *int64 `gorm:"autoCreateTime:milli;column:milliseconds_since_epoch;not null" json:"-"`

	// relationships
	Artifact  Artifact
	Execution Execution
}

Event mapped from table <Event>

func (*Event) TableName

func (*Event) TableName() string

TableName Event's table name

type EventPath

type EventPath struct {
	EventID     int64   `gorm:"column:event_id;not null;index:idx_eventpath_event_id,priority:1" json:"-"`
	IsIndexStep bool    `gorm:"column:is_index_step;not null" json:"-"`
	StepIndex   *int64  `gorm:"column:step_index" json:"-"`
	StepKey     *string `gorm:"column:step_key" json:"-"`
}

EventPath mapped from table <EventPath>

func (*EventPath) TableName

func (*EventPath) TableName() string

TableName EventPath's table name

type Execution

type Execution struct {
	ID                       int64   `gorm:"column:id;primaryKey;autoIncrement:true" json:"-"`
	TypeID                   int64   `gorm:"column:type_id;not null;uniqueIndex:UniqueExecutionTypeName,priority:1" json:"-"`
	LastKnownState           *int64  `gorm:"column:last_known_state" json:"-"`
	Name                     *string `gorm:"column:name;uniqueIndex:UniqueExecutionTypeName,priority:2" json:"-"`
	ExternalID               *string `gorm:"column:external_id;uniqueIndex:idx_execution_external_id,priority:1" json:"-"`
	CreateTimeSinceEpoch     int64   `` /* 131-byte string literal not displayed */
	LastUpdateTimeSinceEpoch int64   `` /* 141-byte string literal not displayed */

	// relationships
	Properties    []ExecutionProperty
	ExecutionType Type          `gorm:"foreignKey:TypeID;references:ID"`
	Associations  []Association `gorm:"foreignKey:ExecutionID;references:ID"`
	Events        []Event
}

Execution mapped from table <Execution>

func (*Execution) TableName

func (*Execution) TableName() string

TableName Execution's table name

type ExecutionProperty

type ExecutionProperty struct {
	ExecutionID      int64    `gorm:"column:execution_id;primaryKey" json:"-"`
	Name             string   `` /* 176-byte string literal not displayed */
	IsCustomProperty bool     `` /* 190-byte string literal not displayed */
	IntValue         *int64   `gorm:"column:int_value;index:idx_execution_property_int,priority:3" json:"-"`
	DoubleValue      *float64 `gorm:"column:double_value;index:idx_execution_property_double,priority:3" json:"-"`
	StringValue      *string  `gorm:"column:string_value;index:idx_execution_property_string,priority:3" json:"-"`
	ByteValue        *[]byte  `gorm:"column:byte_value" json:"-"`
	ProtoValue       *[]byte  `gorm:"column:proto_value" json:"-"`
	BoolValue        *bool    `gorm:"column:bool_value" json:"-"`
}

ExecutionProperty mapped from table <ExecutionProperty>

func (*ExecutionProperty) TableName

func (*ExecutionProperty) TableName() string

TableName ExecutionProperty's table name

type MLMDEnv

type MLMDEnv struct {
	SchemaVersion int64 `gorm:"column:schema_version;primaryKey" json:"-"`
}

MLMDEnv mapped from table <MLMDEnv>

func (*MLMDEnv) TableName

func (*MLMDEnv) TableName() string

TableName MLMDEnv's table name

type ParentContext

type ParentContext struct {
	ContextID       int64 `gorm:"column:context_id;primaryKey" json:"-"`
	ParentContextID int64 `gorm:"column:parent_context_id;primaryKey;index:idx_parentcontext_parent_context_id,priority:1" json:"-"`
}

ParentContext mapped from table <ParentContext>

func (*ParentContext) TableName

func (*ParentContext) TableName() string

TableName ParentContext's table name

type ParentType

type ParentType struct {
	TypeID       int64 `gorm:"column:type_id;primaryKey" json:"-"`
	ParentTypeID int64 `gorm:"column:parent_type_id;primaryKey" json:"-"`
}

ParentType mapped from table <ParentType>

func (*ParentType) TableName

func (*ParentType) TableName() string

TableName ParentType's table name

type Type

type Type struct {
	ID          int64   `gorm:"column:id;primaryKey;autoIncrement:true" json:"-"`
	Name        string  `gorm:"column:name;not null;uniqueIndex:idx_type_name,priority:1" json:"-"`
	Version     *string `gorm:"column:version" json:"-"`
	TypeKind    int32   `gorm:"column:type_kind;not null" json:"-"`
	Description *string `gorm:"column:description" json:"-"`
	InputType   *string `gorm:"column:input_type" json:"-"`
	OutputType  *string `gorm:"column:output_type" json:"-"`
	ExternalID  *string `gorm:"column:external_id;uniqueIndex:idx_type_external_id,priority:1" json:"-"`

	// relationships
	Properties []TypeProperty
}

Type mapped from table <Type>

func (*Type) TableName

func (*Type) TableName() string

TableName Type's table name

type TypeProperty

type TypeProperty struct {
	TypeID   int64  `gorm:"column:type_id;primaryKey" json:"-"`
	Name     string `gorm:"column:name;primaryKey" json:"-"`
	DataType int32  `gorm:"column:data_type;not null" json:"-"`
}

TypeProperty mapped from table <TypeProperty>

func (*TypeProperty) TableName

func (*TypeProperty) TableName() string

TableName TypeProperty's table name

Jump to

Keyboard shortcuts

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