stackql / stackql/stackql-devel

[FEATURE] Show Server Variables in INSERT templates and SHOW METHODS

Open
#6 0 comments 0 reactions 1 assignee View on GitHub

@general-kroll-4-life is already working on this.

Since Mar 28, 2022.

enhancement v0.4
Dominant language
Go
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Feature Description
If a server variable is defined in the API spec, this variable should be shown in INSERT templates by default, for example, given the servers object in a Okta API spec...

servers:
- url: https://{subdomain}.okta.com/
  variables:
    subdomain:
      default: my-domain

Then SHOW INSERT INTO okta.identityprovider.idps should return...

INSERT INTO okta.identityprovider.idps(
  data__name,
  ...
  data__subdomain
)
SELECT
  '{{ .values.data__name }}',
   ...
  '{{ .values.data__subdomain }}';

A clear and concise description of what you want to happen.

Example(s)
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Possible Approaches or Libraries to Consider
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.