client

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 12 Imported by: 1

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 added in v0.5.11

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

Types

type Client added in v0.1.3

type Client struct {
	ice.Code
	ice.Hash
	// contains filtered or unexported fields
}

func (Client) Connect added in v0.4.8

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

func (Client) Create added in v0.3.7

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

func (Client) Disconn added in v0.5.11

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

func (Client) Drop added in v0.5.11

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

func (Client) Grant added in v0.5.11

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

func (Client) Inputs added in v0.1.3

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

func (Client) List added in v0.1.3

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

func (Client) Script added in v0.3.7

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

func (Client) Xterm added in v0.4.9

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

type Driver added in v0.5.11

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

func (Driver) Exec added in v0.5.11

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

func (Driver) Query added in v0.5.11

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

func (Driver) Total added in v0.5.11

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

type Grant added in v0.3.7

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

func (Grant) Drop added in v0.3.7

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

func (Grant) Grants added in v0.3.7

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

func (Grant) List added in v0.3.7

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

func (Grant) Revoke added in v0.3.7

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

type Query added in v0.1.3

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

func (Query) Inputs added in v0.3.9

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

func (Query) List added in v0.1.3

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

func (Query) Modify added in v0.1.3

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

func (Query) Next added in v0.1.3

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

func (Query) Prev added in v0.1.3

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

Jump to

Keyboard shortcuts

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