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
8c97bbbd
Commit
8c97bbbd
authored
9 years ago
by
Michael Perez
Browse files
Options
Downloads
Patches
Plain Diff
fix typo in db.clj
parent
5ed02e30
No related branches found
Branches containing commit
No related tags found
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 @
8c97bbbd
...
...
@@ -153,7 +153,7 @@
(
log/info
(
str
"Verify Database Connection ... ✅"
)))
(
defn
setup-db
"Do general p
e
rparation of database by validating that we can connect.
"Do general pr
e
paration of database by validating that we can connect.
Caller can specify if we should run any pending database migrations."
[
&
{
:keys
[
db-details
auto-migrate
]
:or
{
db-details
@
db-connection-details
...
...
@@ -288,7 +288,7 @@
ENTITY may be either an entity like `User` or a vector like `[entity & field-keys]`.
If just an entity is passed, `sel` will return `default-fields` for ENTITY.
Otherwise i
s
a vector is passed `sel` will return the fields specified by FIELD-KEYS.
Otherwise
,
i
f
a vector is passed `sel` will return the fields specified by FIELD-KEYS.
(sel :many [OrgPerm :admin :id] :user_id 1) -> return admin and id of OrgPerms whose user_id is 1
...
...
@@ -321,7 +321,7 @@
"Wrapper around `korma.core/insert` that renames the `:scope_identity()` keyword in output to `:id`
and automatically passes &rest KWARGS to `korma.core/values`.
Returns newly created object by calling `sel`."
Returns
a
newly created object by calling `sel`."
[
entity
&
{
:as
kwargs
}]
(
let
[
vals
(
models/do-pre-insert
entity
kwargs
)
;; take database-specific keys returned from a jdbc insert and map them to :id
...
...
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