Last active
June 7, 2020 02:40
-
-
Save renatoalencar/466cad8de4c757938a548b535be83c8f 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
(defrecord Database [uri database connection]) | |
(defn create-database [uri] | |
(let [{:keys [db conn]} (mg/connect-via-uri uri)] | |
(map->Database {:uri uri | |
:database db | |
:connection conn}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment