dbutil

package
v0.0.0-...-19f9f7c Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RowWriter

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

RowWriter is a writer that writes rows to an underlying writer.

func NewASCIITableWriter

func NewASCIITableWriter(w io.Writer) *RowWriter

NewASCIITableWriter creates a new RowWriter that writes ASCII table formatted rows.

func NewCSVWriter

func NewCSVWriter(w io.Writer) *RowWriter

NewCSVWriter creates a new RowWriter that writes CSV formatted rows.

func (*RowWriter) Flush

func (c *RowWriter) Flush()

Flush flushes the underlying writer.

func (*RowWriter) Rows

func (c *RowWriter) Rows(rows *sql.Rows) error

Rows writes the rows from the sql.Rows to the underlying writer. It is safe to call this method concurrently.

Jump to

Keyboard shortcuts

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