sqlserver

package
v0.0.0-...-d0ff83c Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleConnection

func HandleConnection(conn net.Conn, db *sql.DB)

func OpenDatabase

func OpenDatabase(name string) (*sql.DB, error)

func SendQueryResult

func SendQueryResult(conn net.Conn, data *SqlResult)

Serialize and send the result as raw bytes

Types

type SqlResult

type SqlResult struct {
	Columns []string
	Data    [][]string
	Error   string
}

func ExecQuery

func ExecQuery(db *sql.DB, conn net.Conn, query string) (*SqlResult, error)

Jump to

Keyboard shortcuts

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