srm

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SRM

type SRM struct {
	Db *sql.DB
}

func (SRM) CreateTable

func (ss SRM) CreateTable(name string, columns []string) error

func (SRM) DropTable

func (ss SRM) DropTable(name string) error

func (SRM) GetDb added in v0.9.0

func (ss SRM) GetDb() *sql.DB

func (SRM) RawSelectAll added in v0.9.0

func (ss SRM) RawSelectAll(tablename string) (*sql.Rows, error)

type Srm

type Srm interface {
	CreateTable(string, []string) error
	DropTable(string) error
	RawSelectAll(string) (*sql.Rows, error)
	GetDb() *sql.DB
}

func Open

func Open() (Srm, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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