sqlclient

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTable

func FormatTable(columnNames []string, rows [][]string) string

func ReadQueryFromPrompt

func ReadQueryFromPrompt(rl *readline.Instance) string

Reads a query from the prompt. Blocks until a semicolon. If query is exit or q, this function exits, returning the current line The upstream caller must check for these strings and exit the program.

func ReadResult

func ReadResult(conn net.Conn) (*sqlserver.SqlResult, error)

Read server reply from the connection into SqlResult

func SendQuery

func SendQuery(conn net.Conn, query string) error

Write query string into the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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