Skip to content

Convenience macros for short queries #3

@swlkr

Description

@swlkr

This could be a macro or maybe an object, not sure yet

(def account (db/table :account))

or

(deftable account)

which would then let you do stuff like this

(account/find 1)
(account/delete 1)
(account/update 1 {:name "new name"})
(account/create {:name "name"})
(account/where {:email "e@mail.com"})
(account/where "email != ?" "e@mail.com")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions