Skip to content
Snippets Groups Projects
Commit 84c91a20 authored by Michael Beer's avatar Michael Beer Committed by Marios Trivyzas
Browse files

provide `crate` database user as default

Since Version >= 2.0 CrateDB supports Host-Based-Authentication which
is enabled by default. It requires a user to trust the authentication.
User `crate` is the default superuser.
parent 45f27dfe
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,8 @@
:as details}]
(merge {:classname "io.crate.client.jdbc.CrateDriver" ; must be in classpath
:subprotocol "crate"
:subname (str "//" hosts "/")}
:subname (str "//" hosts)
:user "crate"}
(dissoc details :hosts)))
(defn- can-connect? [details]
......@@ -107,7 +108,7 @@
:describe-table describe-table
:details-fields (constantly [{:name "hosts"
:display-name "Hosts"
:default "localhost:5432"}])
:default "localhost:5432/"}])
:features (comp (u/rpartial disj :foreign-keys) sql/features)
:current-db-time (driver/make-current-db-time-fn crate-date-formatter crate-db-time-query)})
sql/ISQLDriver
......
......@@ -51,7 +51,8 @@
(insert! rows))))
(def ^:private database->connection-details
(constantly {:hosts "localhost:5200"}))
(constantly {:hosts "localhost:5200/"
:user "crate"}))
(extend CrateDriver
generic/IGenericSQLTestExtensions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment