schema

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 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 TableNameSchemaMigration = "schema_migrations"
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                       int32   `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	TypeID                   int32   `gorm:"column:type_id;not null" json:"type_id"`
	URI                      *string `gorm:"column:uri" json:"uri"`
	State                    *int32  `gorm:"column:state" json:"state"`
	Name                     *string `gorm:"column:name" json:"name"`
	ExternalID               *string `gorm:"column:external_id" json:"external_id"`
	CreateTimeSinceEpoch     int64   `gorm:"column:create_time_since_epoch;not null" json:"create_time_since_epoch"`
	LastUpdateTimeSinceEpoch int64   `gorm:"column:last_update_time_since_epoch;not null" json:"last_update_time_since_epoch"`
}

Artifact mapped from table <Artifact>

func (*Artifact) TableName

func (*Artifact) TableName() string

TableName Artifact's table name

type ArtifactProperty

type ArtifactProperty struct {
	ArtifactID       int32    `gorm:"column:artifact_id;primaryKey" json:"artifact_id"`
	Name             string   `gorm:"column:name;primaryKey" json:"name"`
	IsCustomProperty bool     `gorm:"column:is_custom_property;primaryKey" json:"is_custom_property"`
	IntValue         *int32   `gorm:"column:int_value" json:"int_value"`
	DoubleValue      *float64 `gorm:"column:double_value" json:"double_value"`
	StringValue      *string  `gorm:"column:string_value" json:"string_value"`
	ByteValue        *[]byte  `gorm:"column:byte_value" json:"byte_value"`
	ProtoValue       *[]byte  `gorm:"column:proto_value" json:"proto_value"`
	BoolValue        *bool    `gorm:"column:bool_value" json:"bool_value"`
}

ArtifactProperty mapped from table <ArtifactProperty>

func (*ArtifactProperty) TableName

func (*ArtifactProperty) TableName() string

TableName ArtifactProperty's table name

type Association

type Association struct {
	ID          int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	ContextID   int32 `gorm:"column:context_id;not null" json:"context_id"`
	ExecutionID int32 `gorm:"column:execution_id;not null" json:"execution_id"`
}

Association mapped from table <Association>

func (*Association) TableName

func (*Association) TableName() string

TableName Association's table name

type Attribution

type Attribution struct {
	ID         int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	ContextID  int32 `gorm:"column:context_id;not null" json:"context_id"`
	ArtifactID int32 `gorm:"column:artifact_id;not null" json:"artifact_id"`
}

Attribution mapped from table <Attribution>

func (*Attribution) TableName

func (*Attribution) TableName() string

TableName Attribution's table name

type Context

type Context struct {
	ID                       int32   `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	TypeID                   int32   `gorm:"column:type_id;not null" json:"type_id"`
	Name                     string  `gorm:"column:name;not null" json:"name"`
	ExternalID               *string `gorm:"column:external_id" json:"external_id"`
	CreateTimeSinceEpoch     int64   `gorm:"column:create_time_since_epoch;not null" json:"create_time_since_epoch"`
	LastUpdateTimeSinceEpoch int64   `gorm:"column:last_update_time_since_epoch;not null" json:"last_update_time_since_epoch"`
}

Context mapped from table <Context>

func (*Context) TableName

func (*Context) TableName() string

TableName Context's table name

type ContextProperty

type ContextProperty struct {
	ContextID        int32    `gorm:"column:context_id;primaryKey" json:"context_id"`
	Name             string   `gorm:"column:name;primaryKey" json:"name"`
	IsCustomProperty bool     `gorm:"column:is_custom_property;primaryKey" json:"is_custom_property"`
	IntValue         *int32   `gorm:"column:int_value" json:"int_value"`
	DoubleValue      *float64 `gorm:"column:double_value" json:"double_value"`
	StringValue      *string  `gorm:"column:string_value" json:"string_value"`
	ByteValue        *[]byte  `gorm:"column:byte_value" json:"byte_value"`
	ProtoValue       *[]byte  `gorm:"column:proto_value" json:"proto_value"`
	BoolValue        *bool    `gorm:"column:bool_value" json:"bool_value"`
}

ContextProperty mapped from table <ContextProperty>

func (*ContextProperty) TableName

func (*ContextProperty) TableName() string

TableName ContextProperty's table name

type Event

