store

package
v0.0.0-...-2968aeb Latest Latest
Warning

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

Go to latest
Published: May 15, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	DBConn
	// start transaction, return transactional interface
	Begin() DBTransaction
}

DB wrapper

type DBConn

type DBConn interface {
	// return connection to gorm.DB
	Conn() *gorm.DB
}

connectable DB interface

type DBTransaction

type DBTransaction interface {
	// implements connectable (we need to acces and manipulate the
	// DBe)
	DBConn
	// and commit operation
	Commit()
}

DB transaction interface

type Opener

type Opener interface {
	// open DB access, return error or nil
	Open() error
	// close DB access
	Close()
}

DB opener interface

Jump to

Keyboard shortcuts

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