db

package
v0.0.0-...-70a3e50 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 4 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 interface {
	RecentCommits() ([]*models.GitCommit, error)
}

Database defines the behavior for the application's database.

type SqliteDB

type SqliteDB struct {
	DB *sqlx.DB
}

SqliteDB is an sqlite-backed type that implements the Database interface.

func NewSqliteDB

func NewSqliteDB() *SqliteDB

NewSqliteDB creates a new *SqliteDB.

func (*SqliteDB) RecentCommits

func (s *SqliteDB) RecentCommits() ([]*models.GitCommit, error)

RecentCommits ...

Jump to

Keyboard shortcuts

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