database

package
v0.0.0-...-1c56b93 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	ID        int64
	LastTweet int64
	Content   string
	Position  int
	Complete  bool
}

type Status

type Status struct {
	AllEntries        int
	AllEntriesLength  int
	DoneEntries       int
	DoneEntiresLength int
	LastTweet         int64
	CurrentPosition   int
	CurrentLenght     int
	NextTweet         string
}

type StrahlemannDatabase

type StrahlemannDatabase struct {
	*sql.DB
}

func New

func New(target string) (*StrahlemannDatabase, error)

func (*StrahlemannDatabase) CreateSchema

func (db *StrahlemannDatabase) CreateSchema() error

func (*StrahlemannDatabase) GetNextPost

func (db *StrahlemannDatabase) GetNextPost() (*Post, error)

func (*StrahlemannDatabase) GetStatus

func (db *StrahlemannDatabase) GetStatus() (*Status, error)

func (*StrahlemannDatabase) InsertPost

func (db *StrahlemannDatabase) InsertPost(post *Post) error

func (*StrahlemannDatabase) UpdatePost

func (db *StrahlemannDatabase) UpdatePost(post *Post) error

Jump to

Keyboard shortcuts

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