db

package
v0.0.0-...-5c5f30a Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func GetConn

func GetConn() *DB

func NewDB

func NewDB() (*DB, error)

func (*DB) CreateTable

func (db *DB) CreateTable(tableName string) error

func (*DB) DeleteById

func (db *DB) DeleteById(id string, tableName string) error

func (*DB) DeleteTable

func (db *DB) DeleteTable(tableName string) error

func (*DB) GetRecordByDistrictId

func (db *DB) GetRecordByDistrictId(id string, tableName string) ([]map[string]interface{}, error)

func (*DB) GetRecordById

func (db *DB) GetRecordById(id string, tableName string) (map[string]interface{}, error)

func (*DB) PutRecord

func (db *DB) PutRecord(item model.Record, tableName string) error

Jump to

Keyboard shortcuts

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