database

package
v0.0.0-...-e569bb0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *sql.DB

GetDB return the shared *sql.DB variable

func GetParentCount

func GetParentCount(Parent string) (int, error)

GetParentCount sends a DB query to obtain a count of all the links under a given URL

func Initialize

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

Initialize attempts to establish a connection the Postgres DB

func InsertLink(Parent string, Link string) error

InsertLink sends a DB query to insert a child link for a given URL

func RemoveLink(Link string) error

RemoveLink sends a DB query to delete a given link row for a given URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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