client

package
v0.6.15 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DRIVER   = "driver"
	MYSQL    = "mysql"
	DATABASE = "database"
	TABLE    = "table"
)
View Source
const (
	METHOD = "method"
	TARGET = "target"
)
View Source
const (
	SQL = "sql"

	SHOW   = "SHOW"
	CREATE = "CREATE"
	ALTER  = "ALTER"
	DROP   = "DROP"

	INSERT = "INSERT"
	DELETE = "DELETE"
	SELECT = "SELECT"
	UPDATE = "UPDATE"
)
View Source
const (
	WHERE = "where"
)

Variables

This section is empty.

Functions

func Open

func Open(m *ice.Message, driver, dsn string, cb func(*Driver))

Types

type Client

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

func (Client) Create

func (s Client) Create(m *ice.Message, arg ...string)

func (Client) Drop

func (s Client) Drop(m *ice.Message, arg ...string)

func (Client) Grant

func (s Client) Grant(m *ice.Message, arg ...string)

func (Client) Inputs

func (s Client) Inputs(m *ice.Message, arg ...string)

func (Client) List

func (s Client) List(m *ice.Message, arg ...string) *ice.Message

func (Client) Script

func (s Client) Script(m *ice.Message, arg ...string)

func (Client) Xterm

func (s Client) Xterm(m *ice.Message, arg ...string)

type Driver

type Driver struct {
	*_sql.DB
	// contains filtered or unexported fields
}

func (Driver) Exec

func (s Driver) Exec(m *ice.Message, stm string, arg ...ice.Any)

func (Driver) Query

func (s Driver) Query(m *ice.Message, stm string, arg ...ice.Any) *ice.Message

func (Driver) Total

func (s Driver) Total(m *ice.Message, where string, arg ...string) string

type Grant

type Grant struct {
	Client
	// contains filtered or unexported fields
}

func (Grant) Create

func (s Grant) Create(m *ice.Message, arg ...string)

func (Grant) Drop

func (s Grant) Drop(m *ice.Message, arg ...string)

func (Grant) Grant

func (s Grant) Grant(m *ice.Message, arg ...string)

func (Grant) Grants

func (s Grant) Grants(m *ice.Message, arg ...string)

func (Grant) Inputs

func (s Grant) Inputs(m *ice.Message, arg ...string)

func (Grant) List

func (s Grant) List(m *ice.Message, arg ...string)

func (Grant) Revoke

func (s Grant) Revoke(m *ice.Message, arg ...string)

func (Grant) Script

func (s Grant) Script(m *ice.Message, arg ...string)

func (Grant) Xterm

func (s Grant) Xterm(m *ice.Message, arg ...string)

type Query

type Query struct {
	Client
	// contains filtered or unexported fields
}

func (Query) Create

func (s Query) Create(m *ice.Message, arg ...string)

func (Query) Drop

func (s Query) Drop(m *ice.Message, arg ...string)

func (Query) Grant

func (s Query) Grant(m *ice.Message, arg ...string)

func (Query) Inputs

func (s Query) Inputs(m *ice.Message, arg ...string)

func (Query) List

func (s Query) List(m *ice.Message, arg ...string) *ice.Message

func (Query) Modify

func (s Query) Modify(m *ice.Message, arg ...string)

func (Query) Next

func (s Query) Next(m *ice.Message, arg ...string)

func (Query) Prev

func (s Query) Prev(m *ice.Message, arg ...string)

func (Query) Script

func (s Query) Script(m *ice.Message, arg ...string)

func (Query) Xterm

func (s Query) Xterm(m *ice.Message, arg ...string)

Jump to

Keyboard shortcuts

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