ancestry

package
v3.0.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAncestry

func FindAncestry(tx *sql.Tx, name string) (database.Ancestry, bool, error)

func FindAncestryDetectors

func FindAncestryDetectors(tx *sql.Tx, id int64) ([]database.Detector, error)

func FindAncestryFeatures

func FindAncestryFeatures(tx *sql.Tx, ancestryID int64, detectors detector.DetectorMap) (map[int64][]database.AncestryFeature, error)

func FindAncestryID

func FindAncestryID(tx *sql.Tx, name string) (int64, bool, error)

func FindAncestryLayerHashes

func FindAncestryLayerHashes(tx *sql.Tx, ancestryID int64) (map[int64]string, error)

func FindAncestryLayers

func FindAncestryLayers(tx *sql.Tx, id int64) ([]database.AncestryLayer, error)

func InsertAncestry

func InsertAncestry(tx *sql.Tx, name string) (int64, error)

func InsertAncestryDetectors

func InsertAncestryDetectors(tx *sql.Tx, ancestryID int64, detectorIDs []int64) error

func InsertAncestryFeatures

func InsertAncestryFeatures(tx *sql.Tx, ancestryLayerID int64, layer database.AncestryLayer) error

func InsertAncestryLayers

func InsertAncestryLayers(tx *sql.Tx, ancestryID int64, layers []int64) ([]int64, error)

insertAncestryLayers inserts the ancestry layers along with its content into the database. The layers are 0 based indexed in the original order.

func RemoveAncestry

func RemoveAncestry(tx *sql.Tx, name string) error

func UpsertAncestry

func UpsertAncestry(tx *sql.Tx, ancestry database.Ancestry) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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