utils

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRowidsFromRange added in v0.2.1

func GetRowidsFromRange(sliceStartEndRange []string, startRangeInt, endRangeInt, billion int, table string) (string, string)

GetRowidsFromRange gets rowids corresponding to offsets

func GetSessionIndicator

func GetSessionIndicator(db *sql.DB, session string) (string, error)

GetSessionIndicator gets indicator

func GetSliceStartEndRange added in v0.2.1

func GetSliceStartEndRange(startEndRange string, billion int) ([]string, error)

func GetStartAndEndRangeInt added in v0.2.1

func GetStartAndEndRangeInt(sliceStartEndRange []string) (int, int, error)

func GetWhereFromRange added in v0.2.1

func GetWhereFromRange(sliceStartEndRange []string, startRangeInt, endRangeInt, billion int, table string) string

GetWhereFromRange contains universal implemenation. (however for now it is only used by remove, fetch uses its own)

func OpenDb

func OpenDb() (*sql.DB, error)

OpenDb opens nhi database

func RunLess added in v0.2.1

func RunLess(fp string) error

RunLess open file of given path in less with suitable flags

func SetupMemoryFile added in v0.2.1

func SetupMemoryFile(content string, contentLen int) (string, error)

SetupMemoryFile setups temporary RAM file which exists within program lifetime

Types

This section is empty.

Jump to

Keyboard shortcuts

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