Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
d7d0bf7c
Commit
d7d0bf7c
authored
8 years ago
by
Cam Saül
Browse files
Options
Downloads
Patches
Plain Diff
Log backing DB type during launch
parent
1a3e3772
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/metabase/db.clj
+3
-3
3 additions, 3 deletions
src/metabase/db.clj
with
3 additions
and
3 deletions
src/metabase/db.clj
+
3
−
3
View file @
d7d0bf7c
...
...
@@ -221,12 +221,12 @@
"Test connection to database with DETAILS and throw an exception if we have any troubles connecting."
[
engine
details
]
{
:pre
[(
keyword?
engine
)
(
map?
details
)]}
(
log/info
(
u/format-color
'cyan
"Verifying Database Connection ..."
))
(
log/info
(
u/format-color
'cyan
"Verifying
%s
Database Connection ..."
(
name
engine
)
))
(
assert
(
binding
[
*allow-potentailly-unsafe-connections*
true
]
(
require
'metabase.driver
)
((
resolve
'metabase.driver/can-connect-with-details?
)
engine
details
))
(
format
"Unable to connect to Metabase %s DB."
(
name
engine
)))
(
log/info
(
str
"Verify Database Connection ... ✅"
))
)
(
log/info
"Verify Database Connection ... ✅"
))
(
defn
setup-db
"Do general preparation of database by validating that we can connect.
...
...
@@ -309,7 +309,7 @@
(
:metabase.models.interface/entity
entity
)
entity
(
vector?
entity
)
(
resolve-entity
(
first
entity
))
(
symbol?
entity
)
(
resolve-entity-from-symbol
entity
)
:else
(
throw
(
Exception.
(
str
"Invalid entity:"
entity
)))))
:else
(
throw
(
Exception.
(
str
"Invalid entity:
"
entity
)))))
(
defn-
quoting-style
"Style of `:quoting` that should be passed to HoneySQL `format`."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment