package
Version:
v0.6.2
Opens a new window with list of versions in this module.
Published: May 18, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Option represents different types of dump.
const (
OptionDefault Option = iota
OptionSchema
OptionTables
)
Dump response options.
SQLBatch represents a batch result.
type SQLDump struct {
Text string `json:"text" yaml:"text"`
}
type SQLQuery struct {
Query string `json:"query" yaml:"query"`
}
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.