type Event struct {
	ID                     int32  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	ArtifactID             int32  `gorm:"column:artifact_id;not null" json:"artifact_id"`
	ExecutionID            int32  `gorm:"column:execution_id;not null" json:"execution_id"`
	Type                   int32  `gorm:"column:type;not null" json:"type"`
	MillisecondsSinceEpoch *int64 `gorm:"column:milliseconds_since_epoch" json:"milliseconds_since_epoch"`
}

Event mapped from table <Event>

func (*Event) TableName

func (*Event) TableName() string

TableName Event's table name

type EventPath

type EventPath struct {
	EventID     int32   `gorm:"column:event_id;not null" json:"event_id"`
	IsIndexStep bool    `gorm:"column:is_index_step;not null" json:"is_index_step"`
	StepIndex   *int32  `gorm:"column:step_index" json:"step_index"`
	StepKey     *string `gorm:"column:step_key" json:"step_key"`
}

EventPath mapped from table <EventPath>

func (*EventPath) TableName

func (*EventPath) TableName() string

TableName EventPath's table name

type Execution

type Execution struct {
	ID                       int32   `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	TypeID                   int32   `gorm:"column:type_id;not null" json:"type_id"`
	LastKnownState           *int32  `gorm:"column:last_known_state" json:"last_known_state"`
	Name                     *string `gorm:"column:name" json:"name"`
	ExternalID               *string `gorm:"column:external_id" json:"external_id"`
	CreateTimeSinceEpoch     int64   `gorm:"column:create_time_since_epoch;not null" json:"create_time_since_epoch"`
	LastUpdateTimeSinceEpoch int64   `gorm:"column:last_update_time_since_epoch;not null" json:"last_update_time_since_epoch"`
}

Execution mapped from table <Execution>

func (*Execution) TableName

func (*Execution) TableName() string

TableName Execution's table name

type ExecutionProperty

type ExecutionProperty struct {
	ExecutionID      int32    `gorm:"column:execution_id;primaryKey" json:"execution_id"`
	Name             string   `gorm:"column:name;primaryKey" json:"name"`
	IsCustomProperty bool     `gorm:"column:is_custom_property;primaryKey" json:"is_custom_property"`
	IntValue         *int32   `gorm:"column:int_value" json:"int_value"`
	DoubleValue      *float64 `gorm:"column:double_value" json:"double_value"`
	StringValue      *string  `gorm:"column:string_value" json:"string_value"`
	ByteValue        *[]byte  `gorm:"column:byte_value" json:"byte_value"`
	ProtoValue       *[]byte  `gorm:"column:proto_value" json:"proto_value"`
	BoolValue        *bool    `gorm:"column:bool_value" json:"bool_value"`
}

ExecutionProperty mapped from table <ExecutionProperty>

func (*ExecutionProperty) TableName

func (*ExecutionProperty) TableName() string

TableName ExecutionProperty's table name

type MLMDEnv

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

MLMDEnv mapped from table <MLMDEnv>

func (*MLMDEnv) TableName

func (*MLMDEnv) TableName() string

TableName MLMDEnv's table name

type ParentContext

type ParentContext struct {
	ContextID       int32 `gorm:"column:context_id;primaryKey" json:"context_id"`
	ParentContextID int32 `gorm:"column:parent_context_id;primaryKey" json:"parent_context_id"`
}

ParentContext mapped from table <ParentContext>

func (*ParentContext) TableName

func (*ParentContext) TableName() string

TableName ParentContext's table name

type ParentType

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

ParentType mapped from table <ParentType>

func (*ParentType) TableName

func (*ParentType) TableName() string

TableName ParentType's table name

type SchemaMigration

type SchemaMigration struct {
	Version int64 `gorm:"column:version;primaryKey" json:"version"`
	Dirty   bool  `gorm:"column:dirty;not null" json:"dirty"`
}

SchemaMigration mapped from table <schema_migrations>

func (*SchemaMigration) TableName

func (*SchemaMigration) TableName() string

TableName SchemaMigration's table name

type Type

type Type struct {
	ID          int32   `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name        string  `gorm:"column:name;not null" json:"name"`
	Version     *string `gorm:"column:version" json:"version"`
	TypeKind    int32   `gorm:"column:type_kind;not null" json:"type_kind"`
	Description *string `gorm:"column:description" json:"description"`
	InputType   *string `gorm:"column:input_type" json:"input_type"`
	OutputType  *string `gorm:"column:output_type" json:"output_type"`
	ExternalID  *string `gorm:"column:external_id" json:"external_id"`
}

Type mapped from table <Type>

func (*Type) TableName

func (*Type) TableName() string

TableName Type's table name

type TypeProperty

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

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