The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
(ns metabase-enterprise.database-routing.schema
"Malli schemas for the database-routing module."
(:require
[metabase.lib.schema.id :as lib.schema.id]
[metabase.util.malli.registry :as mr]
[metabase.util.malli.schema :as ms]))
(mr/def ::database-router
"A DatabaseRouter as selected from the app DB: every column of `:db_router`."
[:merge
::database-router.update
[:map {:closed true}
[:id ms/PositiveInt]]])
(mr/def ::database-router.update
"What an update (or insert) of a DatabaseRouter accepts: every column of `:db_router` except `id`, all optional."
[:map {:closed true}
[:database_id {:optional true} [:maybe ::lib.schema.id/database]]
[:user_attribute {:optional true} [:maybe :string]]])