queryexecute

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteQueries

func ExecuteQueries(ctx context.Context, queries []string, client *db.Client) int

func GetQueries

func GetQueries(args []string, workspace *workspace.Workspace) []string

GetQueries retrieves queries from args

For each arg check if it is a named query or a file, before falling back to treating it as sql

func GetQueryFromArg

func GetQueryFromArg(arg string, workspace *workspace.Workspace) (string, bool)

GetQueryFromArg attempts to resolve 'arg' to a query

the second return value indicates whether the arg was resolved as a named query/SQL file

func RunInteractiveSession

func RunInteractiveSession(initChan *chan *db.QueryInitData)

Types

This section is empty.

Jump to

Keyboard shortcuts

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