Skip to content

support for constants #94

Open
Open

Description

@cyberhuman

It would be nice if something like this would be supported:

set foo = 1;
set bar = 2;
set baz = 3;

create table test ( f integer not null );

insert into test ( f ) values ( foo ), ( bar ), ( baz );

Syntax to be discussed.

Activity

  1. ygrek commented on May 22, 2020

    @ygrek
    Owner

    set is sql keyword. I understand you want these constants to be replaced by sqlgg at compile-time?

  2. cyberhuman commented on May 22, 2020

    @cyberhuman
    ContributorAuthor

    set is sql keyword.

    Yes I understand this. The above was just an example.
    It could be const foo = <value> or even an annotation -- @@const foo = <value> etc.

    I understand you want these constants to be replaced by sqlgg at compile-time?

    Yes, that's the idea.
    What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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