rds

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRows

func ParseRows(rows *sql.Rows, schema interface{}) ([]interface{}, error)

ParseRows will parse the row

Types

type Store

type Store interface {
	lifecycle.StartStopper

	// Get DB instance
	GetDB() *sql.DB

	// Transact wrap the transaction
	Transact(txFunc func(*sql.Tx) error) error
}

Store is the interface of KV store.

func NewAwsRDS

func NewAwsRDS(cfg *config.RDS) Store

NewAwsRDS instantiates an aws RDS based RDS

Jump to

Keyboard shortcuts

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