-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update clojure/java.jdbc #38
Comments
New clojure/java.jdbc from (maybe) 0.7.0 support new style db-spec like this: (def postgresql-db {:dbtype "postgresql"
:host "localhost"
:user "clojure_test"
:password "clojure_test"
:dbname "clojure_test"}) Can |
Actually, you can try |
That's great. Thanks 👍 |
In the theory, the previous configuration can be used as-is, but backward compatibility may be broken.
with
|
If I use |
I use At this moment, If you want to use new db-spec style, you can checkout |
I use the
Seems the |
I add connection with: (ejc-create-connection
"PostgreSQL"
:classpath "~/.m2/repository/postgresql/postgresql/9.3-1102.jdbc41/postgresql-9.3-1102.jdbc41.jar"
:classname "org.postgresql.Driver"
:dbtype "postgresql"
:host "localhost"
:port "5432"
:user "postgres"
:password "324324")
Seems return nil. Don't know which request failed. I'm sure I have postgresql.service started correctly, and can connect normally. |
I found this why. (ejc-create-connection
"MySQL"
:classpath "~/.m2/repository/mysql/mysql-connector-java/5.1.32/mysql-connector-java-5.1.32.jar"
:classname "com.mysql.jdbc.Driver"
:dbtype "mysql"
:host "localhost"
:port "3306"
:user "root"
:password "324324"
+ :dbname "test"
) And need to make sure the database has at least one table. I think this can be put into README FAQ. |
@stardiviner Ok, new clojure/java.jdbc connection structure is in the |
No description provided.
The text was updated successfully, but these errors were encountered: