Documentation
¶
Index ¶
- func ExecuteQueries(ctx context.Context, queries []string, client *db.Client) int
- func GetQueries(args []string, workspace *workspace.Workspace) []string
- func GetQueryFromArg(arg string, workspace *workspace.Workspace) (string, bool)
- func RunInteractiveSession(workspace *workspace.Workspace, client *db.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteQueries ¶
func GetQueries ¶
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 ¶
GetQueryFromArg attempts to resolve 'arg' to a query
the second return value indicates whether the arg was resolved as a named query/SQL file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.