database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Conn *sql.DB
}

func Connect

func Connect(database string) (db *Database, err error)

func (*Database) Close

func (db *Database) Close() (err error)

func (*Database) CreateTables

func (db *Database) CreateTables() (err error)

func (*Database) DeleteUrl

func (db *Database) DeleteUrl(url string) (err error)

func (*Database) FetchUrls

func (db *Database) FetchUrls() (urls []string, err error)

func (*Database) InsertConfig

func (db *Database) InsertConfig(identifier string, value string) (err error)

func (*Database) InsertUrl

func (db *Database) InsertUrl(url string) (err error)

Jump to

Keyboard shortcuts

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