dump

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option int

Option represents different types of dump.

const (
	OptionDefault Option = iota
	OptionSchema
	OptionTables
)

Dump response options.

func (Option) String

func (d Option) String() string

type SQLBatch

type SQLBatch struct {
	Results []SQLResult
}

SQLBatch represents a batch result.

type SQLDump

type SQLDump struct {
	Text string `json:"text" yaml:"text"`
}

type SQLQuery

type SQLQuery struct {
	Query string `json:"query" yaml:"query"`
}

type SQLResult

type SQLResult struct {
	Type         string   `json:"type"          yaml:"type"`
	Columns      []string `json:"columns"       yaml:"columns"`
	Rows         [][]any  `json:"rows"          yaml:"rows"`
	RowsAffected int64    `json:"rows_affected" yaml:"rows_affected"`
}

SQLResult represents a query result.

Jump to

Keyboard shortcuts

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