dbcontextsqlite

package
v0.0.0-...-854da8c Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstance

func GetInstance() dbcontext.DBContext

GetInstance get global DBContext

Types

type DBContextSQLite

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

DBContextSQLite - impementation DBContext

func New

func New() *DBContextSQLite

New create DBContextSQLite

func (*DBContextSQLite) Close

func (r *DBContextSQLite) Close() error

Close current conection

func (*DBContextSQLite) Connection

func (r *DBContextSQLite) Connection() *sql.DB

Connection returns current connection *sql.DB

func (*DBContextSQLite) IsCreated

func (r *DBContextSQLite) IsCreated() bool

IsCreated returns true if repository created in this sessions

Jump to

Keyboard shortcuts

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