database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(path string) (*sql.DB, error)

OpenDB opens the database from 'path' and creates initial tables

func SaveWork

func SaveWork(db *sql.DB, work fetcher.Work, filepath string) error

SaveWork saves fetcher.Work data into DB, creates Circle, Tags and Voice Actors if not present on DB and updates Filepath value if Work exists on DB

Types

type WorkDB

type WorkDB struct {
	// contains filtered or unexported fields
}

A WorkDB contains information about a DLSite work on the DB

Jump to

Keyboard shortcuts

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