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
0ab0e2e2
Unverified
Commit
0ab0e2e2
authored
2 years ago
by
Cam Saul
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Mention changes to building drivers in Metabase 0.46.0 (#29045)
parent
61877545
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
docs/developers-guide/driver-changelog.md
+30
-0
30 additions, 0 deletions
docs/developers-guide/driver-changelog.md
with
30 additions
and
0 deletions
docs/developers-guide/driver-changelog.md
+
30
−
0
View file @
0ab0e2e2
...
...
@@ -6,6 +6,36 @@ title: Driver interface changelog
## Metabase 0.46.0
-
The process for building a driver has changed slightly in Metabase 0.46.0. Your build command should now look
something like this:
```
sh
# Example for building the driver with bash or similar
# switch to the local checkout of the Metabase repo
cd
/path/to/metabase/repo
# get absolute path to the driver project directory
DRIVER_PATH
=
`
readlink
-f
~/sudoku-driver
`
# Build driver. See explanation in sample Sudoku driver README
clojure
\
-Sdeps
"{:aliases {:sudoku {:extra-deps {com.metabase/sudoku-driver {:local/root
\"
$DRIVER_PATH
\"
}}}}}"
\
-X
:build:sudoku
\
build-drivers.build-driver/build-driver!
\
"{:driver :sudoku, :project-dir
\"
$DRIVER_PATH
\"
, :target-dir
\"
$DRIVER_PATH
/target
\"
}"
```
Take a look at our
[
build instructions for the sample Sudoku
driver
](
https://github.com/metabase/sudoku-driver#build-it-updated-for-build-script-changes-in-metabase-0460
)
for an explanation of the command.
Note that while this command itself is quite a lot to type, you no longer need to specify a
`:build`
alias in your
driver's
`deps.edn`
file.
Please upvote https://ask.clojure.org/index.php/7843/allow-specifying-aliases-coordinates-that-point-projects ,
which will allow us to simplify the driver build command in the future.
-
The multimethod
`metabase.driver/table-rows-sample`
has been added. This method is used in situations where Metabase
needs a limited sample from a table, like when fingerprinting. The default implementation defined in the
`metabase.db.metadata-queries`
namespace runs an MBQL query using the regular query processor to produce the sample
...
...
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