sqlite

package
v0.0.0-...-841f565 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	DB *gorm.DB `gorm:"-"`
}

Store implements the Store interface

func (*Store) AddTarget

func (s *Store) AddTarget(target ark.RawTarget) (artifact ark.RawArtifact, err error)

AddTarget adds a new target to the database

func (*Store) ConnectTargets

func (s *Store) ConnectTargets(edge ark.GraphEdge) error

ConnectTargets creates edges between source and destination targets The data in this table is used to build a graph

func (*Store) GetGraph

func (s *Store) GetGraph() (*dag.AcyclicGraph, error)

GetGraph finds all targets and edges and builds a directed acyclic graph

func (Store) GetGraphEdges

func (s Store) GetGraphEdges() ([]ark.GraphEdge, error)

GetGraphEdges find all the edges to build a graph

func (*Store) GetTargetByKey

func (s *Store) GetTargetByKey(_ string) (ark.RawTarget, error)

GetTargetByKey not implemented FIXME: implement GetTargetByKey

func (*Store) GetTargets

func (s *Store) GetTargets() ([]ark.RawTarget, error)

GetTargets returns a list of targets

func (*Store) Migrate

func (s *Store) Migrate() error

Migrate ...

func (*Store) Open

func (s *Store) Open(connection string) error

Open opens the db file that was passed

Jump to

Keyboard shortcuts

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