Documentation
¶
Index ¶
Constants ¶
View Source
const SchemaVersion = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Envelope ¶
type Envelope struct {
OK bool `json:"ok" yaml:"ok"`
SchemaVersion int `json:"schema_version" yaml:"schema_version"`
Error *ErrorObject `json:"error,omitempty" yaml:"error,omitempty"`
Data any `json:"data,omitempty" yaml:"data,omitempty"`
}
type ErrorObject ¶
type ProfileListFormatter ¶ added in v0.0.5
type ProfileListFormatter interface {
ToProfileListData() (configPath string, profiles []profileListItem, ok bool)
}
ProfileListFormatter is the interface for data structures that support profile list output.
type SchemaColumn ¶ added in v0.0.8
type SchemaColumn struct {
Name string
Type string
Nullable bool
Default string
Comment string
PrimaryKey bool
}
SchemaColumn is a simplified structure for schema column output.
type SchemaFormatter ¶ added in v0.0.8
type SchemaFormatter interface {
ToSchemaData() (database string, tables []SchemaTable, ok bool)
}
SchemaFormatter is the interface for data structures that support schema output.
type SchemaTable ¶ added in v0.0.8
type SchemaTable struct {
Schema string
Name string
Comment string
Columns []SchemaColumn
}
SchemaTable is a simplified structure for schema table output.
type TableFormatter ¶ added in v0.0.5
TableFormatter is the interface for data structures that support table output.
Click to show internal directories.
Click to hide internal directories.