Documentation
¶
Index ¶
- func LoadSchema(db *dbtypes.DB) error
- func PlanQuery(db *dbtypes.DB, query string) (string, error)
- type PostgresColumn
- func (c PostgresColumn) GetColumnDefault() *string
- func (c PostgresColumn) GetColumnKey() string
- func (c PostgresColumn) GetColumnType() string
- func (c PostgresColumn) GetDataType() string
- func (c PostgresColumn) GetExtra() string
- func (c PostgresColumn) GetIsNullable() bool
- func (c PostgresColumn) GetName() string
- type PostgresTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSchema ¶
Types ¶
type PostgresColumn ¶
type PostgresColumn struct {
ColumnName string
DataType string
ColumnType string
IsNullable bool
ColumnKey string
ColumnDefault *string
Extra string
}
func (PostgresColumn) GetColumnDefault ¶
func (c PostgresColumn) GetColumnDefault() *string
func (PostgresColumn) GetColumnKey ¶
func (c PostgresColumn) GetColumnKey() string
func (PostgresColumn) GetColumnType ¶
func (c PostgresColumn) GetColumnType() string
func (PostgresColumn) GetDataType ¶
func (c PostgresColumn) GetDataType() string
func (PostgresColumn) GetExtra ¶
func (c PostgresColumn) GetExtra() string
func (PostgresColumn) GetIsNullable ¶
func (c PostgresColumn) GetIsNullable() bool
func (PostgresColumn) GetName ¶
func (c PostgresColumn) GetName() string
type PostgresTable ¶
type PostgresTable struct {
TableName string
Columns []PostgresColumn
PrimaryKeys []string
EstimatedRowCount int64
}
func (PostgresTable) GetColumns ¶
func (t PostgresTable) GetColumns() []dbtypes.Column
func (PostgresTable) GetEstimatedRowCount ¶
func (t PostgresTable) GetEstimatedRowCount() int64
func (PostgresTable) GetName ¶
func (t PostgresTable) GetName() string
func (PostgresTable) GetPrimaryKeys ¶
func (t PostgresTable) GetPrimaryKeys() []string
Click to show internal directories.
Click to hide internal directories.