Skip to content

Support for parameters #78

@lorefnon

Description

@lorefnon

It would be nice to be able to have cells with parameterized expressions that can be entered by user when running the query.

In db frontends like DBeaver etc. when a SQL parameter is detected in the expression being evaluated the app shows a dialog to prompt for values.

image

My primary use case is to use pgtyped sql files as notebooks, which can contain parameters:

/* @name FindBookById */
SELECT * FROM books WHERE id = :bookId;

This parameter syntax is nonstandard sql but tools often allow some customization around parameter detection that enables usage of such syntax.

image

These values are remembered and auto populated the next time the query is executed.

Would you consider this to be within the scope of this project ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions