database

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTables added in v0.3.1

func InitTables(db *sql.DB) error

InitTables creates the tables

Types

type SQLiteConfig

type SQLiteConfig struct {
	File string
}

SQLiteConfig represents sqlite configuration type

func (SQLiteConfig) Open

func (d SQLiteConfig) Open() (*sql.DB, error)

Open receives handle for sqlite database, returns an error if connection failed

Jump to

Keyboard shortcuts

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