db

package
v0.0.0-...-b41ccf1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDBResources

func CopyDBResources(input, output DB) error

CopyDBResources copies resources from input database to output database

func InitDBWithSchemas

func InitDBWithSchemas(dbType, dbConnection string, dropOnCreate, cascade bool) error

InitDBWithSchemas initializes database using schemas stored in Manager

Types

type DB

type DB interface {
	Connect(string, string) error
	Begin() (transaction.Transaction, error)
	RegisterTable(*schema.Schema, bool) error
	DropTable(*schema.Schema) error
}

DB is a common interface for handing db

func ConnectDB

func ConnectDB(dbType, conn string) (DB, error)

ConnectDB is builder function of DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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