Skip to content

Commit

Permalink
omit :target key from Mckoi config and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarshantanu committed Jun 26, 2012
1 parent 0260c91 commit add5875
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Sections below describe which of the keys are applicable to various databases:
| HSQLDB | `:hsqldb` | `:memory` | `:database` | |
| | | `:filesys` | `:database` | |
| | | `:network` | `:host` `:database` | `:port` |
| Mckoi | `:mckoi` | `:filesys` | `:database` | |
| Mckoi | `:mckoi` | | `:database` | |
| SQLite | `:sqlite` | `:memory` | | |
| | | `:filesys` | `:database` | |

Expand Down
4 changes: 1 addition & 3 deletions src/clj_dbcp/adapter.clj
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@
:username "sa"
:password ""}
:mckoi {:classname "com.mckoi.JDBCDriver"
:jdbc-url
(matcher-target
{:filesys (U "jdbc:mckoi:local://%s" :database)})
:jdbc-url (U "jdbc:mckoi:local://%s" :database)
:val-query "SELECT 1"}
:sqlite {:classname "org.sqlite.JDBC"
:jdbc-url
Expand Down
5 changes: 2 additions & 3 deletions test/clj_dbcp/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@
{:classname "org.apache.derby.jdbc.EmbeddedDriver"
:subprotocol "derby"
:subname "memory:defaultsubprotoexplicit;create=true;"
:val-query "values(1)"}
])
:val-query "values(1)"}])


(deftest test-jdbc
Expand All @@ -111,7 +110,7 @@
{:adapter :derby :target :filesys :database 'target/default}
{:adapter :h2 :target :filesys :database 'target/default}
{:adapter :hsqldb :target :filesys :database 'target/default}
{:adapter :mckoi :target :filesys :database "./test/mckoi.conf"
{:adapter :mckoi :database "./test/mckoi.conf"
:user "sa" :password "pw"
:setup du/setup-mckoi-local-database}
{:adapter :sqlite :target :filesys :database 'target/default3}
Expand Down

0 comments on commit add5875

Please sign in to comment.