db

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: GPL-2.0, GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCitation

func AddCitation(db *sql.DB, cit *citation.Citation)

adds a single article to the database

func CheckDatabase

func CheckDatabase() string

returns the path to the database and creates it, if not already there

func EditCitation

func EditCitation(db *sql.DB, id string, cit *citation.Citation)

edit a citation based on id

func EditInEditor

func EditInEditor(cit *citation.Citation, empty bool) citation.Citation

let the user edit an entry using the editor of choice

func GetCitation

func GetCitation(db *sql.DB, searchId string) citation.Citation

returns a citation based on id

func GetCitations

func GetCitations(db *sql.DB) []citation.Citation

returns all citations found in database

func RemoveCitation

func RemoveCitation(db *sql.DB, id string)

removes citation based on id (and any corresponding file)

Types

This section is empty.

Jump to

Keyboard shortcuts

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