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 "[email protected]"})
(account/where "email != ?" "[email protected]")

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