cassandra

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	DefaultKeyspace string
	Cluster         *gocql.ClusterConfig
	// contains filtered or unexported fields
}

Agent 客户端

func (*Agent) Batch

func (a *Agent) Batch(typ gocql.BatchType) *gocql.Batch

Batch 批量操作

func (*Agent) Close

func (a *Agent) Close()

Close 关闭连接

func (*Agent) Connect

func (a *Agent) Connect(keySpace string, servers ...string) (err error)

Connect 初始连接

func (*Agent) Query

func (a *Agent) Query(sql string, values ...interface{}) *gocql.Query

Query 查询

func (*Agent) Session

func (a *Agent) Session() *gocql.Session

Session 返回连接Session

func (*Agent) Tables

func (a *Agent) Tables() (tbls map[string][]string)

Tables 查询所有表格及其字段名

Jump to

Keyboard shortcuts

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