sqlstore

package
v0.0.0-...-947ae47 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: AGPL-3.0 Imports: 15 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 struct {
	// contains filtered or unexported fields
}

A Database provides a wrapper around an SQL database that can be used as the persistent storage for the various types of store required by the identity service.

func NewDatabase

func NewDatabase(driverName string, db *sql.DB) (*Database, error)

NewDatabase creates a new Database using the given driverName and *sql.DB. The driverName must match the value used to open the database.

func (*Database) Close

func (d *Database) Close() error

func (*Database) MeetingStore

func (d *Database) MeetingStore() meeting.Store

MeetingStore returns a new meeting.Stor implementation using this database for persistent storage.

func (*Database) ProviderDataStore

func (d *Database) ProviderDataStore() store.ProviderDataStore

ProviderDataStore returns a new store.ProviderDataStore implementation using this database for persistent storage.

func (*Database) Store

func (d *Database) Store() store.Store

Store returns a new store.Store implementation using this database for persistent storage.

Jump to

Keyboard shortcuts

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