Skip to content

How to plug into yesql? #1

@jjfine

Description

@jjfine

In this yesql issue, you mention that squirrel easily plugs into yesql, but I can't figure out an easy way to do it. All I'm coming up with is something like this:

(defquery "get-all-things-query.sql" {:connection my-connection})
(defn get-all-things []
  (map to-clj (get-all-things-query)))

...which would have to be done for every query. Seems like too much repetition. Any pointers?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions