sqlite

package
v0.0.0-...-bbefdb9 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CREATE_TABLE_SQL = `` /* 171-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(db *sql.DB, sql string)

Types

type KeyNodeTable

type KeyNodeTable struct {
	SQLiteDB *sql.DB `json:",omitempty"`
	Id       int     `json:",omitempty"`
	PodKey   string  `json:",omitempty"`
	NodeName string  `json:",omitempty"`
	Count    int     `json:",omitempty"`
}
var KeyNodeCilent KeyNodeTable

func (*KeyNodeTable) KeyNodeInsert

func (kn *KeyNodeTable) KeyNodeInsert(key, nodeName string, count int) (id int, err error)

func (*KeyNodeTable) KeyNodeSearch

func (kn *KeyNodeTable) KeyNodeSearch(podKey string, nodeName string) ([]KeyNodeTable, error)

func (*KeyNodeTable) KeyNodeUpdate

func (kn *KeyNodeTable) KeyNodeUpdate(id int, count int) (int64, error)

Jump to

Keyboard shortcuts

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