query

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const COLUMNSQL = "" /* 139-byte string literal not displayed */
View Source
const TABLESQL = "SELECT tablename FROM pg_tables where schemaname = 'public' and tablename<>'pg_stat_statements'"

Variables

This section is empty.

Functions

func NewQueryCmd

func NewQueryCmd() *cobra.Command

Types

type SQLQueryClient added in v0.0.9

type SQLQueryClient struct {
	Storage storage.Storage

	Tables  []prompt.Suggest
	Columns []prompt.Suggest
	// contains filtered or unexported fields
}

SQLQueryClient TODO Optimize the experience of writing SQL statements

func NewQueryClient

func NewQueryClient(ctx context.Context, storageType storage_factory.StorageType, storage storage.Storage) (*SQLQueryClient, error)

func (*SQLQueryClient) Run added in v0.0.9

func (x *SQLQueryClient) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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