Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does this pkg support unquote-splicing? #18

Open
yanyingwang opened this issue Jun 10, 2019 · 1 comment
Open

does this pkg support unquote-splicing? #18

yanyingwang opened this issue Jun 10, 2019 · 1 comment

Comments

@yanyingwang
Copy link

let's say I want to write code like this:

(define id-range '(1 10))

(select  id sd_id created_at updated_at 
            #:from users
            #:where (between-and id ,@id-range))

or like this:

(define columns '(id sd_id created_at updated_at))

(select ,@columns 
            #:from users
            #:where (= id 1))
@rmculpepper
Copy link
Owner

No, it doesn't, sorry. For the second example, you could use ScalarExpr:INJECT and turn the fields into a string (comma-separated) yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants