-
-
Save anonymous/fcb3dd33dc23aa7fbc61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns strems.models.user | |
(:use somnium.congomongo)) | |
(defn tally [] | |
(fetch-count :users)) | |
(defn find [username] | |
(fetch-one :users {:username username})) | |
(defn create [username & {:keys [email provider] :or {provider "local"}}] | |
insert! :users {:username username :email email :provider provider} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment