pathdb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB(db *sql.DB) error

CloseDB will close the database, only use when app closes.

func InitDB

func InitDB(filepath string) (*sql.DB, error)

InitDB controls the opening connection to the database.

func ReadIntfToSegAll

func ReadIntfToSegAll(db *sql.DB) (map[int64][]asIface, error)

ReadIntfToSegAll operates on the DB to return all IntfToSeg rows.

func ReadSegTypesAll

func ReadSegTypesAll(db *sql.DB) (map[int64]proto.PathSegType, error)

ReadSegTypesAll operates on the DB to return all SegType rows.

func ReadSegmentsAll

func ReadSegmentsAll(db *sql.DB, segTypes map[int64]proto.PathSegType) ([]segment, error)

ReadSegmentsAll operates on the DB to return all Segments rows.

Types

This section is empty.

Jump to

Keyboard shortcuts

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