driver

package
v0.0.0-...-41f8e05 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer()

Types

type ConnectionInfo

type ConnectionInfo struct {
	ConnectionID string `json:"connectionId"`
	StatementID  string `json:"statementd"`
}

type ExecResult

type ExecResult struct {
	LastInsertedId       int64 `json: "lastInsertId"`
	LastInsertedIdError  error `json: "lastInsertIdError"`
	NumRowsAffected      int64 `json: "rowsAffected"`
	NumRowsAffectedError error `json: "rowsAffectedError"`
}

func (ExecResult) LastInsertId

func (r ExecResult) LastInsertId() (int64, error)

func (ExecResult) RowsAffected

func (r ExecResult) RowsAffected() (int64, error)

type GoSqlConn

type GoSqlConn struct {
	Data data.GoSqlConnData
}

func (*GoSqlConn) Begin

func (c *GoSqlConn) Begin() (driver.Tx, error)

func (*GoSqlConn) Close

func (c *GoSqlConn) Close() error

func (*GoSqlConn) Prepare

func (c *GoSqlConn) Prepare(query string) (driver.Stmt, error)

type GoSqlDriver

type GoSqlDriver struct {
	DefaultIsolationLevel data.TransactionIsolationLevel
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver() *GoSqlDriver

func (*GoSqlDriver) Open

func (d *GoSqlDriver) Open(s string) (driver.Conn, error)

type GoSqlRestConn

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

func (*GoSqlRestConn) Begin

func (c *GoSqlRestConn) Begin() (driver.Tx, error)

func (*GoSqlRestConn) Close

func (c *GoSqlRestConn) Close() error

func (*GoSqlRestConn) Prepare

func (c *GoSqlRestConn) Prepare(sql string) (driver.Stmt, error)

type GoSqlRestDriver

type GoSqlRestDriver struct {
}

func (*GoSqlRestDriver) Open

func (d *GoSqlRestDriver) Open(s string) (driver.Conn, error)

type GoSqlRestRows

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

func (*GoSqlRestRows) Close

func (r *GoSqlRestRows) Close() error

func (*GoSqlRestRows) Columns

func (r *GoSqlRestRows) Columns() []string

func (*GoSqlRestRows) Next

func (r *GoSqlRestRows) Next(data []driver.Value) error

type GoSqlRestStmt

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

func (*GoSqlRestStmt) Close

func (c *GoSqlRestStmt) Close() error

func (*GoSqlRestStmt) Exec

func (c *GoSqlRestStmt) Exec(args []driver.Value) (driver.Result, error)

func (*GoSqlRestStmt) NumInput

func (c *GoSqlRestStmt) NumInput() int

func (*GoSqlRestStmt) Query

func (c *GoSqlRestStmt) Query(args []driver.Value) (driver.Rows, error)

type RowsResult

type RowsResult struct {
	Names  []string         `json: "names"`
	Types  []int            `json: "types"`
	Values [][]driver.Value `json: "values"`
}

type Server

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

func NewServer

func NewServer() *Server

type ServerStmt

type ServerStmt struct {
	ConnID string
	StmtId string
	Sql    string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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