Skip to content

two argument @funsql for query execution #96

@clarkevans

Description

@clarkevans

The current @funsql builds a query object or defines a custom combinator. However, often you want to execute the query against a connection immediately. This would have a 2 argument version of funsql macro where the database is the 1st argument.

Here is an example of a single-argument version used to define a custom combinator.

@funsql count_records() = group().select(count())

The proposed two argument version would have the database as 1st argument.

@funsql eicu_db begin
    from(patient)
    count_records()
end

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions