execute

package
v0.5.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MPL-2.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(workspace *workspace.Workspace, client *db.Client)

Types

This section is empty.

Jump to

Keyboard shortcuts

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