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 ¶
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)
Click to show internal directories.
Click to hide internal directories.