outputs

package
v0.0.0-...-d626351 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expanded

func Expanded(conn driver.Conn, out io.Writer) (*driver.Meta, error)

func Raw

func Raw(conn driver.Conn, out io.Writer) (*driver.Meta, error)

func SQL

func SQL(conn driver.Conn, out io.Writer) (*driver.Meta, error)

We want to stream data as it's received (one frame at a time), but our table renderer doesn't support streaming. Our problem is with column widths. The table renderer takes all the data and figures out the correct width. That won't work if the data comes in chunks. Thankfully, monetdb server returns the max length of each column in its header. With this information we can: 1 - Render each frame as a distinct table 2 - Only render the header on the first table 3 - Pad the first row of each frame to the max width to generate a consistent

layout across the table renders.

func Trash

func Trash(conn driver.Conn) (*driver.Meta, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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