srm

package
v0.9.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

there is a global variable with db connection and srm instance

Functions

func Open

func Open() error

Types

type SRMI added in v0.9.6

type SRMI struct {
}

func (SRMI) CreateTable added in v0.9.6

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

func (SRMI) DropTable added in v0.9.6

func (ss SRMI) DropTable(name string) error

func (SRMI) RawSelectAll added in v0.9.6

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

type Srm

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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