db

package
v0.0.0-...-9c991f5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const USER_VERSION = 1

Variables

View Source
var TXOPTIONS = sql.TxOptions{Isolation: 0, ReadOnly: false}

Functions

This section is empty.

Types

type Database

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

func OpenDatabase

func OpenDatabase(path string) (Database, error)

func (*Database) Begin

func (db *Database) Begin(ctx context.Context) (err error)

func (*Database) Close

func (db *Database) Close() error

func (*Database) Commit

func (db *Database) Commit() error

func (*Database) EndSegment

func (db *Database) EndSegment(ctx context.Context, date time.Time) (err error)

func (*Database) Insert

func (db *Database) Insert(ctx context.Context, date time.Time, class string, title string) error

Jump to

Keyboard shortcuts

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