sql

package
v0.0.0-...-bf82383 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backend

func Backend(driver, source string) (homehub.Backend, error)

Backend returns a backend and nil error if successful

Types

type SQLBackend

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

SQLBackend wraps a database and functions as a homehub.Backend

func New

func New(driver, source string) (*SQLBackend, error)

New returns an intialized Brianiac or a non-nil error

func (*SQLBackend) Register

func (q *SQLBackend) Register(datam homehub.Datam) error

Register attempts to register the passed piece of data into the database - usually this means creating a table

func (*SQLBackend) Stop

func (q *SQLBackend) Stop()

Stop shuts down the database

func (*SQLBackend) Store

func (q *SQLBackend) Store(datam homehub.Datam) error

Store attempts to store the passed piece of data into the database

Jump to

Keyboard shortcuts

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