Created
January 27, 2018 13:16
-
-
Save linuxsoares/a8fa50fc8235a7d6ca85773046735b5c 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 todo.database | |
(:require [korma.db :as korma])) | |
(def db-connection-info | |
(korma/mysql | |
{:classname "com.mysql.jdbc.Driver" | |
:subprotocol "mysql" | |
:user "root" | |
:subname "//localhost:3306/todo"})) | |
; set up korma | |
(korma/defdb db db-connection-info) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment